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 Object → PdfItem → PdfObject → PdfBooleanObject
Implements ICloneable
Gets the value of this instance as boolean value.
public bool Value { get; }
Gets the PdfDocument this object belongs to.
public PdfDocument Owner { get; }
Indicates whether the object is an indirect object.
public bool IsIndirect { get; }
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; }
Gets the indirect reference of this object. If the value is null, this object is a direct object.
public PdfReference Reference { get; internal set; }
Gets the indirect reference of this object. Throws if it is null.
public PdfReference ReferenceNotNull { get; }
InvalidOperationException
The indirect reference must be not null here.
Initializes a new instance of the PdfBooleanObject class.
public PdfBooleanObject()
Initializes a new instance of the PdfBooleanObject class.
public PdfBooleanObject(bool value)
value
Boolean
Initializes a new instance of the PdfBooleanObject class.
public PdfBooleanObject(PdfDocument document, bool value)
document
PdfDocument
value
Boolean
Returns “false” or “true”.
public string ToString()
Writes the keyword «false» or «true».
internal void WriteObject(PdfWriter writer)
writer
PdfWriter