Object: Collection |
Version 1.0 |
DLL: VPFInfo.dll |
| |
| See also: Data Object, Reader Object |
|
|
| |
METHODS
|
| |
GetFontInfoByGUID IData ** GetFontInfoByGUID(BSTR bstrGuid)
|
| |
| |
|
| |
PROPERTIES
|
| |
Item IData ** Item(long Index)
|
| |
| |
Count long Count
|
| |
| |
|
| |
| |
GetFontInfoByGUID |
| |
| Name |
GetFontInfoByGUID |
| |
|
| Description |
Loads info from .vpf file if found within collection |
| |
|
| Type |
Method |
| |
|
| Interface |
| IData ** GetFontInfoByGUID ( |
|
| |
BSTR bstrGuid |
| ) |
|
|
| |
|
| Parameters |
| bstrGuid |
Specifies the unique ID of the font |
|
| |
|
| Returning value |
Returns pointer to DataObject if the Guid was found in the collection |
| |
|
|
Example
|
JScript:
var readobj = Server.CreateObject("VPFInfo.Reader ");
var collection = readobj.LoadFontCollectionFromFile("C:\\MyFonts\\");
var dataobj = collection.GetFontInfoByGUID( "{00000000-0000-0000-0000-000000000000}" );
//With or without { }
VBScript:
readobj = Server.CreateObject("VPFInfo.Reader ")
Set collection = readobj.LoadFontCollectionFromFile("C:\MyFonts\")
Set dataobj = collection.GetFontInfoByGUID( "{00000000-0000-0000-0000-000000000000}" )
//With or without { }
|
|
| |
|
| goto top |
|
|
| |
|
Count |
| |
| Name |
Count |
| |
|
| Description |
Returns the number of items in the collection |
| |
|
| Type |
Property |
| |
|
| Interface |
|
| |
|
| Parameters |
|
| |
|
| Returning value |
Number of items in the collection |
| |
|
|
Example
|
JScript:
var items = collection.Count;
VBScript:
items = collection.Count
|
|
| |
|
| goto top |
|
|
| |
Item |
| |
| Name |
Item |
| |
|
| Description |
Returns pointer to object by index |
| |
|
| Type |
Property |
| |
|
Interface |
| IData ** Item ( |
|
| |
long Index |
| ) |
|
|
| Parameters |
| Index |
Collection index, starting at 0 |
|
| |
|
| |
|
| Returning value |
Pointer to DataObject |
| |
|
|
Example
|
JScript:
var dataobj = collection.Item(2);
VBScript:
Set dataobj = collection.Item(2)
|
|
| |
|
| goto top |
|
|