ArcFM Engine Developer Guide
Enabled Property (IMMTreeViewTool)


IMMTreeViewSelection
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 pSelection As IMMTreeViewSelection _
) As Integer
'Usage
 
Dim instance As IMMTreeViewTool
Dim pSelection As IMMTreeViewSelection
Dim value As Integer
 
value = instance.Enabled(pSelection)
[DispId(1610678274)]
int Enabled( 
   IMMTreeViewSelection pSelection
) {get;}

Parameters

pSelection
IMMTreeViewSelection

Property Value

Long
Example
The following code sample demonstrates how the IMMTreeViewTool::Enabled property may be implemented.
Visual Basic Copy Code
Private Property Get IMMTreeViewTool_Enabled(ByVal pSelection _
As Miner.Interop.FrameworkUI.IMMTreeViewSelection) As Long
    If pSelection Is Nothing Then Exit Property
    If pSelection.Count <> 1 Then Exit Property

    Dim pListItem As ID8ListItem
    Dim pPxNode As IMMPxNode

    pSelection.Reset
    Set pListItem = pSelection.Next

    If Not (Typeof pListItem Is MMPXBASELib.IMMPxNode) Then
        Exit Property
    End If
    Set pPxNode = pListItem

    IMMTreeViewTool_Enabled = InternalEnabled(pPxNode) + _
    IMMTreeViewTool_Enabled
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

IMMTreeViewTool Interface
IMMTreeViewTool Members

 

 


Send Comment