RadialGradientBrush

BrushReferences
Brush with an elliptical radial gradient from a specified origin.
Remarks: The gradient origin must fall within the ellipse, otherwise the behavior is undefined.

Constructors

RadialGradientBrush

#
public RadialGradientBrush(Color startColor, Color endColor, PointF center, PointF gradientOrigin, SizeF radius)
Initializes a new instance of the RadialGradientBrush.
startColor (Color)Start color from the gradientOrigin
endColor (Color)End color at the outer edge of the ellipse
center (PointF)Center of the ellipse
gradientOrigin (PointF)Origin of the gradient.
radius (SizeF)Radius of the ellipse.

Properties

ControlObject

public object ControlObject { get; set; }
Gets or sets the control object for this widget
inherited fromBrush

Handler

#
public override object Handler { get; }
Gets the platform handler object for the widget

Instantiator

#
public static Func<Color, Color, PointF, PointF, SizeF, RadialGradientBrush> Instantiator { get; }
obsolete: Use new RadialGradientBrush() instead
Gets a delegate to instantiate RadialGradientBrush objects

Transform

#
public IMatrix Transform { get; set; }
Gets or sets the transform to apply to the gradient

Wrap

#
public GradientWrapMode Wrap { get; set; }
Gets or sets the wrap mode for the gradient

Methods

Dispose

public void Dispose()
Releases all resource used by the Brush object.
inherited fromBrush
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.

Dispose

protected virtual void Dispose(bool disposing)
Disposes the brush
inherited fromBrush
disposing (bool)If set to true dispose was called explicitly, otherwise specify false if calling from a finalizer