Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

InkDrawingAttributes.PenTip Property

Definition

Important

Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

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

public:
 property PenTipShape PenTip { PenTipShape get(); void set(PenTipShape value); };
PenTipShape PenTip();

void PenTip(PenTipShape value);
public PenTipShape PenTip { get; set; }
var penTipShape = inkDrawingAttributes.penTip;
inkDrawingAttributes.penTip = penTipShape;
Public Property PenTip As PenTipShape

Property Value

The shape of the pen/stylus tip. The default is Circle.

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);

Remarks

Support various calligraphic effects using the PenTipShape property with PenTip.

Applies to

See also


Feedback

Was this page helpful?