Compartir a través de


Divider.Strokes Property

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

Namespace: Microsoft.Ink
Assembly: Microsoft.Ink (in microsoft.ink.dll)

Syntax

'Declaration
Public Property Strokes As Strokes
'Usage
Dim instance As Divider
Dim value As Strokes

value = instance.Strokes

instance.Strokes = value
public Strokes Strokes { get; set; }
public:
property Strokes^ Strokes {
    Strokes^ get ();
    void set (Strokes^ value);
}
/** @property */
public Strokes get_Strokes ()

/** @property */
public void set_Strokes (Strokes value)
public function get Strokes () : Strokes

public function set Strokes (value : Strokes)
Not applicable.

Property Value

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

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 Divider object after a Strokes 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.

Example

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

theDivider.Strokes.Add(theStroke);

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

theDivider.Strokes.Add(theStroke)

Platforms

Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

Version Information

.NET Framework

Supported in: 3.0

See Also

Reference

Divider Class
Divider Members
Microsoft.Ink Namespace
Divider.LineHeight
Divider.RecognizerContext
Ink
Strokes