Export (0) Print
Expand All

IInkStrokeDisp::PolylineCusps property

Applies to: desktop apps only

Gets an array that contains the indices of the cusps of the IInkStrokeDisp object.

This property is read-only.

Syntax

HRESULT get_PolylineCusps(
  [out, retval]  VARIANT *Cusps
);

Property value

The indices of the cusps of the IInkStrokeDisp object.

For more information about the VARIANT structure, see Using the COM Library.

Error codes

NameMeaning
S_OK

Success.

E_POINTER

The parameter pointer was NULL or invalid.

E_OUTOFMEMORY

Cannot allocate memory for the array.

E_INK_EXCEPTION

An exception occurred inside the method.

Remarks

The array returned by the PolylineCusps property is an index into the array returned by the GetPoints method. Each index in the PolylineCusps property corresponds to a point in the array returned by the GetPoints method that is a cusp of the points of the stroke.

A cusp is a point on the stroke where the direction of writing changes in a discontinuous fashion. For example, if the stroke represents the capital letter "L", this property returns three cusps: two corresponding to the first and last control points on the stroke and the third representing the corner of the "L".

The location of a cusp can be determined by using the cusp as an index into the array returned by the GetPoints method.

Requirements

Minimum supported client

Windows XP Tablet PC Edition

Minimum supported server

None supported

Header

Msinkaut.h (also requires Msinkaut_i.c)

Library

InkObj.dll

See also

IInkStrokeDisp Interface
GetPoints Method

 

 

Send comments about this topic to Microsoft

Build date: 3/6/2012

Community Additions

ADD
Show:
© 2015 Microsoft