Export (0) Print
Expand All

InkDrawingAttributes.PenTip property

Applies to: desktop apps only

Gets or sets a value that indicates which pen tip to use when drawing ink that is associated with this InkDrawingAttributes object.

This property is read/write.

Syntax

HRESULT put_PenTip(
  [in]           InkPenTip PenTip
);

HRESULT get_PenTip(
  [out, retval]  InkPenTip *PenTip
);

Property value

A value that indicates which pen tip to use when drawing ink that is associated with this InkDrawingAttributes object. The default value is InkPenTip Enumeration.

Error codes

NameMeaning
S_OK

Success.

E_POINTER

Parameter pointer was NULL or invalid.

E_INK_EXCEPTION

An exception occurred inside the method.

Remarks

For a complete list of pen tips available to use, see the InkPenTip enumeration.

When this property is set to InkPenTip.IPT_Ball, the Height property is ignored.

To create a square pen tip, set the PenTip property to InkPenTip.IPT_Rectangle. Then set the Height property equal to the Width property.

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

InkDrawingAttributes Class
Height Property [InkDrawingAttributes Class]
InkPenTip Enumeration
Width Property [InkDrawingAttributes Class]

 

 

Send comments about this topic to Microsoft

Build date: 3/6/2012

Community Additions

ADD
Show:
© 2014 Microsoft