Class MaterialIcon
A Google Material Icon, which includes over 2500+ options.
For example, to display a checkbox icon with customized weight and grade, write the following:
{
"name": "check_box",
"fill": true,
"weight": 300,
"grade": -25
}
Implements
Namespace: Google.Apps.Card.V1
Assembly: Google.Apps.Card.V1.dll
Syntax
public sealed class MaterialIcon : IMessage<MaterialIcon>, IEquatable<MaterialIcon>, IDeepCloneable<MaterialIcon>, IBufferMessage, IMessage
Constructors
MaterialIcon()
Declaration
public MaterialIcon()
MaterialIcon(MaterialIcon)
Declaration
public MaterialIcon(MaterialIcon other)
Parameters
Type | Name | Description |
---|---|---|
MaterialIcon | other |
Properties
Fill
Whether the icon renders as filled. Default value is false.
To preview different icon settings, go to Google Font Icons and adjust the settings under Customize.
Declaration
public bool Fill { get; set; }
Property Value
Type | Description |
---|---|
bool |
Grade
Weight and grade affect a symbol’s thickness. Adjustments to grade are more granular than adjustments to weight and have a small impact on the size of the symbol. Choose from {-25, 0, 200}. If absent, default value is 0. If any other value is specified, the default value is used.
To preview different icon settings, go to Google Font Icons and adjust the settings under Customize.
Declaration
public int Grade { get; set; }
Property Value
Type | Description |
---|---|
int |
Name
The icon name defined in the Google Material
Icon, for example, check_box
. Any
invalid names are abandoned and replaced with empty string and
results in the icon failing to render.
Declaration
public string Name { get; set; }
Property Value
Type | Description |
---|---|
string |
Weight
The stroke weight of the icon. Choose from {100, 200, 300, 400, 500, 600, 700}. If absent, default value is 400. If any other value is specified, the default value is used.
To preview different icon settings, go to Google Font Icons and adjust the settings under Customize.
Declaration
public int Weight { get; set; }
Property Value
Type | Description |
---|---|
int |