Show / Hide Table of Contents

Class PolylineBuilder

Builder for creating and modifying Polyline geometries incrementally.

Inheritance
System.Object
GeometryBuilder<Polyline>
MultipartBuilder<Polyline>
PolylineBuilder
MultipartBuilder<Polyline>.Parts
MultipartBuilder<Polyline>.AddPoint(MapPoint)
MultipartBuilder<Polyline>.AddPoint(Double, Double)
MultipartBuilder<Polyline>.AddPoint(Double, Double, Double)
MultipartBuilder<Polyline>.AddPoints(IEnumerable<MapPoint>)
MultipartBuilder<Polyline>.AddPart(IEnumerable<MapPoint>)
MultipartBuilder<Polyline>.AddPart(IEnumerable<Segment>)
MultipartBuilder<Polyline>.AddParts(IEnumerable<IEnumerable<Segment>>)
MultipartBuilder<Polyline>.ReplaceGeometry(Polyline)
GeometryBuilder<Polyline>.SpatialReference
GeometryBuilder<Polyline>.Extent
GeometryBuilder<Polyline>.HasM
GeometryBuilder<Polyline>.HasZ
GeometryBuilder<Polyline>.IsEmpty
GeometryBuilder<Polyline>.IsSketchValid
GeometryBuilder<Polyline>.HasCurves
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Esri.ArcGISRuntime.Geometry
Assembly: Esri.ArcGISRuntime.dll
Syntax
public sealed class PolylineBuilder : MultipartBuilder<Polyline>
Remarks

Polyline geometries are immutable and cannot be changed directly once created. The polyline builder allows you to change the contents of the shape by using the mutable part collection that is accessible from the Parts property. Each Part in the collection comprises a collection of segments that make the Part. You can add or remove a Part from the part collection, or you can create or edit segment vertices of an existing Part. Use ToGeometry() to return the new Polyline from the builder.

Constructors

Name Description
PolylineBuilder(Polyline)

Initializes a new instance of the PolylineBuilder class by copying the parts from the specified Polyline.

PolylineBuilder(SpatialReference)

Initializes a new instance of the PolylineBuilder class with the specified SpatialReference.

PolylineBuilder(IEnumerable<MapPoint>, SpatialReference)

Initializes a new instance of the PolylineBuilder class.

PolylineBuilder(IEnumerable<Segment>, SpatialReference)

Initializes a new instance of the PolylineBuilder class.

PolylineBuilder(IEnumerable<IEnumerable<MapPoint>>, SpatialReference)

Initializes a new instance of the PolylineBuilder class.

PolylineBuilder(IEnumerable<IEnumerable<Segment>>, SpatialReference)

Initializes a new instance of the PolylineBuilder class.

Methods

Name Description
ToGeometry()

Returns the Geometry this geometry builder is constructing or modifying.

Applies to

TargetVersions
.NET Standard 2.0100.3 - 200.7
.NET100.13 - 200.7
.NET Windows100.13 - 200.7
.NET Android200.0 - 200.7
.NET iOS200.0 - 200.7
.NET Framework100.0 - 200.7
Xamarin.Android100.0 - 100.15
Xamarin.iOS100.0 - 100.15
UWP100.0 - 200.7

Relevant samples

Show location history: Display your location history on the map.
In This Article
Back to top Copyright © 2022 Esri.