Class Track
Generate a standard HTML5 <track> tag
Implements
Inherited Members
Namespace: ToSic.Razor.Html5
Assembly: ToSic.Razor.dll
Syntax
public class Track : Tag<Track>, IRawHtmlString, IHtmlString, IHtmlTag, ITag, IEnumerable<ITag>, IEnumerable
Methods
| Improve this Doc View SourceDefault()
Activate the default attribute on the <track> tag
Declaration
public Track Default()
Returns
Type | Description |
---|---|
Track | a Track object to enable fluid command chaining |
Default(String)
Set the default attribute on the <track> tag
Declaration
public Track Default(string value)
Parameters
Type | Name | Description |
---|---|---|
System.String | value | what should be in default='...'. If called multiple times, later values replace the previous value. |
Returns
Type | Description |
---|---|
Track | a Track object to enable fluid command chaining |
Kind(String)
Set the kind attribute on the <track> tag
Declaration
public Track Kind(string value)
Parameters
Type | Name | Description |
---|---|---|
System.String | value | what should be in kind='...'. If called multiple times, later values replace the previous value. |
Returns
Type | Description |
---|---|
Track | a Track object to enable fluid command chaining |
Label(String)
Set the label attribute on the <track> tag
Declaration
public Track Label(string value)
Parameters
Type | Name | Description |
---|---|---|
System.String | value | what should be in label='...'. If called multiple times, later values replace the previous value. |
Returns
Type | Description |
---|---|
Track | a Track object to enable fluid command chaining |
Src(String)
Set the src attribute on the <track> tag Automatically url-encode it if contains spaces, umlauts or other unexpected chars
Declaration
public Track Src(string value)
Parameters
Type | Name | Description |
---|---|---|
System.String | value | what should be in src='...'. If called multiple times, later values replace the previous value. |
Returns
Type | Description |
---|---|
Track | a Track object to enable fluid command chaining |
Srclang(String)
Set the srclang attribute on the <track> tag
Declaration
public Track Srclang(string value)
Parameters
Type | Name | Description |
---|---|---|
System.String | value | what should be in srclang='...'. If called multiple times, later values replace the previous value. |
Returns
Type | Description |
---|---|
Track | a Track object to enable fluid command chaining |