This method returns the group ID of a requested layer feature group, layer annotation group or a layer root group of a specified feature layer Features, Annotations or Root group.
HRESULT GetGroupId(
[in, optional, defaultvalue(100)] LayerFolderType lLayerType,
[out, retval] long* lGroupId)
Parameters:
ILayerType – An enum determining the requested group type. The LayerFolderType enum can use any of the following values:
LAYER_ROOT = 100
Request the root group.
LAYER_FEATURE = 101
Request the features group (i.e., Polylines, Polygons, or
Points).
LAYER_ANNOTATION = 102
Requests the annotations group.
IGoupId – The ID that represents the requested group in the Information Window. If a features group is requested in a layer that does not include annotations, the ItemID of the group is returned. If an annotations group is requested in a layer that does not contain annotations, 0 (zero) is returned.
Return Values:
The return value obtained from the returned HRESULT can be one of the following:
Return value |
Meaning |
S_OK |
Success. |
E_FAIL |
Catastrophic failure. |