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

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,
	Symbol symbol
)
Visual Basic (Declaration)
Public Sub New ( _
	geometry As Geometry, _
	symbol As Symbol _
)

Parameters

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

A Geometry object to set as the Geometry property of the new Graphic; cannot be null.
symbol
Type: ESRI.ArcGISExplorer.Mapping..::.Symbol

A Symbol object to set as the Symbol property of the new Graphic.

Remarks

This overload constructs a Graphic by initializing the Geometry and Symbol properties with the specified geometry and symbol. If the symbol is nullNothingnullptra null reference (Nothing in Visual Basic) or is of the wrong SymbolType for the specified GeometryType, then the Symbol property will be set to the default symbol instead.

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