ArcObjects Library Reference (GeoDatabase)  

ITopologyGraph.Select Method

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

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Description

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.

Remarks

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.

[C#]

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);

See Also

ITopologyGraph Interface