ImmutablePart QML Type

Polygon} or Polyline)."> ImmutablePart QML Type | ArcGISQtQml
  • Esri.ArcGISRuntime
  • ImmutablePart
  • An immutable collection of Segments that compose a single part of an immutable Multipart geometry (Polygon} or Polyline). More...

    Import Statement: import Esri.ArcGISRuntime
    Since: Esri.ArcGISRuntime 100.0
    Inherits:

    Object

    Properties

    Methods

    Detailed Description

    Note: You cannot declare or create a component of this type in QML code.

    This collection is used to represent a part in a Multipart geometry. This is a collection of segments. The points that are the vertices of the segments are also accessible.

    Property Documentation

    [read-only] empty : bool

    Returns whether the ImmutablePart contains any points or segments (read-only).


    [read-only] hasCurves : bool

    Returns true if this part has curves (read-only).


    [read-only] pointCount : int

    Returns the number of points the ImmutablePart contains (read-only).


    [read-only] segmentCount : int

    Returns the number of segments the ImmutablePart contains (read-only).


    [read-only] spatialReference : SpatialReference

    Returns the SpatialReference of ImmutablePart (read-only).


    Method Documentation

    Point endPoint()

    Gets the end point of the ImmutablePart.

    Returns the end Point or null if there isn't one.


    int endPointIndexFromSegmentIndex(int segmentIndex)

    Gets the end point index from the given segmentIndex.

    Returns the end point index or -1 on error or invalid index.


    Point point(int pointIndex)

    Gets the Point at index pointIndex.

    Returns the Point or null if not found.


    Gets the points of the ImmutablePart.

    Returns the ImmutablePointCollection of this ImmutablePart.


    Segment segment(int segmentIndex)

    Gets the Segment at segmentIndex.

    Returns the Segment or null if the index isn't valid.


    int segmentEndPointIndexFromPointIndex(int pointIndex)

    Gets the segment end point index from the given pointIndex.

    Returns the segment end point index or -1 on error or invalid index.


    int segmentIndexFromEndPointIndex(int pointIndex)

    Gets the segment index from the end point index pointIndex.

    Converts from a point index to a segment index that uses the given point as an end point. If the point is not an end point then -1 is returned.


    int segmentIndexFromStartPointIndex(int pointIndex)

    Returns converting from a point index to a segment index that uses the given point as a start point.

    If the point is not a start point, then -1 is returned.

    • pointIndex - Zero-based index of the point.

    Returns the segment point index or -1 on error or invalid index.


    int segmentStartPointIndexFromPointIndex(int pointIndex)

    Gets the segment start point index from the given pointIndex.

    Returns the segment start point index or -1 on error or invalid index.


    Point startPoint()

    Gets the start point of the ImmutablePart.

    Returns the start Point or null if there isn't one.


    int startPointIndexFromSegmentIndex(int segmentIndex)

    Gets the start point index from the given segmentIndex.

    Returns the start point index or -1 on error or invalid index.


    Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.