Brushes

Brushes collection of the following type can be placed in the items dictionary:

Example of the Brushes Menu Setup

SolidColorBrush Item

The SolidColorBrush item represents the brush collection with solid fill. Collection item is an instance of the SolidColorBrush class.

Collection Item Attributes

Attribute name Type Description
Id String Brush identifier.
Color String Name or HTML view of brush color.
Opacity Double

Brush transparency. Values from 0 to 1.

LinearGradientBrush Item

The LinearGradientBrush item is represented by the brush collection with the solid fill. Collection item is an instance of the LinearGradientBrush class.

Collection Item Attributes

Attribute name Type Description
Id String Brush identifier.
StartPoint Point Gradient starting point.
EndPoint Point End point of gradient.
Opacity Double

Brush transparency. Values from 0 to 1.

Collection nested item

The GradientStops item contains the points list of the linear gradient. Description of liner gradient point is in the GradientStopitem.

Item Attributes GradientStop

Attribute name Type Description
Color String Name or HTML view of brush color.
Offset Double

Point offset. It can be used as an item.

RadialGradientBrush Item

The RadialGradientBrush item is a collection of solid fill brushes. Collection item is an instance of the RadialGradientBrush class.

Collection Item Attributes

Attribute name Type Description
Id String Brush identifier.
Center Point Central point of the radial gradient.
Opacity Double

Brush transparency. Values from 0 to 1.

Collection nested item

The GradientStops item contains the points list of the radial gradient. Description of liner gradient point is in the GradientStopitem. Attributes of the GradientStop item see  above.

See also:

ItemsDictionary item