ArcFM Engine Developer Guide
Enabled Property (IMMTreeTool)


An ID8EnumListItem type representing the selected items in the tree
A Long representing the number of selected items in the tree
Allows the developer to evaluate the selected item and enable or disable the tool in the context menu.
Syntax
'Declaration
 
<DispIdAttribute(1610678274)>
ReadOnly Property Enabled( _
   ByVal pEnumItems As ID8EnumListItem, _
   ByVal lItemCount As Integer _
) As Integer
'Usage
 
Dim instance As IMMTreeTool
Dim pEnumItems As ID8EnumListItem
Dim lItemCount As Integer
Dim value As Integer
 
value = instance.Enabled(pEnumItems, lItemCount)
[DispId(1610678274)]
int Enabled( 
   ID8EnumListItem pEnumItems,
   int lItemCount
) {get;}

Parameters

pEnumItems
An ID8EnumListItem type representing the selected items in the tree
lItemCount
A Long representing the number of selected items in the tree
Example
The Enabled property should return a Long representing the visible and enabled state of the tool. Developers should use mmToolState enumeration to build the state of their custom tree tool. The following code sample illustrates the Enabled property:
Visual Basic Copy Code
Private Property Get IMMTreeTool_Enabled(ByVal pEnumItems _
As mmGeodatabase.ID8EnumListItem And ByVal IItemCount As Long) As Long

    IMMTreeTool_Enabled = mmTSNone
    ' Only make this tool enabled and visible if there's one item selected
    If (pSelection.Count = 1) Then
        IMMTreeTool_Enabled = mmTSVisible + mmTSEnabled
    End If

End Property
Requirements

Target Platforms: Windows XP SP3 (32-bit and 64-bit), Windows 7 (32-bit and 64-bit)

Not all Operating Systems are supported on all products. Visit the ArcFM Solution Supported Versions page for full details.

See Also

Reference

IMMTreeTool Interface
IMMTreeTool Members

 

 


Send Comment