TGdipUISolidBrush.TGdipUISolidBrush Constructor
Creates a new UISolidBrush which encapsulates an existing GDI+ SolidBrush. Note that if you are encapsulating a brush from Brushes.Color class, you need to pass false in aNeedsDispose, since this class shouldn't dispose the brush when disposing the class.
Syntax
Namespace: FlexCel.Draw
public TGdipUISolidBrush(SolidBrush aBrush, Boolean aNeedsDispose)
Parameters
<-> | Parameter | Type | Description |
---|---|---|---|
aBrush | SolidBrush | GDI+ brush which will define this brush. | |
aNeedsDispose | Boolean | If true, this class will own the GDI+ brush, and dispose it when you dispose the class. If false, the GDI+ brush will not be disposed when disposing this class. If you are using a brush from Brushes class, you should set this to false. We don't want to dispose system brushes. |