ESRI.ArcGIS.ADF.IMS | |
Remove Method | |
See Also Example |
ESRI.ArcGIS.ADF.IMS.Display.AcetateElement Namespace > AcetateElementCollection Class : Remove Method |
- a
- The AcetateElement to be removed from the collection.
Visual Basic (Declaration) | |
---|---|
Public Sub Remove( _ ByVal a As AcetateElement _ ) |
Visual Basic (Usage) | Copy Code |
---|---|
|
C# | |
---|---|
public void Remove( AcetateElement a ) |
Parameters
- a
- The AcetateElement to be removed from the collection.
This example adds, then removes an element from an acetate layer. It assumes the
acetate element and acetate layer have been previously constructed.
Visual Basic | Copy Code |
---|---|
' Add a previously created element to an existing acetate layer |
C# | Copy Code |
---|---|
// Add a previously created element to an existing acetate layer |
Using Remove requires that you have a reference to an existing acetate element.
If you remove all elements from an acetate layer's AcetateElementCollection, the acetate layer should be removed from the map as well. Otherwise, a runtime error will be thrown for an empty collection.