This document is archived and information here might be outdated.  Recommended version.


IGeometry.Dimension Property (ArcObjects .NET 10.5 SDK)
ArcObjects Library Reference (Geometry)  

IGeometry.Dimension Property

The topological dimension of this geometry.

[Visual Basic .NET]
Public ReadOnly Property Dimension As esriGeometryDimension
[C#]
public esriGeometryDimension Dimension {get;}
[C++]
HRESULT get_Dimension(
  esriGeometryDimension* Dimension
);
[C++]

Parameters Dimension [out, retval]
Dimension is a parameter of type esriGeometryDimension

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Description

Returns the dimension of the geometry object based on the geometry's type.

Remarks


Note: At 9.0, Multipatches are now considered as two dimensional geometry. esriGeometry3Dimension will be used for an upcoming new geometry type.
Supported esriGeometryDimensions:

-1    esriGeometryNoDimension
1    esriGeometry0Dimension
2    esriGeometry1Dimension
4    esriGeometry2Dimension
5    esriGeometry25Dimension
6    esriGeometry3Dimension

Dimension Example

See Also

IGeometry Interface

.NET Related Topics

Using ArcObjects (COM-based) in .NET