Search
GradientBrush Members
Constructors Properties Methods
 


Represents a linear gradient brush with 1, 2 or 6 colors.

The following tables list the members exposed by the GradientBrush type.

 Public Constructors

  Name Description

GradientBrush

Initializes a new instance of the GradientBrush class.

 Public Properties

  Name Description

Angle

Get or set angle. Used only when colors are more than 1.

Colors

Gets or sets the brush colors (must contain 1, 2 or 6 colors), you must to set Positions as well.

Positions

Get or set positions there must be 6 values in 0 - 1 range.

 Public Methods

  Name Description

Clone

Clones this brush.

CreateBrush

Create Solid (if colors count = 1) or LinearGradientBrush (colors count >1)

ToString

Returns XML representation of this brush.

 See Also