Table of Contents

Class MBIconHelper

Namespace
Material.Blazor
Assembly
Material.Blazor.dll

A helper class for defining which foundry to use for an icon.

public class MBIconHelper : IMBIcon
Inheritance
MBIconHelper
Implements
Inherited Members

Properties

Render

The delegate that combines all the information of the icon into markup.

public IMBIcon.IconFragment Render { get; }

Property Value

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.

public bool RequiresColorFilter { get; }

Property Value

bool

Methods

FAFoundry(MBIconFAStyle?, MBIconFARelativeSize?)

Returns a new Font Awesome foundry.

public static IMBIconFoundry FAFoundry(MBIconFAStyle? style = null, MBIconFARelativeSize? relativeSize = null)

Parameters

style MBIconFAStyle?

Optional MBIconFAStyle specifying the Font Awesome style.

relativeSize MBIconFARelativeSize?

Optional MBIconFARelativeSize specifying the Font Awesome relative size.

Returns

IMBIconFoundry

IMBIconFoundry to be passed to a Material.Blazor component.

MIFoundry(MBIconMITheme?)

Returns a new Material Icons foundry.

public static IMBIconFoundry MIFoundry(MBIconMITheme? theme = null)

Parameters

theme MBIconMITheme?

Optional MBIconMITheme specifying the Material Icons theme.

Returns

IMBIconFoundry

IMBIconFoundry to be passed to a Material.Blazor component.

MSFoundry(string, bool?, MBIconMSGradient?, MBIconMSSize?, MBIconMSStyle?, MBIconMSWeight?)

Returns a new Material Symbols foundry.

public static IMBIconFoundry MSFoundry(string color = null, bool? fill = null, MBIconMSGradient? gradient = null, MBIconMSSize? size = null, MBIconMSStyle? style = null, MBIconMSWeight? weight = null)

Parameters

color string
fill bool?
gradient MBIconMSGradient?
size MBIconMSSize?
style MBIconMSStyle?
weight MBIconMSWeight?

Returns

IMBIconFoundry

IMBIconFoundry to be passed to a Material.Blazor component.

OIFoundry()

Returns a Open Iconic foundry.

public static IMBIconFoundry OIFoundry()

Returns

IMBIconFoundry

IMBIconFoundry to be passed to a Material.Blazor component.