PdfChoiceOption Class

An option of a choice field (ISO 32000-2, 12.7.5.4, /Opt).

public sealed class PdfChoiceOption : IEquatable<PdfChoiceOption>
Implements

Constructors

NameDescription
PdfChoiceOption(string, string)An option of a choice field (ISO 32000-2, 12.7.5.4, /Opt).

PdfChoiceOption(string, string)

PdfChoiceOption.cs

An option of a choice field (ISO 32000-2, 12.7.5.4, /Opt).

public PdfChoiceOption(string Value, string Text)

Parameters

Value string
The value of the field when the option is chosen (the export value).
Text string
The text the field shows for the option.

Properties

NameDescription
TextThe text the field shows for the option.
ValueThe value of the field when the option is chosen (the export value).

The text the field shows for the option.

public string Text { get; init; }

Property value

string

The value of the field when the option is chosen (the export value).

public string Value { get; init; }

Property value

string

Methods

NameDescription
Deconstruct(string, string)
Equals(PdfChoiceOption?)
Equals(object?)
GetHashCode()
ToString()

Deconstruct(string, string)

public void Deconstruct(out string Value, out string Text)

Parameters

Value string
Text string

No documentation is available.

Equals overloads

Equals(PdfChoiceOption?)

public bool Equals(PdfChoiceOption? other)
Parameters
other PdfChoiceOption?
Returns

bool

No documentation is available.

Equals(object?)

public override bool Equals(object? obj)
Parameters
obj object?
Returns

bool

No documentation is available.

GetHashCode()

public override int GetHashCode()

Returns

int

No documentation is available.

ToString()

public override string ToString()

Returns

string

No documentation is available.

Operators

NameDescription
operator ==(PdfChoiceOption?, PdfChoiceOption?)
operator !=(PdfChoiceOption?, PdfChoiceOption?)

operator ==(PdfChoiceOption?, PdfChoiceOption?)

public static bool operator ==(PdfChoiceOption? left, PdfChoiceOption? right)

Parameters

left PdfChoiceOption?
right PdfChoiceOption?

Returns

bool

No documentation is available.

operator !=(PdfChoiceOption?, PdfChoiceOption?)

public static bool operator !=(PdfChoiceOption? left, PdfChoiceOption? right)

Parameters

left PdfChoiceOption?
right PdfChoiceOption?

Returns

bool

No documentation is available.