Adds the specified Graphic to the collection.

Namespace:  ESRI.ArcGISExplorer.Mapping

Assembly:  ESRI.ArcGISExplorer (in ESRI.ArcGISExplorer.dll) Version: 2.0.0.1500 (2.0.0.1500)

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

ExceptionCondition
System..::.ArgumentNullExceptionThe graphic objects added cannot be nullNothingnullptra null reference (Nothing in Visual Basic).
System..::.ArgumentExceptionGraphics cannot be added to the collection which are already present in the collection, or are used by Note objects in the map.

See Also