Click or drag to resize

ObjFind Method

Searches this dictionary for a given key.

Namespace:  pdftron.SDF
Assembly:  pdftron (in pdftron.dll) Version: 255.255.255.255
Syntax
public DictIterator Find(
	string key
)

Parameters

key
Type: SystemString
A key to search for in this dictionary.

Return Value

Type: DictIterator
The iterator(DictIterator) to the matching key/value pair or invalid iterator (i.e. itr.HasNext() == false) if this dictionary does not contain the given key.
Remarks
A dictionary entry whose value is Null is equivalent to an absent entry.
Examples
DictIterator itr = info_dict.Find("Info");
if (itr.HasNext()) {
    Obj info = itr.Value();
    if (info.IsDict())
        info.PutString("Producer", "PDFTron PDFNet SDK");
}
See Also