• DR-IT Software
  • Products
  • Documentation
  • Product page
  • Examples
  • API reference
  • Support
Show / Hide Table of Contents

Class InkTraceCollection

A collection of InkTrace objects on an Ink. Provides Add, Insert, Remove, Clear, and indexer access. Maps to the sequence of InkML <trace> elements.

Inheritance
object
InkTraceCollection
Implements
IList<InkTrace>
ICollection<InkTrace>
IEnumerable<InkTrace>
IEnumerable
Inherited Members
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
Namespace: DRIT.Presentation.Drawing
Assembly: DRIT.Presentation.dll
Syntax
public class InkTraceCollection : IList<InkTrace>, ICollection<InkTrace>, IEnumerable<InkTrace>, IEnumerable

Properties

Count

Gets the number of traces in the collection.

Declaration
public int Count { get; }
Property Value
Type Description
int

IsReadOnly

Gets a value indicating whether the collection is read-only.

Declaration
public bool IsReadOnly { get; }
Property Value
Type Description
bool

this[int]

Gets or sets the trace at the specified index.

Declaration
public InkTrace this[int index] { get; set; }
Parameters
Type Name Description
int index
Property Value
Type Description
InkTrace

Methods

Add()

Creates and adds a new empty trace to the collection.

Declaration
public InkTrace Add()
Returns
Type Description
InkTrace

The newly created trace.

Add(InkTrace)

Adds the specified trace to the collection.

Declaration
public void Add(InkTrace item)
Parameters
Type Name Description
InkTrace item

Add(IEnumerable<InkTracePoint>)

Creates and adds a new trace with the specified points.

Declaration
public InkTrace Add(IEnumerable<InkTracePoint> points)
Parameters
Type Name Description
IEnumerable<InkTracePoint> points

The points for the new trace.

Returns
Type Description
InkTrace

The newly created trace.

Clear()

Removes all traces from the collection.

Declaration
public void Clear()

Contains(InkTrace)

Determines whether the collection contains the specified trace.

Declaration
public bool Contains(InkTrace item)
Parameters
Type Name Description
InkTrace item
Returns
Type Description
bool

CopyTo(InkTrace[], int)

Copies the traces to an array starting at the specified index.

Declaration
public void CopyTo(InkTrace[] array, int arrayIndex)
Parameters
Type Name Description
InkTrace[] array
int arrayIndex

GetEnumerator()

Returns an enumerator that iterates through the collection.

Declaration
public IEnumerator<InkTrace> GetEnumerator()
Returns
Type Description
IEnumerator<InkTrace>

IndexOf(InkTrace)

Returns the index of the specified trace, or -1 if not found.

Declaration
public int IndexOf(InkTrace item)
Parameters
Type Name Description
InkTrace item
Returns
Type Description
int

Insert(int, InkTrace)

Inserts a trace at the specified index.

Declaration
public void Insert(int index, InkTrace item)
Parameters
Type Name Description
int index
InkTrace item

Remove(InkTrace)

Removes the first occurrence of the specified trace.

Declaration
public bool Remove(InkTrace item)
Parameters
Type Name Description
InkTrace item
Returns
Type Description
bool

RemoveAt(int)

Removes the trace at the specified index.

Declaration
public void RemoveAt(int index)
Parameters
Type Name Description
int index

Implements

IList<T>
ICollection<T>
IEnumerable<T>
IEnumerable
Back to top

DR-IT Software documentation

DR-IT Software · Products · Documentation index · Product page · Downloads · Support · Licensing

Generated by DocFX