Class PolyLineObject.PolyPointCollection
Represents a collection of poly points.
Inheritance
System.Object
PolyLineObject.PolyPointCollection
Namespace: FastReport
Assembly: FastReport.Base.dll
Syntax
public class PolyPointCollection : IEnumerable<PolyLineObject.PolyPoint>, IEnumerable
Constructors
PolyPointCollection()
Initializes a new instance of PolyLineObject.PolyPointCollection class.
Declaration
public PolyPointCollection()
Properties
Count
Gets the number of points in this collection.
Declaration
public int Count { get; }
Property Value
| Type | Description |
|---|---|
| System.Int32 |
Item[Int32]
Gets or sets point at index specified.
Declaration
public PolyLineObject.PolyPoint this[int index] { get; set; }
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32 | index | The 0-based index. |
Property Value
| Type | Description |
|---|---|
| PolyLineObject.PolyPoint | The point. |
Methods
Add(PolyLineObject.PolyPoint)
Adds a point.
Declaration
public void Add(PolyLineObject.PolyPoint item)
Parameters
| Type | Name | Description |
|---|---|---|
| PolyLineObject.PolyPoint | item | The new point. |
Clear()
Clears this collection.
Declaration
public void Clear()
Clone()
Makes a clone of this collection.
Declaration
public PolyLineObject.PolyPointCollection Clone()
Returns
| Type | Description |
|---|---|
| PolyLineObject.PolyPointCollection | A new collection. |
GetEnumerator()
Gets an enumerator.
Declaration
public IEnumerator<PolyLineObject.PolyPoint> GetEnumerator()
Returns
| Type | Description |
|---|---|
| System.Collections.Generic.IEnumerator<PolyLineObject.PolyPoint> | The enumerator. |
IndexOf(PolyLineObject.PolyPoint)
Gets an index of specified point.
Declaration
public int IndexOf(PolyLineObject.PolyPoint currentPoint)
Parameters
| Type | Name | Description |
|---|---|---|
| PolyLineObject.PolyPoint | currentPoint | A point. |
Returns
| Type | Description |
|---|---|
| System.Int32 | The index of a point. |
Insert(Int32, PolyLineObject.PolyPoint)
Inserts a new point into this collection.
Declaration
public void Insert(int index, PolyLineObject.PolyPoint item)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32 | index | The index to insert before. |
| PolyLineObject.PolyPoint | item | The new point. |
Remove(Int32)
Removes a point with specified index.
Declaration
public void Remove(int index)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32 | index | Index of point to remove. |