Skip to content

PDFHatchBrush

Namespace: O2S.Components.PDF4NET.Graphics

Defines a hatch brush.

public class PDFHatchBrush : PDFPatternBrush

Inheritance ObjectPDFBrushPDFPatternBrushPDFHatchBrush

Constructors

PDFHatchBrush()

Initializes a new PDFHatchBrush object.

public PDFHatchBrush()

PDFHatchBrush(PDFHatchBrushStyle)

Initializes a new PDFHatchBrush object.

public PDFHatchBrush(PDFHatchBrushStyle style)

Parameters

style PDFHatchBrushStyle
The style of the hatch brush.


PDFHatchBrush(Double, Double)

Initializes a new PDFHatchBrush object.

public PDFHatchBrush(double width, double height)

Parameters

width Double
The width of the brush hatch model.

height Double
The height of the brush hatch model.


PDFHatchBrush(Double, Double, PDFHatchBrushStyle)

Initializes a new PDFHatchBrush object.

public PDFHatchBrush(double width, double height, PDFHatchBrushStyle style)

Parameters

width Double
The width of the brush hatch model.

height Double
The height of the brush hatch model.

style PDFHatchBrushStyle
The style of the hatch brush.


Properties

Color

Gets or sets the color.

public PDFColor Color { get; set; }

Property Value

PDFColor
The brush color.


HatchBackgroundColor

Gets or sets the hatch background color.

public PDFBrush HatchBackgroundColor { get; set; }

Property Value

PDFBrush
A PDFBrush object specifying how the hatch background is filled.


HatchColor

Gets or sets the hatch color.

public PDFPen HatchColor { get; set; }

Property Value

PDFPen
A PDFPen object specifying how the hatch model is drawn.


Height

Gets the brush height.

public double Height { get; }

Property Value

Double
The height of the brush hatch model.


Style

Gets or sets the brush style.

public PDFHatchBrushStyle Style { get; set; }

Property Value

PDFHatchBrushStyle
A PDFHatchBrushStyle enum member specifying the style of this brush object.


UncoloredPatternPaintColor

Gets or sets the uncolored pattern paint color.

public PDFColor UncoloredPatternPaintColor { get; set; }

Property Value

PDFColor
The color used to paint an uncolored pattern.

Remarks

If the pattern colorspace associated with this brush color contains an uncolored tiling pattern then the pattern will be painted using the color specified in this property.
Note: This property cannot be set to another pattern color.


Width

Gets the brush width.

public double Width { get; }

Property Value

Double
The width of the brush hatch model.