ArcGIS Pro 2.8 API Reference Guide
Dimension Property (Geometry)

ArcGIS.Core.Geometry Namespace > Geometry Class : Dimension Property
Gets the dimension of the geometry.
Syntax
public int Dimension {get;}
Public ReadOnly Property Dimension As Integer
Exceptions
ExceptionDescription
The method is not implemented for GeometryBag.
Remarks
Points and Multipoints have dimension 0.
Polylines have dimension 1.
Polygons and Envelopes have dimension 2.
Requirements

Target Platforms: Windows 10, Windows 8.1

See Also

Reference

Geometry Class
Geometry Members