InkDrawingAttributes.PenTip InkDrawingAttributes.PenTip InkDrawingAttributes.PenTip InkDrawingAttributes.PenTip InkDrawingAttributes.PenTip Property

Definition

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

public : PenTipShape PenTip { get; set; }
PenTipShape PenTip();

void PenTip(PenTipShape pentip);
public PenTipShape PenTip { get; set; }
Public ReadWrite Property PenTip As PenTipShape
var penTipShape = inkDrawingAttributes.penTip;
inkDrawingAttributes.penTip = 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);

For the complete example, see Ink App sample.

Remarks

Support various calligraphic effects using the PenTipShape property with PenTip.

See also