This document is archived and information here might be outdated. Recommended version. |
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
);
[C++] Parameters selectHow
selectHow is a parameter of type esriTopologySelectionResultEnum Element
Element is a parameter of type ITopologyElement*
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);