GeoHatchBrush¶
Namespace: ThinkGeo.Core
This class represents a brush that fills with various patterns.
public class GeoHatchBrush : GeoBrush
Inheritance Object → GeoBrush → GeoHatchBrush
Remarks:
This class represents a brush that fills with various patterns.
Properties¶
HatchStyle¶
This property gets and sets the pattern you want to use for the fill.
public GeoHatchStyle HatchStyle { get; set; }
Property Value¶
GeoHatchStyle
This property gets the pattern you want to use for the fill.
Remarks:
None
ForegroundColor¶
This property gets and sets the foreground color for the fill pattern.
public GeoColor ForegroundColor { get; set; }
Property Value¶
GeoColor
This property gets the foreground color for the fill pattern.
Remarks:
In this case the background color will be transparent.
BackgroundColor¶
This property gets and sets the background color for the fill pattern.
public GeoColor BackgroundColor { get; set; }
Property Value¶
GeoColor
This property gets the background color for the fill pattern.
Remarks:
In this case the foreground color will be transparent.
Id¶
The id of the GeoBrush. This is always used as a key when in the cached brushes.
public long Id { get; }
Property Value¶
Constructors¶
GeoHatchBrush(GeoHatchStyle, GeoColor)¶
This is the constructor for the class.
public GeoHatchBrush(GeoHatchStyle hatchStyle, GeoColor foregroundColor)
Parameters¶
hatchStyle
GeoHatchStyle
This property is the hatch pattern you want to use to fill the area.
foregroundColor
GeoColor
This property is the foreground color you want to use for the pattern.
Remarks:
You will use this constructor when you want to only specify the foreground color of the pattern and leave the background transparent.
GeoHatchBrush(GeoHatchStyle, GeoColor, GeoColor)¶
This is the constructor for the class.
public GeoHatchBrush(GeoHatchStyle hatchStyle, GeoColor foregroundColor, GeoColor backgroundColor)
Parameters¶
hatchStyle
GeoHatchStyle
This property is the hatch pattern you want to use to fill the area.
foregroundColor
GeoColor
This property is the foreground color you want to use for the pattern.
backgroundColor
GeoColor
This property is the background color you want to use for the pattern.
Remarks:
This constructor allows you to choose both the background and foreground color for the pattern.