ArcGIS Pro 3.3 API Reference Guide
ArcGIS.Core.Geometry Namespace / Geometry Class / Dimension Property

In This Topic
    Dimension Property (Geometry)
    In This Topic
    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, Multipatches and Envelopes have dimension 2.
    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3 or higher.
    See Also