NLinearGradientFill Class Members
In This Topic
The following tables list the members exposed by NLinearGradientFill.
Public Constructors
Public Fields
Public Properties
| Name | Description |
| Center | Gets or sets the center of the linear gradient. |
| EndFactorX | Gets or sets the End Point X coordinate factor. The coordinate is relative to the gradient rectangle. 0 = left, 1 = right. |
| EndFactorY | Gets or sets the End Point Y coordinate factor. The coordinate is relative to the gradient rectangle. 0 = top, 1 = bottom. |
| EndPoint | Gets or sets the end point, in the graident rect. |
| FillType | Overridden. Gets the fill type (Linear Gradient) as an enum value. |
| GradientRect | Gets the gradient rect |
| StartFactorX | Gets or sets the Start Point X coordinate factor. The coordinate is relative to the gradient rectangle. 0 = left, 1 = right. |
| StartFactorY | Gets or sets the Start Point Y coordinate factor. The coordinate is relative to the gradient rectangle. 0 = top, 1 = bottom. |
| StartPoint | Gets or sets the start point, in the graident rect. |
Top
Public Methods
| Name | Description |
| CreateInverseFill | Overridden. Creates a new linear gradient fill by inverting the colors of this fill. |
| GetAngle | Gets the angle |
| SetAngle | Overloaded. Sets the linear gradient angle to the specified value. Center the gradient to pass through the center of the gradient rect. Adjusts the coverage points so that the gradient fill the entire gradient rect completely. |
| SetEndFactorX | Sets the EndFactorX, if keepCentered is true modifies the StartPoint so that the gradient passes through the gradient rect center |
| SetEndFactorY | Sets the StartFactorY, if keepCentered is true modifies the EndPoint so that the gradient passes through the gradient rect center |
| SetStartFactorX | Sets the StartFactorX, if keepCentered is true modifies the EndPoint so that the gradient passes through the gradient rect center |
| SetStartFactorY | Sets the StartFactorY, if keepCentered is true modifies the EndPoint so that the gradient passes through the gradient rect center |
| StretchToCover | Stretches the linear gradient, so that it covers the gradient rect completely. |
Top
See Also