Brush with a linear gradient at an angle
Constructors
LinearGradientBrush
#Initializes a new instance of the LinearGradientBrush class between two points
LinearGradientBrush
#Parameters:
| rectangle (RectangleF) | Rectangle to define the area of the gradient |
| startColor (Color) | Start color for the gradient |
| endColor (Color) | End color for the gradient |
| angle (float) | Angle of the gradient, in degrees |
Properties
ControlObject
Gets or sets the control object for this widget
Value: The control object for the widget
Implements: ControlObject
Handler
#Gets the platform handler object for the widget
Value: The handler for the widget
Overrides: Brush.Handler
Instantiator
#obsolete: Use new LinearGradientBrush() instead
Gets a delegate to instantiate LinearGradientBrush objects
Remarks: Use this to instantiate many objects of this type
Transform
#Gets or sets the transform to apply to the gradient
Value: The transform to apply to the gradient
Implements: Transform
Methods
Remarks: Call Brush.Dispose() when you are finished using the Brush. The Brush.Dispose() method leaves the Brush in an unusable state. After calling Brush.Dispose(), you must release all references to the Brush so the garbage collector can reclaim the memory that the Brush was occupying.
Parameters:
| disposing (bool) | If set to true dispose was called explicitly, otherwise specify false if calling from a finalizer |