This document is archived and information here might be outdated. Recommended version. |
ArcObjects Help for .NET developers > ArcObjects namespaces > Geodatabase > ESRI.ArcGIS.GeoDatabase > Interfaces > IT > ITopologyGraph Interface > ITopologyGraph.Select Method (ArcObjects .NET 10.5 SDK) |
Adds the specified element to the selected subset of the graph.
[Visual Basic .NET] Public Function Select ( _ ByVal selectHow As esriTopologySelectionResultEnum, _ ByVal Element As ITopologyElement _ ) As Boolean
[C#] public bool Select ( esriTopologySelectionResultEnum selectHow, ITopologyElement Element );
[C++]
HRESULT Select(
esriTopologySelectionResultEnum selectHow,
ITopologyElement* Element,
VARIANT_BOOL* SelectionChanged
);
[C++]
Parameters selectHow
selectHow is a parameter of type esriTopologySelectionResultEnum Element
Element is a parameter of type ITopologyElement SelectionChanged [out, retval] SelectionChanged is a parameter of type VARIANT_BOOL
The ITopologyGraph::Select method allow to modify the current set of selected TopologyElement part of the TopologyGraph. The selection behavior is determined by the esriTopologySelectionResultEnum parameter.
If a Topology Element selected programmatically has to be moved using the Topology Edit Tool, the Selection Anchor has to be set to a valid location on the topology element.
For example, to move a node the selection anchor can be set to the location of the node.
ESRI.ArcGIS.Display.IAnchorPoint anchorPoint=editor.SelectionAnchor;
anchorPoint.MoveTo(topologyNode.Geometry, activeDisplay);