Divider.Strokes Property

Divider.Strokes Property

Gets or sets the Strokes collection on which the Divider object performs ink analysis.

Definition

Visual Basic .NET Public Property Strokes As Strokes
C# public Strokes Strokes { get; set; }
Managed C++ public: __property Strokes* get_Strokes();
public: __property void set_Strokes(Strokes*);

Property Value

Microsoft.Ink.Strokes. The Strokes collection on which the Divider object performs ink analysis.

This property is read/write. This property has no default value.

Exceptions

ArgumentException Leave Site: Strokes already set
ObjectDisposedException Leave Site:
ObjectDisposedException Leave Site:
ObjectDisposedException Leave Site:

Remarks

You must assign a Strokes collection to a Divider object in order for the Divider object to perform ink analysis. This property maintains the Strokes collection that the Divider object analyzes and from which the Divider object creates the DivisionResult object.

Note: After you assign a Strokes collection to the Strokes property, assigning a new Strokes collection to the property generates an error.

Note: You may not change the LineHeight or RecognizerContext properties of a Strokes collection after that collection is assigned to the Strokes property.

To keep the Strokes property of the Divider object synchronized with the strokes associated with an Ink object, use the InkAdded and InkDeleted events of the Ink object to listen for strokes that should be added or removed from the Strokes collection assigned to the Divider object. This covers cases where strokes are added to, deleted from, clipped, or split within the Ink object.

Note: Moving, scaling, or other transformations on strokes in the Ink object do not generate InkAdded or InkDeleted events. Perform the same transformations on the strokes in the Divider object to keep the Strokes property of the Divider object synchronized.

Examples

[C#]

This C# example adds a Stroke object, theStroke, to an existing strokes collection associated with a Divider object, theDivider.

theDivider.Strokes.Add(theStroke);

[Visual Basic .NET]

This Microsoft® Visual Basic® .NET xample adds a Stroke object, theStroke, to an existing strokes collection associated with a Divider object, theDivider.

theDivider.Strokes.Add(theStroke)

See Also