ESRI.ArcGIS.E2API Feedback via the User Forum
Point Class
See Also  Members   Example 
ESRI.ArcGIS.E2API Namespace : Point Class


Represents a single location in space.

Object Model


Syntax

Visual Basic (Declaration) 
<ComVisibleAttribute(False)>
Public NotInheritable Class Point 
   Inherits Geometry
Visual Basic (Usage)Copy Code
Dim instance As Point
C# 
[ComVisibleAttribute(false)]
public sealed class Point : Geometry 

Example

This example demonstrates how to create a Point to define the geometry of a PlaceResult.
C#Copy Code
//Create Task Context. 
TaskContext newTaskContext = new TaskContext(); 
newTaskContext.TaskName = "MyCustomTask.CustomTask"; 
newTaskContext.TaskUIName = _taskUI.Name; 
 
ESRI.ArcGIS.E2API.PlaceResult MyPlaceResult = new PlaceResult(); 
MyPlaceResult.Title = "My Place Result"; 
 
// Create Point centered on Greenwich, England. 
ESRI.ArcGIS.E2API.Point MyPoint = new ESRI.ArcGIS.E2API.Point(); 
MyPoint.X = 0; 
MyPoint.Y = 51.480; 
 
MyPlaceResult.Geometry = MyPoint; 
MyPlaceResult.SymbolName = "Red Pushpin"; 
 
newTaskContext.UpdateResult(MyPlaceResult);
Visual BasicCopy Code
'Create Task Context.
Dim NewTaskContext As TaskContext = New TaskContext()
NewTaskContext.TaskName = "MyCustomTask.CustomTask"
NewTaskContext.TaskUIName = _taskUI.Name

Dim MyPlaceResult As ESRI.ArcGIS.E2API.PlaceResult = New PlaceResult()
MyPlaceResult.Title = "My Place Result"

' Create Point centered on Greenwich, England.
Dim MyPoint As ESRI.ArcGIS.E2API.Point = New ESRI.ArcGIS.E2API.Point()
MyPoint.X = 0
MyPoint.Y = 51.480

MyPlaceResult.Geometry = MyPoint
MyPlaceResult.SymbolName = "Red Pushpin"

NewTaskContext.UpdateResult(MyPlaceResult)

Inheritance Hierarchy

System.Object
   ESRI.ArcGIS.E2API.Geometry
      ESRI.ArcGIS.E2API.Point

Platforms

Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

Version Information

This class was added to the E2API at version 1.0.0.348.

See Also