Allows the developer to evaluate the selected item and enable or disable the tool in the context menu.
            
            
            
    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
 
 If (pSelection.Count = 1) Then
 IMMTreeTool_Enabled = mmTSVisible + mmTSEnabled
 End If
 
 End Property
 |  | 
        
    
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.