IMcFeaturesListItem Property
|
|
Exposes an item in the McFeatures list, given a list index, a name
or an object instance.
Namespace:
MediaCy.IQL.Features
Assembly:
MediaCy.IQL.Features (in MediaCy.IQL.Features.dll) Version: 10.0.6912.0
SyntaxReadOnly Default Property Item (
IndexNameOrItem As Object,
Optional HowItemIsExposed As mcHowItemIsExposed = mcHowItemIsExposed.mchieAsMcFeatures
) As Object
Get
Parameters
- IndexNameOrItem
- Type: SystemObject
Either an index number, a name string or an object.
See Remarks for details. - HowItemIsExposed (Optional)
- Type: MediaCy.IQL.FeaturesmcHowItemIsExposed
Determines whether the Item is exposed as a
McFeatures-based or McGraphOverlay object (the default), as the list index,
as the list item name, list index mcFeaturesType or ExtraInfo associated
with the list item..
Property Value
Type:
Object
RemarksThis is the default property for the McFeaturesList interface.
How the item is exposed depends on the HowItemIsExposed argument. It can be
exposed as exposed as an McFeatures or McGraphOverlay object (mchieAsMcFeatures,
the default), as the list index (mchieAsIndex) or as the list item name
(mchieAsName). If the requested Item cannot be found then it is exposed as a
Nothing McFeatures object or a list index of -1. It is an error to not find the
requested object if the Item is to be exposed as a name.
If a zero-based index number is supplied as the IndexNameOrItem argument, then
the item at that is returned. An error is returned if there is no
list item at the given index.
If a name string is supplied as the IndexNameOrItem argument then
the item in the list matching the given name (using a case-insensitive
comparison) is exposed if it is found.
If an object is supplied as the IndexNameOrItem argument, then it must resolve
to either an McFeatures-derived object or to an McObject backing a such an object.
The McFeatures in the list matching the given object is exposed if it is found.
Examples
Dim lIndexFound As Long
lIndexFound = AoiList("Round", mchieAsIndex)
if lIndexFound = -1 Then
MsgBox "No item named Round was found"
Else
MsgBox "The name of the found item is : " & AoiList(lIndexFound, mchieAsName)
End If
See Also