Show / Hide Table of Contents

Class ShapeEnumerable

An implementation of a shape based on a coordinate enumerable.

Inheritance
System.Object
ShapeBase
ShapeEnumerable
Inherited Members
ShapeBase.GetEnumerator()
ShapeBase.IEnumerable.GetEnumerator()
Namespace: System.Dynamic.ExpandoObject
Assembly: cs.temp.dll.dll
Syntax
public class ShapeEnumerable : ShapeBase

Constructors

ShapeEnumerable(IEnumerable<Coordinate>)

Creates a new shape based on a coordinate enumerable.

Declaration
public ShapeEnumerable(IEnumerable<Coordinate> coordinates)
Parameters
IEnumerable<Coordinate> coordinates

ShapeEnumerable(IEnumerable<Coordinate>, Boolean)

Creates a new shape based on a coordinate enumerable.

Declaration
public ShapeEnumerable(IEnumerable<Coordinate> coordinates, bool reversed)
Parameters
IEnumerable<Coordinate> coordinates

System.Boolean reversed

Properties

Count

Returns the number of coordinates.

Declaration
public override int Count { get; }
Property Value
System.Int32

Overrides
ShapeBase.Count

Item[Int32]

Gets or sets the coordinate.

Declaration
public override Coordinate this[int i] { get; }
Parameters
System.Int32 i

Property Value
Coordinate

Overrides
ShapeBase.Item[Int32]

Methods

Reverse()

Returns the same shape but with the order of the coordinates reversed.

Declaration
public override ShapeBase Reverse()
Returns
ShapeBase

Overrides
ShapeBase.Reverse()
Back to top Built by Itinero, MIT licensed.