Initializes a new instance of the Note class with the specified name and Geometry.

Namespace:  ESRI.ArcGISExplorer.Mapping

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

Syntax

C#
public Note(
	string name,
	Geometry geometry
)
Visual Basic (Declaration)
Public Sub New ( _
	name As String, _
	geometry As Geometry _
)

Parameters

name
Type: System..::.String

The name of the Note.
geometry
Type: ESRI.ArcGISExplorer.Geometry..::.Geometry

A Geometry object to set as the Geometry property of the new Note.Graphic; cannot be nullNothingnullptra null reference (Nothing in Visual Basic).

Remarks

This overload initializes the Name with the specified name. The geometry is used to construct a Graphic object to set as the Graphic property of the new Note. The Symbol of the 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 Geometry which is an Envelope, Multipoint, or Multipatch.

See Also