Interface IArea

Namespace
ESRI.ArcGIS.Geometry
Assembly
ESRI.Server.Geometry.dll

Provides access to members that return properties common to rings and polygons.

[Guid("6039E192-4CC8-11D1-834E-0000F8775BE9")]
[InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
public interface IArea

Properties

Area

The area.

double Area { get; }

Property Value

double

Remarks

 

Area Example

Centroid

The center of gravity (centroid).

IPoint Centroid { get; }

Property Value

IPoint

Remarks

The Centroid does not always occur inside the Area of the geometry.  The Centroid is not the same as the center of the geometry or the Envelope binding the geometry (but it may be if and only if that is also the center of the weighted area).

 

Centroid Example

LabelPoint

A point guaranteed to be inside this area.

IPoint LabelPoint { get; }

Property Value

IPoint

Methods

QueryCentroid(IPoint)

Copies the centroid of this area to the specified point.

void QueryCentroid(IPoint Center)

Parameters

Center IPoint

Remarks

The Centroid does not always occur inside the Area of the geometry.  The Centroid is not the same as the center of the geometry or the Envelope binding the geometry (but it may be if and only if that is also the center of the weighted area).

Note: The output geometry must be co-created prior to the query. The output geometry is not co-created by the method; it is populated. This can be used in performance critical situations. For example, creating the geometry only once outside a loop and use the query method could improve performance.

 

Centroid Example

QueryLabelPoint(IPoint)

Copies to the input point a point guaranteed to be inside this area.

void QueryLabelPoint(IPoint LabelPoint)

Parameters

LabelPoint IPoint

Remarks

Note: The output geometry must be co-created prior to the query. The output geometry is not co-created by the method; it is populated. This can be used in performance critical situations. For example, creating the geometry only once outside a loop and use the query method could improve performance.