Adds the specified Graphic to the collection.
Namespace:
ESRI.ArcGISExplorer.MappingAssembly: ESRI.ArcGISExplorer (in ESRI.ArcGISExplorer.dll) Version: 2.0.0.900 (2.0.0.900)
Syntax
C# |
---|
public void Add( Graphic graphic ) |
Visual Basic (Declaration) |
---|
Public Sub Add ( _ graphic As Graphic _ ) |
Parameters
- graphic
- Type: ESRI.ArcGISExplorer.Mapping..::.Graphic
The Graphic to add to the collection.
Remarks
Use this method to add a Graphic to the collection. Alternatively, the Add(IEnumerable<(Of <(Graphic>)>)) overload can be used to add multiple graphics in one method call.
Exceptions
Exception | Condition |
---|---|
System..::.ArgumentNullException | The graphic objects added cannot be nullNothingnullptra null reference (Nothing in Visual Basic). |
System..::.ArgumentException | Graphics cannot be added to the collection which are already present in the collection, or are used by Note objects in the map. |