Class Embed
Generate a standard HTML5 <embed> tag
Implements
Inherited Members
Namespace: ToSic.Razor.Html5
Assembly: ToSic.Razor.dll
Syntax
public class Embed : Tag<Embed>, IRawHtmlString, IHtmlString, IHtmlTag, ITag, IEnumerable<ITag>, IEnumerable
Methods
| Improve this Doc View SourceHeight(Int32)
Set the height attribute on the <embed> tag
Declaration
public Embed Height(int value)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | value | what should be in height='...'. If called multiple times, later values replace the previous value. |
Returns
Type | Description |
---|---|
Embed | a Embed object to enable fluid command chaining |
Height(String)
Set the height attribute on the <embed> tag
Declaration
public Embed Height(string value)
Parameters
Type | Name | Description |
---|---|---|
System.String | value | what should be in height='...'. If called multiple times, later values replace the previous value. |
Returns
Type | Description |
---|---|
Embed | a Embed object to enable fluid command chaining |
Src(String)
Set the src attribute on the <embed> tag Automatically url-encode it if contains spaces, umlauts or other unexpected chars
Declaration
public Embed 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 |
---|---|
Embed | a Embed object to enable fluid command chaining |
Type(String)
Set the type attribute on the <embed> tag
Declaration
public Embed Type(string value)
Parameters
Type | Name | Description |
---|---|---|
System.String | value | what should be in type='...'. If called multiple times, later values replace the previous value. |
Returns
Type | Description |
---|---|
Embed | a Embed object to enable fluid command chaining |
Width(Int32)
Set the width attribute on the <embed> tag
Declaration
public Embed Width(int value)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | value | what should be in width='...'. If called multiple times, later values replace the previous value. |
Returns
Type | Description |
---|---|
Embed | a Embed object to enable fluid command chaining |
Width(String)
Set the width attribute on the <embed> tag
Declaration
public Embed Width(string value)
Parameters
Type | Name | Description |
---|---|---|
System.String | value | what should be in width='...'. If called multiple times, later values replace the previous value. |
Returns
Type | Description |
---|---|
Embed | a Embed object to enable fluid command chaining |