Class Svg
Generate a standard HTML5 <svg> tag
Implements
Inherited Members
Namespace: ToSic.Razor.Html5
Assembly: ToSic.Razor.dll
Syntax
public class Svg : Tag<Svg>, IRawHtmlString, IHtmlString, IHtmlTag, ITag, IEnumerable<ITag>, IEnumerable
Methods
| Improve this Doc View SourceHeight(Int32)
Set the height attribute on the <svg> tag
Declaration
public Svg 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 |
---|---|
Svg | a Svg object to enable fluid command chaining |
Height(String)
Set the height attribute on the <svg> tag
Declaration
public Svg 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 |
---|---|
Svg | a Svg object to enable fluid command chaining |
Width(Int32)
Set the width attribute on the <svg> tag
Declaration
public Svg 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 |
---|---|
Svg | a Svg object to enable fluid command chaining |
Width(String)
Set the width attribute on the <svg> tag
Declaration
public Svg 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 |
---|---|
Svg | a Svg object to enable fluid command chaining |