Removes an AcetateElement from a specific index in a collection.
Syntax
Visual Basic (Declaration) | |
---|
Public Sub RemoveAt( _
ByVal index As Integer _
) |
Parameters
- index
- The zero-based index location of the AcetateElement to be removed.
Example
This example adds an element to an existing acetate layer, then removes the first element in the collection. Note this will be the element we just added only if it is the only element in the collection.
Visual Basic | Copy Code |
---|
' Add a previously created element to an existing acetate layer
acetateLayer.AcetateElements.Add(acetatePt)
' Add acetate layer to the map
mapView.Layers.Add(acetateLayer)
' Remove the first acetate graphic from the layer
acetateLayer.AcetateElements.RemoveAt(0) |
C# | Copy Code |
---|
// Add a previously created element to an existing acetate layer
acetateLayer.AcetateElements.Add(acetatePt)
// Add acetate layer to the map
mapView.Layers.Add(acetateLayer)
// Remove the first acetate graphic from the layer
acetateLayer.AcetateElements.RemoveAt(0) |
Remarks
Requirements
Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family
See Also