PDFsharp-net6

XSolidBrush

Namespace: PdfSharp.Drawing

Defines a single-color object used to fill shapes and draw text.

public sealed class XSolidBrush : XBrush

Inheritance ObjectXBrushXSolidBrush

Properties

Color

Gets or sets the color of this brush.

public XColor Color { get; set; }

Property Value

XColor

Overprint

Gets or sets a value indicating whether the brush enables overprint when used in a PDF document. Experimental, takes effect only on CMYK color mode.

public bool Overprint { get; set; }

Property Value

Boolean

Constructors

XSolidBrush()

Initializes a new instance of the XSolidBrush class.

public XSolidBrush()

XSolidBrush(XColor)

Initializes a new instance of the XSolidBrush class.

public XSolidBrush(XColor color)

Parameters

color XColor

XSolidBrush(XSolidBrush)

Initializes a new instance of the XSolidBrush class.

public XSolidBrush(XSolidBrush brush)

Parameters

brush XSolidBrush