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

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

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.
label
Type: System..::.String

A string representing the label of the new Graphic.

Remarks

This overload constructs a Graphic by initializing the Geometry, Symbol and Label properties with the specified geometry, symbol and label. 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. The labelmay be nullNothingnullptra null reference (Nothing in Visual Basic) or an empty string, in which case no label is drawn for the Graphic.

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