Class IconDefinition
An icon definition, as in, the technical name and the actual icon data.
public abstract class IconDefinition
- Inheritance
-
IconDefinition
- Derived
- Inherited Members
Constructors
IconDefinition(string)
An icon definition, as in, the technical name and the actual icon data.
protected IconDefinition(string technicalName)
Parameters
technicalNamestring
Properties
Size10
Returns a 10x10 Icon of this definition. This may return a specific 10x10 version of the icon or a stretched version, depending on the implementation.
public virtual Icon Size10 { get; }
Property Value
Size12
Returns a 12x12 Icon of this definition. This may return a specific 12x12 version of the icon or a stretched version, depending on the implementation.
public virtual Icon Size12 { get; }
Property Value
Size16
Returns a 16x16 Icon of this definition. This may return a specific 16x16 version of the icon or a stretched version, depending on the implementation.
public virtual Icon Size16 { get; }
Property Value
Size20
Returns a 20x20 Icon of this definition. This may return a specific 20x20 version of the icon or a stretched version, depending on the implementation.
public virtual Icon Size20 { get; }
Property Value
Size24
Returns a 24x24 Icon of this definition. This may return a specific 24x24 version of the icon or a stretched version, depending on the implementation.
public virtual Icon Size24 { get; }
Property Value
Size28
Returns a 28x28 Icon of this definition. This may return a specific 28x28 version of the icon or a stretched version, depending on the implementation.
public virtual Icon Size28 { get; }
Property Value
Size32
Returns a 32x32 Icon of this definition. This may return a specific 32x32 version of the icon or a stretched version, depending on the implementation.
public virtual Icon Size32 { get; }
Property Value
Size48
Returns a 64x64 Icon of this definition. This may return a specific 64x64 version of the icon or a stretched version, depending on the implementation.
public virtual Icon Size48 { get; }
Property Value
TechnicalName
The technical name of the icon. Not used for much, but can be useful for debugging or perhaps some runtime icon access logic. Note that you have to ensure that these are unique when adding new icons (if you care about that).
public string TechnicalName { get; }
Property Value
Methods
CustomSize(Size)
Returns a custom size Icon of this definition. This may return a specific size version of the icon or a stretched version, depending on the implementation.
public virtual Icon CustomSize(Size size)
Parameters
sizeSize
Returns
CustomSize(int)
Returns a custom size Icon of this definition. This may return a specific size version of the icon or a stretched version, depending on the implementation.
public virtual Icon CustomSize(int size)
Parameters
sizeint
Returns
CustomSize(int, int)
Returns a custom size Icon of this definition. This may return a specific size version of the icon or a stretched version, depending on the implementation.
public virtual Icon CustomSize(int width, int height)