Skip to content

# PDFCosBoolean

Namespace: O2S.Components.PDF4NET.Core.Cos

Defines a PDF COS bool value.

    public class PDFCosBoolean : PDFCosObject

Inheritance Object → PDFCosObject → PDFCosBoolean

## Constructors

### PDFCosBoolean()

Initializes a new PDFCosBoolean object.

    public PDFCosBoolean()

### PDFCosBoolean(Boolean)

Initializes a new PDFCosBoolean object with a boolean value.

    public PDFCosBoolean(bool value)

Parameters

`value` Boolean
Initial boolean value.

## Properties

### False

Gets a false boolean value.

    public static PDFCosBoolean False { get; }

Property Value

PDFCosBoolean

### True

Gets a true boolean value.

    public static PDFCosBoolean True { get; }

Property Value

PDFCosBoolean

### Type

Gets the object type.

    public PDFCosObjectType Type { get; }

Property Value

PDFCosObjectType

### Value

Gets or sets the object value.

    public bool Value { get; set; }

Property Value

Boolean
true / false

## Methods

### ToString()

Returns a String that represents the current Object.

    public string ToString()

Returns

String
String that represents the current Object.