Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

InkDrawingAttributes.PenTip | penTip property

Applies to Windows only

Gets or sets a value that indicates the shape of the pen tip when you draw an InkStroke.

Syntax


var penTip = inkDrawingAttributes.penTip;
inkDrawingAttributes.penTip = penTip;

Property value

Type: PenTipShape

The shape of the pen/stylus tip.

Examples

The following example demonstrates how to set the PenTip attribute for all strokes managed by an InkManager object (inkManager).



var inkManager = new Windows.UI.Input.Inking.InkManager();
var drawingAttributes = new Windows.UI.Input.Inking.InkDrawingAttributes();
drawingAttributes.penTip = Windows.UI.Input.Inking.PenTipShape.rectangle;
inkManager.setDefaultDrawingAttributes(drawingAttributes);


For the complete example, see Ink App sample.

Requirements

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Minimum supported phone

None supported

Namespace

Windows.UI.Input.Inking
Windows::UI::Input::Inking [C++]

Metadata

Windows.winmd

See also

InkDrawingAttributes
Responding to pen and stylus input
Ink App sample

 

 

Show:
© 2014 Microsoft. All rights reserved.