Class MBIconHelper
A helper class for defining which foundry to use for an icon.
Implements
Inherited Members
Namespace: Material.Blazor
Assembly: Material.Blazor.dll
Syntax
public class MBIconHelper : IMBIcon
Properties
| Improve this Doc View SourceRender
The delegate that combines all the information of the icon into markup.
Declaration
public IMBIcon.IconFragment Render { get; }
Property Value
Type | Description |
---|---|
IMBIcon.IconFragment |
RequiresColorFilter
Determines whether color should be set via a filter in the case of Material Icons two-tone theme. Presently partly implemented in toasts only.
Declaration
public bool RequiresColorFilter { get; }
Property Value
Type | Description |
---|---|
Boolean |
Methods
| Improve this Doc View SourceFAFoundry(Nullable<MBIconFAStyle>, Nullable<MBIconFARelativeSize>)
Returns a new Font Awesome foundry.
Declaration
public static IMBIconFoundry FAFoundry(MBIconFAStyle? style = null, MBIconFARelativeSize? relativeSize = null)
Parameters
Type | Name | Description |
---|---|---|
Nullable<MBIconFAStyle> | style | Optional MBIconFAStyle specifying the Font Awesome style. |
Nullable<MBIconFARelativeSize> | relativeSize | Optional MBIconFARelativeSize specifying the Font Awesome relative size. |
Returns
Type | Description |
---|---|
IMBIconFoundry | IMBIconFoundry to be passed to a Material.Blazor component. |
MIFoundry(Nullable<MBIconMITheme>)
Returns a new Material Icons foundry.
Declaration
public static IMBIconFoundry MIFoundry(MBIconMITheme? theme = null)
Parameters
Type | Name | Description |
---|---|---|
Nullable<MBIconMITheme> | theme | Optional MBIconMITheme specifying the Material Icons theme. |
Returns
Type | Description |
---|---|
IMBIconFoundry | IMBIconFoundry to be passed to a Material.Blazor component. |
OIFoundry()
Returns a Open Iconic foundry.
Declaration
public static IMBIconFoundry OIFoundry()
Returns
Type | Description |
---|---|
IMBIconFoundry | IMBIconFoundry to be passed to a Material.Blazor component. |