PDFsharp-net6

PdfBooleanObject

Namespace: PdfSharp.Pdf

Represents an indirect boolean value. This type is not used by PDFsharp. If it is imported from an external PDF file, the value is converted into a direct object.

public sealed class PdfBooleanObject : PdfObject, System.ICloneable

Inheritance ObjectPdfItemPdfObjectPdfBooleanObject
Implements ICloneable

Properties

Value

Gets the value of this instance as boolean value.

public bool Value { get; }

Property Value

Boolean

Owner

Gets the PdfDocument this object belongs to.

public PdfDocument Owner { get; }

Property Value

PdfDocument

IsIndirect

Indicates whether the object is an indirect object.

public bool IsIndirect { get; }

Property Value

Boolean

Internals

Gets the PdfInternals object of this document, that grants access to some internal structures which are not part of the public interface of PdfDocument.

public PdfObjectInternals Internals { get; }

Property Value

PdfObjectInternals

Reference

Gets the indirect reference of this object. If the value is null, this object is a direct object.

public PdfReference Reference { get; internal set; }

Property Value

PdfReference

ReferenceNotNull

Gets the indirect reference of this object. Throws if it is null.

public PdfReference ReferenceNotNull { get; }

Property Value

PdfReference

Exceptions

InvalidOperationException
The indirect reference must be not null here.

Constructors

PdfBooleanObject()

Initializes a new instance of the PdfBooleanObject class.

public PdfBooleanObject()

PdfBooleanObject(Boolean)

Initializes a new instance of the PdfBooleanObject class.

public PdfBooleanObject(bool value)

Parameters

value Boolean

PdfBooleanObject(PdfDocument, Boolean)

Initializes a new instance of the PdfBooleanObject class.

public PdfBooleanObject(PdfDocument document, bool value)

Parameters

document PdfDocument

value Boolean

Methods

ToString()

Returns “false” or “true”.

public string ToString()

Returns

String

WriteObject(PdfWriter)

Writes the keyword «false» or «true».

internal void WriteObject(PdfWriter writer)

Parameters

writer PdfWriter