C# Класс iTextSharp.xmp.options.XmpOptions

The base class for a collection of 32 flag bits. Individual flags are defined as enum value bit masks. Inheriting classes add convenience accessor methods. @since 24.01.2006
Показать файл Открыть проект

Открытые методы

Метод Описание
Clear ( ) : void

Resets the options.

ContainsAllOptions ( uint optionBits ) : bool
ContainsOneOf ( uint optionBits ) : bool
Equals ( object obj ) : bool
GetHashCode ( ) : int
IsExactly ( uint optionBits ) : bool
SetOption ( uint optionBits, bool value ) : void
ToString ( ) : string
XmpOptions ( uint options ) : System.Collections

Constructor with the options bit mask.

Защищенные методы

Метод Описание
AssertConsistency ( uint options ) : void

The inheriting option class can do additional checks on the options. Note: For performance reasons this method is only called when setting bitmasks directly. When get- and set-methods are used, this method must be called manually, normally only when the Options-object has been created from a client (it has to be made public therefore).

DefineOptionName ( uint option ) : string

To be implemeted by inheritants.

GetOption ( uint optionBit ) : bool
XmpOptions ( ) : System.Collections

The default constructor.

Приватные методы

Метод Описание
AssertOptionsValid ( uint options ) : void

Checks options before they are set. First it is checked if only defined options are used, second the additional AssertConsistency(uint)-method is called.

GetOptionName ( uint option ) : string

Looks up or asks the inherited class for the name of an option bit. Its save that there is only one valid option handed into the method.

ProcureOptionNames ( ) : IDictionary

Описание методов

AssertConsistency() защищенный Метод

The inheriting option class can do additional checks on the options. Note: For performance reasons this method is only called when setting bitmasks directly. When get- and set-methods are used, this method must be called manually, normally only when the Options-object has been created from a client (it has to be made public therefore).
Thrown if the options are not consistent.
protected AssertConsistency ( uint options ) : void
options uint the bitmask to check.
Результат void

Clear() публичный Метод

Resets the options.
public Clear ( ) : void
Результат void

ContainsAllOptions() публичный Метод

public ContainsAllOptions ( uint optionBits ) : bool
optionBits uint an option bitmask
Результат bool

ContainsOneOf() публичный Метод

public ContainsOneOf ( uint optionBits ) : bool
optionBits uint an option bitmask
Результат bool

DefineOptionName() защищенный абстрактный Метод

To be implemeted by inheritants.
protected abstract DefineOptionName ( uint option ) : string
option uint a single, valid option bit.
Результат string

Equals() публичный Метод

public Equals ( object obj ) : bool
obj object
Результат bool

GetHashCode() публичный Метод

public GetHashCode ( ) : int
Результат int

GetOption() защищенный Метод

protected GetOption ( uint optionBit ) : bool
optionBit uint the binary bit or bits that are requested
Результат bool

IsExactly() публичный Метод

public IsExactly ( uint optionBits ) : bool
optionBits uint an option bitmask
Результат bool

SetOption() публичный Метод

public SetOption ( uint optionBits, bool value ) : void
optionBits uint the binary bit or bits that shall be set to the given value
value bool the boolean value to set
Результат void

ToString() публичный Метод

public ToString ( ) : string
Результат string

XmpOptions() защищенный Метод

The default constructor.
protected XmpOptions ( ) : System.Collections
Результат System.Collections

XmpOptions() публичный Метод

Constructor with the options bit mask.
If the options are not correct
public XmpOptions ( uint options ) : System.Collections
options uint the options bit mask
Результат System.Collections