Initializes a new instance of the Graphic class with the specified Geometry.

Namespace:  ESRI.ArcGISExplorer.Mapping

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

Syntax

C#
public Graphic(
	Geometry geometry
)
Visual Basic (Declaration)
Public Sub New ( _
	geometry As Geometry _
)

Parameters

geometry
Type: ESRI.ArcGISExplorer.Geometry..::.Geometry

A Geometry object to set as the Geometry property of the new Graphic; cannot be null.

Remarks

This overload constructs a Graphic by initializing the Geometry property with the specified geometry. The Symbol of the new Graphic will be set to the default symbol for the type of Geometry specified.

Exceptions

ExceptionCondition
System..::.NullReferenceExceptionA Graphic cannot have a nullNothingnullptra null reference (Nothing in Visual Basic) Geometry.
System..::.ArgumentExceptionA Graphic cannot have a ESRI.ArcGISExplorer.Geometry which is an Envelope, Multipoint, or Multipatch.

See Also