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 的各種書法效果。

適用於

另請參閱