SolidBrush

BrushReferences
public sealed class SolidBrush : Brush
Defines a brush with a solid color for use with Graphics fill operations

Constructors

SolidBrush

#
public SolidBrush(Color color)
Initializes a new instance of a SolidBrush with the specified color

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, SolidBrush> Instantiator { get; }
obsolete: Use new SolidBrush() instead
Gets a delegate to instantiate objects of this type with minimal overhead

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