TGdipUIHatchBrush.TGdipUIHatchBrush Constructor
Creates a new UIHatchBrush which encapsulates an existing GDI+ HatchBrush. 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 TGdipUIHatchBrush(HatchBrush aBrush, Boolean aNeedsDispose)
Parameters
<-> | Parameter | Type | Description |
---|---|---|---|
aBrush | HatchBrush | 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. |