ITinSelection Interface

Provides access to members that control TIN selction methods.

Members

Name Description
Method ClearSelection Clears selected element(s).
Method FlipSelection Flips current selection of the specified element type in the TIN.
Method GetSelection Returns an enumerator containing selected elements.
Method HasSelection Indicates if element(s) is/are selected.
Method IsSelected Returns TRUE if the element referenced by the index is selected.
Method QuerySelectionExtent Returns the extent of the selected elements.
Method SelectAll Selects all elements of the specified element type in the TIN.
Method SelectByArea Selects all elements of the specified element type in a specified polygonal area.
Method SelectByEnvelope Selects all elements of the specified element type in a specified rectangular envelope.
Read-only property SelectedElementCount The number of selected elements.
Method SetSelected Selects the element referenced by the index.
Method SetSelection Selects elements returned by the enumerator.

ITinSelection.ClearSelection Method

Clears selected element(s).

Public Sub ClearSelection ( _
    ByVal Type As esriTinElementType _
)
public void ClearSelection (
    esriTinElementType Type
);

ITinSelection.FlipSelection Method

Flips current selection of the specified element type in the TIN.

Public Sub FlipSelection ( _
    ByVal Type As esriTinElementType, _
    ByVal bDataElementsOnly As Boolean _
)
public void FlipSelection (
    esriTinElementType Type,
    bool bDataElementsOnly
);

ITinSelection.GetSelection Method

Returns an enumerator containing selected elements.

Public Function GetSelection ( _
    ByVal Type As esriTinElementType _
) As IEnumTinElement
public IEnumTinElement GetSelection (
    esriTinElementType Type
);

ITinSelection.HasSelection Method

Indicates if element(s) is/are selected.

Public Function HasSelection ( _
    ByVal Type As esriTinElementType _
) As Boolean
public bool HasSelection (
    esriTinElementType Type
);

ITinSelection.IsSelected Method

Returns TRUE if the element referenced by the index is selected.

Public Function IsSelected ( _
    ByVal Index As Integer, _
    ByVal Type As esriTinElementType _
) As Boolean
public bool IsSelected (
    int Index,
    esriTinElementType Type
);

ITinSelection.QuerySelectionExtent Method

Returns the extent of the selected elements.

Public Sub QuerySelectionExtent ( _
    ByVal Type As esriTinElementType, _
    ByVal pExtent As IEnvelope _
)
public void QuerySelectionExtent (
    esriTinElementType Type,
    IEnvelope pExtent
);

ITinSelection.SelectAll Method

Selects all elements of the specified element type in the TIN.

Public Sub SelectAll ( _
    ByVal Type As esriTinElementType, _
    ByVal bDataElementsOnly As Boolean _
)
public void SelectAll (
    esriTinElementType Type,
    bool bDataElementsOnly
);

Description

If bDataElementsOnly is True then the selection bit for non-data elements is left unchanged. Any previously selected non-data elements will remain selected. If you don't like this call ClearSelection before SelectAll.

ITinSelection.SelectByArea Method

Selects all elements of the specified element type in a specified polygonal area.

Public Sub SelectByArea ( _
    ByVal Type As esriTinElementType, _
    ByVal pArea As IPolygon, _
    ByVal bPassThrough As Boolean, _
    ByVal bDataElementsOnly As Boolean, _
    ByVal action As esriTinSelectionType _
)
public void SelectByArea (
    esriTinElementType Type,
    IPolygon pArea,
    bool bPassThrough,
    bool bDataElementsOnly,
    esriTinSelectionType action
);

ITinSelection.SelectByEnvelope Method

Selects all elements of the specified element type in a specified rectangular envelope.

Public Sub SelectByEnvelope ( _
    ByVal Type As esriTinElementType, _
    ByVal pEnvelope As IEnvelope, _
    ByVal bPassThrough As Boolean, _
    ByVal bDataElementsOnly As Boolean, _
    ByVal action As esriTinSelectionType _
)
public void SelectByEnvelope (
    esriTinElementType Type,
    IEnvelope pEnvelope,
    bool bPassThrough,
    bool bDataElementsOnly,
    esriTinSelectionType action
);

ITinSelection.SelectedElementCount Property

The number of selected elements.

Public Function get_SelectedElementCount ( _
    ByVal Type As esriTinElementType _
) As Integer
public int get_SelectedElementCount (
    esriTinElementType Type
);

ITinSelection.SetSelected Method

Selects the element referenced by the index.

Public Sub SetSelected ( _
    ByVal Index As Integer, _
    ByVal Type As esriTinElementType, _
    ByVal action As esriTinSelectionType _
)
public void SetSelected (
    int Index,
    esriTinElementType Type,
    esriTinSelectionType action
);

Description

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.

ITinSelection.SetSelection Method

Selects elements returned by the enumerator.

Public Sub SetSelection ( _
    ByVal pElements As IEnumTinElement, _
    ByVal action As esriTinSelectionType _
)
public void SetSelection (
    IEnumTinElement pElements,
    esriTinSelectionType action
);

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.

Classes that implement ITinSelection

Classes Description
Tin The Esri TIN component.

Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.