Table of Contents

Class PdfBoolean

Namespace
MiPdf.Objects
Assembly
MiPdf.dll

A PDF boolean (true/false).

public sealed class PdfBoolean : PdfObject
Inheritance
PdfBoolean
Inherited Members

Fields

False

The false instance.

public static readonly PdfBoolean False

Field Value

PdfBoolean

True

The true instance.

public static readonly PdfBoolean True

Field Value

PdfBoolean

Properties

ObjectType

The kind of this object.

public override PdfObjectType ObjectType { get; }

Property Value

PdfObjectType

Value

The boolean value.

public bool Value { get; }

Property Value

bool

Methods

Clone()

Returns this instance (the object is immutable).

public override PdfObject Clone()

Returns

PdfObject

Equals(object?)

True if obj is a PdfBoolean with the same value.

public override bool Equals(object? obj)

Parameters

obj object

Returns

bool

Get(bool)

Returns the shared True or False instance.

public static PdfBoolean Get(bool value)

Parameters

value bool

Returns

PdfBoolean

GetHashCode()

Serves as the default hash function.

public override int GetHashCode()

Returns

int

A hash code for the current object.