Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

StrokeCollection Methods

The StrokeCollection type exposes the following members.

  Name Description
Public method Add(T) Adds an object to the end of the Collection<T>. (Inherited from Collection<T>.)
Public method Add(StrokeCollection) Adds the specified strokes to the StrokeCollection.
Public method AddPropertyData Adds a custom property to the StrokeCollection.
Public method Clear Removes all elements from the Collection<T>. (Inherited from Collection<T>.)
Protected method ClearItems Infrastructure. Clears all strokes from the StrokeCollection. (Overrides Collection<T>.ClearItems().)
Public method Clip(IEnumerable<Point>) Removes all strokes in the StrokeCollection that are outside the bounds of the specified Point array.
Public method Clip(Rect) Replaces all strokes that are clipped by the specified rectangle with new strokes that do not extend beyond the specified rectangle.
Public method Clone Copies the StrokeCollection.
Public method Contains Determines whether an element is in the Collection<T>. (Inherited from Collection<T>.)
Public method ContainsPropertyData Returns whether the specified custom property identifier is in the StrokeCollection.
Public method CopyTo Copies the entire Collection<T> to a compatible one-dimensional Array, starting at the specified index of the target array. (Inherited from Collection<T>.)
Public method Draw Draws the strokes in the StrokeCollection.
Public method Equals(Object) Determines whether the specified object is equal to the current object. (Inherited from Object.)
Public method Erase(IEnumerable<Point>) Removes the ink that is within the bounds of the specified area.
Public method Erase(Rect) Replaces all strokes that are clipped by the specified rectangle with new strokes that do not enter the bounds of the specified rectangle.
Public method Erase(IEnumerable<Point>, StylusShape) Replaces all strokes that are clipped by the region created by the specified StylusShape along the specified path with new Strokes that are not clipped by the region.
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method GetBounds Returns the bounds of the strokes in the collection.
Public method GetEnumerator Returns an enumerator that iterates through the Collection<T>. (Inherited from Collection<T>.)
Public method GetHashCode Serves as the default hash function. (Inherited from Object.)
Public method GetIncrementalLassoHitTester Creates an IncrementalLassoHitTester that hit tests the StrokeCollection with a lasso (freehand) path.
Public method GetIncrementalStrokeHitTester Creates an IncrementalStrokeHitTester that hit tests the StrokeCollection with an erasing path.
Public method GetPropertyData Returns the value of the custom property associated with the specified Guid.
Public method GetPropertyDataIds Returns the GUIDs of any custom properties associated with the StrokeCollection.
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Public method HitTest(Point) Returns a collection of strokes that intersect the specified point.
Public method HitTest(IEnumerable<Point>, Int32) Returns a collection of strokes that have at least the specified percentage of length within the specified area.
Public method HitTest(IEnumerable<Point>, StylusShape) Returns a collection of strokes that intersect with the specified path.
Public method HitTest(Point, Double) Returns a collection of strokes that intersect the specified area.
Public method HitTest(Rect, Int32) Returns a collection of strokes that have at least the specified percentage of length within the specified rectangle.
Public method IndexOf Returns the index of the specified Stroke in the StrokeCollection.
Public method Insert Inserts an element into the Collection<T> at the specified index. (Inherited from Collection<T>.)
Protected method InsertItem Infrastructure. Inserts a stroke into the StrokeCollection at the specified index. (Overrides Collection<T>.InsertItem(Int32, T).)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Protected method OnPropertyChanged Occurs when any StrokeCollection property changes.
Protected method OnPropertyDataChanged Raises the PropertyDataChanged event.
Protected method OnStrokesChanged Raises the StrokesChanged event.
Public method Remove(T) Removes the first occurrence of a specific object from the Collection<T>. (Inherited from Collection<T>.)
Public method Remove(StrokeCollection) Removes the specified strokes from the collection.
Public method RemoveAt Removes the element at the specified index of the Collection<T>. (Inherited from Collection<T>.)
Protected method RemoveItem Infrastructure. Removes the stroke at the specified index from the StrokeCollection. (Overrides Collection<T>.RemoveItem(Int32).)
Public method RemovePropertyData Removes the custom property associated with the specified Guid.
Public method Replace(Stroke, StrokeCollection) Replaces the specified Stroke with the specified StrokeCollection.
Public method Replace(StrokeCollection, StrokeCollection) Replaces the specified StrokeCollection with a new StrokeCollection.
Public method Save(Stream) Saves the StrokeCollection to the specified Stream.
Public method Save(Stream, Boolean) Saves the StrokeCollection to the specified Stream and compresses it, when specified.
Protected method SetItem Infrastructure. Replaces the stroke at the specified index. (Overrides Collection<T>.SetItem(Int32, T).)
Public method ToString Returns a string that represents the current object. (Inherited from Object.)
Public method Transform Modifies each of the StylusPoints and optionally the StylusTipTransform for each stroke in the StrokeCollection according to the specified Matrix.
Top
  Name Description
Explicit interface implemetation Private method ICollection.CopyTo Copies the elements of the ICollection to an Array, starting at a particular Array index. (Inherited from Collection<T>.)
Explicit interface implemetation Private method IEnumerable.GetEnumerator Returns an enumerator that iterates through a collection. (Inherited from Collection<T>.)
Explicit interface implemetation Private method IList.Add Adds an item to the IList. (Inherited from Collection<T>.)
Explicit interface implemetation Private method IList.Contains Determines whether the IList contains a specific value. (Inherited from Collection<T>.)
Explicit interface implemetation Private method IList.IndexOf Determines the index of a specific item in the IList. (Inherited from Collection<T>.)
Explicit interface implemetation Private method IList.Insert Inserts an item into the IList at the specified index. (Inherited from Collection<T>.)
Explicit interface implemetation Private method IList.Remove Removes the first occurrence of a specific object from the IList. (Inherited from Collection<T>.)
Top
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.