Share via


InkDrawingAttributes.PenTip 属性

定义

获取或设置一个值,该值指示绘制 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

属性值

笔/触笔尖的形状。 默认值为 Circle

示例

以下示例演示如何为 InkManager 对象管理的所有笔划设置 PenTip 属性, 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);

注解

使用 PenTipShape 属性和 PenTip 支持各种书法效果。

适用于

另请参阅