ArcFM Solution Developer Guide
Enabled Property (IMMDisplayNamer)


IDataset
Use this property to determine when a display name object is enabled based on dataset properties. For example, you can choose to enable a display name object only when a particular feature class is selected. Returning False prevents the ArcFM Properties Manager from displaying the object for selection.
Syntax
'Declaration
 
<DispIdAttribute(1610678273)>
ReadOnly Property Enabled( _
   ByVal pDataset As ESRI.ArcGIS.Geodatabase.IDataset _
) As Boolean
'Usage
 
Dim instance As IMMDisplayNamer
Dim pDataset As ESRI.ArcGIS.Geodatabase.IDataset
Dim value As Boolean
 
value = instance.Enabled(pDataset)
[DispId(1610678273)]
bool Enabled( 
   ESRI.ArcGIS.Geodatabase.IDataset pDataset
) {get;}

Parameters

pDataset
IDataset

Property Value

Boolean
Example
The following code sample demonstrates how the IMMDisplayNamer::Enabled property may be implemented.
Visual Basic Copy Code
Private Function IMMDisplayNamer_Enabled(ByVal pDataset As IDataset) As Boolean
    IMMDisplayNamer_Enabled = False

    If pDataset.Name = "GasValve" Then
        IMMDisplayNamer_Enabled = True
    End If
End Function
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

IMMDisplayNamer Interface
IMMDisplayNamer Members

 

 


Send Comment