Table of Contents

Class IconDefinition

Namespace
Dmnk.Icons.Core
Assembly
Dmnk.Icons.Core.dll

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

technicalName string

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

Icon

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

Icon

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

Icon

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

Icon

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

Icon

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

Icon

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

Icon

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

Icon

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

string

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

size Size

Returns

Icon

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

size int

Returns

Icon

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)

Parameters

width int
height int

Returns

Icon