iText 8.0.2 API
iText.Kernel.Pdf.PdfBoolean Class Reference
Inheritance diagram for iText.Kernel.Pdf.PdfBoolean:
iText.Kernel.Pdf.PdfPrimitiveObject iText.Kernel.Pdf.PdfObject

Public Member Functions

  PdfBoolean (bool value)
  Store a boolean value More...
 
virtual bool  GetValue ()
 
override byte  GetObjectType ()
  Gets object type. More...
 
override String  ToString ()
 
override bool  Equals (Object obj)
 
override int  GetHashCode ()
 
- Public Member Functions inherited from iText.Kernel.Pdf.PdfPrimitiveObject
override PdfObject  MakeIndirect (PdfDocument document, PdfIndirectReference reference)
  Marks object to be saved as indirect. More...
 
- Public Member Functions inherited from iText.Kernel.Pdf.PdfObject
void  Flush ()
  Flushes the object to the document. More...
 
void  Flush (bool canBeInObjStm)
  Flushes the object to the document. More...
 
virtual PdfIndirectReference  GetIndirectReference ()
  Gets the indirect reference associated with the object. More...
 
virtual bool  IsIndirect ()
  Checks if object is indirect. More...
 
virtual PdfObject  MakeIndirect (PdfDocument document)
  Marks object to be saved as indirect. More...
 
virtual bool  IsFlushed ()
  Indicates is the object has been flushed or not. More...
 
virtual bool  IsModified ()
  Indicates is the object has been set as modified or not. More...
 
virtual PdfObject  Clone ()
  Creates clone of the object which belongs to the same document as original object. More...
 
virtual PdfObject  Clone (ICopyFilter filter)
  Creates clone of the object which belongs to the same document as original object. More...
 
virtual PdfObject  CopyTo (PdfDocument document)
  Copies object to a specified document. More...
 
virtual PdfObject  CopyTo (PdfDocument document, bool allowDuplicating)
  Copies object to a specified document. More...
 
virtual PdfObject  CopyTo (PdfDocument document, ICopyFilter copyFilter)
  Copies object to a specified document. More...
 
virtual PdfObject  CopyTo (PdfDocument document, bool allowDuplicating, ICopyFilter copyFilter)
  Copies object to a specified document. More...
 
virtual PdfObject  SetModified ()
  Sets the 'modified' flag to the indirect object, the flag denotes that the object was modified since the document opening. More...
 
virtual bool  IsReleaseForbidden ()
  Checks if it's forbidden to release this PdfObject instance. More...
 
virtual void  Release ()
 
virtual bool  IsNull ()
  Checks if this PdfObject is of the type PdfNull. More...
 
virtual bool  IsBoolean ()
  Checks if this PdfObject is of the type PdfBoolean. More...
 
virtual bool  IsNumber ()
  Checks if this PdfObject is of the type PdfNumber. More...
 
virtual bool  IsString ()
  Checks if this PdfObject is of the type PdfString. More...
 
virtual bool  IsName ()
  Checks if this PdfObject is of the type PdfName. More...
 
virtual bool  IsArray ()
  Checks if this PdfObject is of the type PdfArray. More...
 
virtual bool  IsDictionary ()
  Checks if this PdfObject is of the type PdfDictionary. More...
 
virtual bool  IsStream ()
  Checks if this PdfObject is of the type PdfStream. More...
 
virtual bool  IsIndirectReference ()
  Checks if this PdfObject is of the type PdfIndirectReference. More...
 
virtual bool  IsLiteral ()
  Checks if this PdfObject is of the type PdfLiteral. More...
 

Static Public Member Functions

static iText.Kernel.Pdf.PdfBoolean  ValueOf (bool value)
  Gets PdfBoolean existing static class variable equivalent for given boolean value. More...
 

Static Public Attributes

static readonly iText.Kernel.Pdf.PdfBoolean  TRUE = new iText.Kernel.Pdf.PdfBoolean(true, true)
 
static readonly iText.Kernel.Pdf.PdfBoolean  FALSE = new iText.Kernel.Pdf.PdfBoolean(false, true)
 
- Static Public Attributes inherited from iText.Kernel.Pdf.PdfObject
const byte  ARRAY = 1
 
const byte  BOOLEAN = 2
 
const byte  DICTIONARY = 3
 
const byte  LITERAL = 4
 
const byte  INDIRECT_REFERENCE = 5
 
const byte  NAME = 6
 
const byte  NULL = 7
 
const byte  NUMBER = 8
 
const byte  STREAM = 9
 
const byte  STRING = 10
 

Constructor & Destructor Documentation

◆ PdfBoolean()

iText.Kernel.Pdf.PdfBoolean.PdfBoolean ( bool  value )
inline

Store a boolean value

Parameters
value value to store

Member Function Documentation

◆ GetObjectType()

override byte iText.Kernel.Pdf.PdfBoolean.GetObjectType ( )
inlinevirtual

Gets object type.

Returns
object type.

Implements iText.Kernel.Pdf.PdfObject.

◆ ValueOf()

static iText.Kernel.Pdf.PdfBoolean iText.Kernel.Pdf.PdfBoolean.ValueOf ( bool  value )
inlinestatic

Gets PdfBoolean existing static class variable equivalent for given boolean value.

Gets PdfBoolean existing static class variable equivalent for given boolean value. Note, returned object will be direct only, which means it is impossible to make in indirect. If required PdfBoolean has to be indirect, use PdfBoolean(bool) constructor instead.

Parameters
value boolean variable defining value of PdfBoolean to return.
Returns
existing static PdfBoolean class variable.