PDFsharp-net6

PdfBoolean

Namespace: PdfSharp.Pdf

Represents a direct boolean value.

public sealed class PdfBoolean : PdfItem, System.ICloneable

Inheritance ObjectPdfItemPdfBoolean
Implements ICloneable

Fields

True

A pre-defined value that represents true.

public static PdfBoolean True;

False

A pre-defined value that represents false.

public static PdfBoolean False;

Properties

Value

Gets the value of this instance as boolean value.

public bool Value { get; }

Property Value

Boolean

Constructors

PdfBoolean()

Initializes a new instance of the PdfBoolean class.

public PdfBoolean()

PdfBoolean(Boolean)

Initializes a new instance of the PdfBoolean class.

public PdfBoolean(bool value)

Parameters

value Boolean

Methods

ToString()

Returns ‘false’ or ‘true’.

public string ToString()

Returns

String

WriteObject(PdfWriter)

Writes ‘true’ or ‘false’.

internal void WriteObject(PdfWriter writer)

Parameters

writer PdfWriter