Click or drag to resize

IMcFeaturesList2LoadList Method

Items are added to the list from a source previously saved to by the SaveList method or from another McFeaturesList.

Namespace:  MediaCy.IQL.Features
Assembly:  MediaCy.IQL.Features (in MediaCy.IQL.Features.dll) Version: 10.0.6912.0
Syntax
VB
Function LoadList ( 
	LoadFrom As Object,
	Optional HowToLoadList As mcHowLoadFeaturesList = mcHowLoadFeaturesList.mchlflReplaceList
) As Integer

Parameters

LoadFrom
Type: SystemObject
Either a Byte array, a string file name, an IStream object, an IStorage object or an McFeaturesList object. If a Byte array, IStream, IStorage or filename, the LoadFrom source is presumed to be one previously filled with list information by the SaveList method, or if a file name, then it may be an "AOI" format file written by Image Pro. If an IStorage is supplied, a stream named "Contents" is opened for loading.
HowToLoadList (Optional)
Type: MediaCy.IQL.FeaturesmcHowLoadFeaturesList
This argument controls whether the items loaded from the list replace the current list, are merged with items of the same name or are appended (with numbers postpended to names, if necessary). The default is mchlflReplaceList.

Return Value

Type: Int32
The number of list elements added or merged. The Count property will not have changed if all loaded elements replaced existing items in the list (i.e., HowToLoadList was mchlflMergeWithList and all names matched existing list elements). Count it will have increased by exactly the returned amount if no loaded elements replaced existing items in the list.

Implements

IMcFeaturesListLoadList(Object, mcHowLoadFeaturesList)
Remarks
A file source can be one previously saved to by the SaveList method, or it can be an Image Pro "AOI" format file.
See Also