Class Icon
Generate a standard HTML5 link
tag with properties an icon needs
Implements
System.Web.IHtmlString
System.Collections.Generic.IEnumerable<ITag>
System.Collections.IEnumerable
Inherited Members
Namespace: ToSic.Razor.Html5
Assembly: ToSic.Razor.dll
Syntax
public class Icon : Link, IRawHtmlString, IHtmlString, IHtmlTag, ITag, IEnumerable<ITag>, IEnumerable
Constructors
| Improve this Doc View SourceIcon(String, String, Int32, String)
Generate an icon
Declaration
public Icon(string path, string rel = null, int size = 0, string type = null)
Parameters
Type | Name | Description |
---|---|---|
System.String | path | path to the icon |
System.String | rel | relationship term like 'icon' or 'shortcut icon' |
System.Int32 | size | size parameter |
System.String | type | mime type |
Fields
| Improve this Doc View SourceRelApple
Declaration
public static readonly string RelApple
Field Value
Type | Description |
---|---|
System.String |
RelIcon
Declaration
public static readonly string RelIcon
Field Value
Type | Description |
---|---|
System.String |
RelShortcut
Declaration
public static readonly string RelShortcut
Field Value
Type | Description |
---|---|
System.String |
RootFavicon
Declaration
public static readonly string RootFavicon
Field Value
Type | Description |
---|---|
System.String |
SizeUndefined
Declaration
public const int SizeUndefined = 0
Field Value
Type | Description |
---|---|
System.Int32 |
Methods
| Improve this Doc View SourceSizes(String)
Set icon sizes
attribute
Declaration
public Icon Sizes(string value)
Parameters
Type | Name | Description |
---|---|---|
System.String | value |
Returns
Type | Description |
---|---|
Icon |
Implements
System.Web.IHtmlString
System.Collections.Generic.IEnumerable<T>
System.Collections.IEnumerable