Class PointCollection
A collection of Point keyframe values for a property animation behavior.
Maps to the p:tavLst element within p:anim in the
OOXML timing model.
Inherited Members
Namespace: DRIT.Presentation.Animation
Assembly: DRIT.Presentation.dll
Syntax
public class PointCollection : IPointCollection, IEnumerable<IPoint>, IEnumerable
Constructors
PointCollection()
Initializes a new empty PointCollection.
Declaration
public PointCollection()
PointCollection(IEnumerable<Point>)
Initializes a new PointCollection with the specified points.
Declaration
public PointCollection(IEnumerable<Point> points)
Parameters
| Type | Name | Description |
|---|---|---|
| IEnumerable<Point> | points |
Properties
Count
Gets the number of points in the collection.
Declaration
public int Count { get; }
Property Value
| Type | Description |
|---|---|
| int |
this[int]
Gets the point at the specified index.
Declaration
public Point this[int index] { get; }
Parameters
| Type | Name | Description |
|---|---|---|
| int | index |
Property Value
| Type | Description |
|---|---|
| Point |
Methods
Add(Point)
Adds a point to the collection.
Declaration
public void Add(Point point)
Parameters
| Type | Name | Description |
|---|---|---|
| Point | point |
Add(float, object)
Creates and adds a new point with the specified time and value.
Declaration
public Point Add(float time, object value)
Parameters
| Type | Name | Description |
|---|---|---|
| float | time | |
| object | value |
Returns
| Type | Description |
|---|---|
| Point |
Clear()
Removes all points from the collection.
Declaration
public void Clear()
Contains(Point)
Determines whether the collection contains the specified point.
Declaration
public bool Contains(Point point)
Parameters
| Type | Name | Description |
|---|---|---|
| Point | point |
Returns
| Type | Description |
|---|---|
| bool |
GetEnumerator()
Returns an enumerator that iterates through the collection.
Declaration
public IEnumerator<IPoint> GetEnumerator()
Returns
| Type | Description |
|---|---|
| IEnumerator<IPoint> | An enumerator that can be used to iterate through the collection. |
Insert(int, Point)
Inserts a point at the specified index.
Declaration
public void Insert(int index, Point point)
Parameters
| Type | Name | Description |
|---|---|---|
| int | index | |
| Point | point |
Remove(Point)
Removes the specified point.
Declaration
public bool Remove(Point point)
Parameters
| Type | Name | Description |
|---|---|---|
| Point | point |
Returns
| Type | Description |
|---|---|
| bool |
RemoveAt(int)
Removes the point at the specified index.
Declaration
public void RemoveAt(int index)
Parameters
| Type | Name | Description |
|---|---|---|
| int | index |