ArcObjects Library Reference (GeoDatabase)  

ITinSelection.SetSelection Method

Selects elements returned by the enumerator.

[Visual Basic .NET]
Public Sub SetSelection ( _
    ByVal pElements As IEnumTinElement, _
    ByVal action As esriTinSelectionType _
)
[C#]
public void SetSelection (
    IEnumTinElement pElements,
    esriTinSelectionType action
);
[C++]
HRESULT SetSelection(
  IEnumTinElement* pElements,
  esriTinSelectionType action
);
[C++]

Parameters

pElements [in]

  pElements is a parameter of type IEnumTinElement

action [in]

  action is a parameter of type esriTinSelectionType

Product Availability

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

Description

SetSelection selects all elements returned by the passed enumerator.

SetSelection will run through the passed enumerator, leaving the enumerator at the end. To subsequently use the enumerator for something else you must first use IEnumTinElement.Reset otherwise it returns a Null pointer ('Nothing' in VB) for Next and an empty element for QueryNext.

When working with edge selection the software will ensure an edge selected/unselected in one triangle will also select/unselect the corresponding edge in the neighboring triangle. So while there are technically two edges separating adjacent triangles TIN selection handles them logically as one.

See Also

ITinSelection Interface