|
| ESRI.ArcGIS.ADF.IMS | |
| Remove Method | |
| See Also Example | |
| ESRI.ArcGIS.ADF.IMS.Display.Renderer Namespace > LabelValueCollection Class : Remove Method |
- val
- The LabelValue to be removed.
| Visual Basic (Declaration) | |
|---|---|
Public Sub Remove( _ ByVal val As LabelValue _ ) | |
| Visual Basic (Usage) | Copy Code |
|---|---|
| |
| C# | |
|---|---|
public void Remove( LabelValue val ) | |
Parameters
- val
- The LabelValue to be removed.
The following example removes the smallest cities from a renderer via the
ValueMapLabelRenderer's collection. It first drills down into the layer (which has
a GroupRenderer) to find the LabelValueCollection. Then it iterates through the
values, finding the value range based on the minimum value. If found, the value is
removed from the renderer.
| Visual Basic | Copy Code |
|---|---|
' Access the values collection of a value map label renderer | |
| C# | Copy Code |
|---|---|
// Access the values collection of a value map label renderer | |
The input parameter must be a valid reference to an existing Value object in the
collection, either a LabelValueRange or a
UniqueLabelValue object.