class
FbFileInfo
js/foo_uie_jsplitter.js:3407
Object returned by GetFileInfo
Object returned by GetFileInfo
InfoCount: number
console.log(file_info.InfoCount); // 9
MetaCount: number
let handle = fb.GetFocusItem();
let file_info = handle.GetFileInfo();
if (file_info) {
console.log(file_info.MetaCount); // 11
}
InfoFind(name)
| Name | Type | Description |
|---|---|---|
name | string |
number — -1 if not found
InfoName(idx)
| Name | Type | Description |
|---|---|---|
idx | number |
stringInfoValue(idx)
| Name | Type | Description |
|---|---|---|
idx | number |
stringMetaFind(name)
| Name | Type | Description |
|---|---|---|
name | string |
number — -1 if not found
MetaName(idx)
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
| Name | Type | Description |
|---|---|---|
idx | number |
stringfor (let i = 0; i < f.MetaCount; ++i) {
console.log(file_info.MetaName(i).toUpperCase());
}
MetaValue(idx, value_idx)
| Name | Type | Description |
|---|---|---|
idx | number | |
value_idx | number | Used for iterating through multi-value tags. |
stringMetaValueCount(idx)
The number of values contained in a meta tag.
| Name | Type | Description |
|---|---|---|
idx | number |
number