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