FbFileInfo

Members

readonly InfoCount :number

Example
console.log(file_info.InfoCount); // 9

readonly MetaCount :number

Example
let handle = fb.GetFocusItem();
let file_info = handle.GetFileInfo();
if (file_info) {
    console.log(file_info.MetaCount); // 11
}

Methods

InfoFind(name) → {number}

Parameters:
Name Type Description
name string
Returns:
number - -1 if not found

InfoName(idx) → {string}

Parameters:
Name Type Description
idx number
Returns:
string

InfoValue(idx) → {string}

Parameters:
Name Type Description
idx number
Returns:
string

MetaFind(name) → {number}

Parameters:
Name Type Description
name string
Returns:
number - -1 if not found

MetaName(idx) → {string}

Note: the case of the tag name returned can be different depending on tag type, so using toLowerCase() or toUpperCase() on the result is recommended
Parameters:
Name Type Description
idx number
Returns:
string
Example
for (let i = 0; i < f.MetaCount; ++i) {
     console.log(file_info.MetaName(i).toUpperCase());
}

MetaValue(idx, value_idx) → {string}

Parameters:
Name Type Description
idx number
value_idx number Used for iterating through multi-value tags.
Returns:
string

MetaValueCount(idx) → {number}

The number of values contained in a meta tag.
Parameters:
Name Type Description
idx number
Returns:
number