次の方法で共有


InkStrokes collection

Contains the collection of IInkStrokeDisp objects.

Members

The InkStrokes collection inherits from the IUnknown interface. InkStrokes also has these types of members:

  • Events
  • Interfaces
  • Methods
  • Properties

Events

The InkStrokes collection has these events.

Event Description
StrokesAdded

Occurs when one or more strokes is added to the InkStrokes collection.

StrokesRemoved

Occurs when one or more strokes is deleted from the InkStrokes collection.

 

Interfaces

The InkStrokes collection defines these interfaces.

Interface Description
IInkStrokes

This collection implements the IInkStrokes COM interface.

 

Methods

The InkStrokes collection has these methods.

Method Description
Add

Specifies the stroke or collection of strokes to add to a known collection of strokes.

AddStrokes

Specifies the collection of strokes to add to a known collection of strokes.

Clip

Specifies that strokes are clipped to fit within a known rectangle.

GetBoundingBox

Specifies the rectangle, in ink space coordinates, that specifies the bounding box of an IInkStrokeDisp object.

Item

Specifies the stroke to return at the known index into the collection.

ModifyDrawingAttributes

Indicates the drawing attributes of all the strokes in a known collection of strokes.

Move

Moves the strokes within the ink space.

Remove

Specifies the stroke or collection of strokes to remove from a known collection of strokes.

RemoveRecognitionResult

Removes the IInkRecognitionResult object that is associated with the collection.

RemoveStrokes

Specifies a collection of strokes to remove from the strokes collection.

Rotate

Specifies the amount to rotate the ink, measured in degrees, and specifies the center point of the rotation.

ScaleToRectangle

Specifies the strokes in the collection to be scaled to fit in a specified rectangle.

ScaleTransform

Specifies the X and Y factors by which to scale the ink.

Shear

Specifies the X and Y factors to shear the strokes.

ToString

Specifies the recognized text of the strokes.

Transform

Specifies the operations to perform on the InkStrokes collection, such as scaling, rotation, translation, and skewing.

 

Properties

The InkStrokes collection has these properties.

Property Access type Description

_NewEnum

Read-only

Gets an enumerator interface for the collection. Use this property to retrieve each object in the collection.

Count

Read-only

Gets the count of Stroke objects in the collection.

Ink

Read-only

Gets the Ink object that contains the collection.

RecognitionResult

Read-only

Gets the recognition result of the collection.

 

Remarks

A strokes collection is a subset of strokes in an InkDisp object. Examples of strokes collections are:

  • All the strokes that are drawn by the same cursor.
  • The strokes in the InkDisp object that correspond to a word.
  • All the strokes that intersect a known region.

InkStrokes collections are references to ink data and are not the actual data itself.

After the strokes collection is created, it can be used to specify various operations on that subset of strokes, such as drawing, measuring, deleting, or extracting the set to a new InkDisp object.

For more information about recognition, see About Handwriting Recognition.

For more information about collections in Automation, see Using the COM Library.

Requirements

Minimum supported client

Windows XP Tablet PC Edition [desktop apps only]

Minimum supported server

None supported

Header

Msinkaut.h (also requires Msinkaut_i.c)

Library

InkObj.dll

See also

InkDrawingAttributes Class

InkDisp Class

IInkStrokeDisp Interface