InkCanvas.DefaultStylusPointDescription 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得或設定 InkCanvas.
public:
property System::Windows::Input::StylusPointDescription ^ DefaultStylusPointDescription { System::Windows::Input::StylusPointDescription ^ get(); void set(System::Windows::Input::StylusPointDescription ^ value); };
public System.Windows.Input.StylusPointDescription DefaultStylusPointDescription { get; set; }
member this.DefaultStylusPointDescription : System.Windows.Input.StylusPointDescription with get, set
Public Property DefaultStylusPointDescription As StylusPointDescription
屬性值
筆尖描述。InkCanvas
範例
以下範例將 設定 DefaultStylusPointDescription 為 ,使得筆 InkCanvas 劃的觸控筆點包含 X、 Y、 NormalPressure和 TipButton 屬性。
Note
只有在 之後InkCanvas加上DefaultStylusPointDescription的筆劃才會被設定為包含該額外屬性。
inkCanvas1.DefaultStylusPointDescription = new StylusPointDescription(
new StylusPointPropertyInfo[] {
new StylusPointPropertyInfo(StylusPointProperties.X),
new StylusPointPropertyInfo(StylusPointProperties.Y),
new StylusPointPropertyInfo(StylusPointProperties.NormalPressure),
new StylusPointPropertyInfo(StylusPointProperties.TipButton)});
inkCanvas1.DefaultStylusPointDescription = New StylusPointDescription _
(New StylusPointPropertyInfo() _
{New StylusPointPropertyInfo(StylusPointProperties.X), _
New StylusPointPropertyInfo(StylusPointProperties.Y), _
New StylusPointPropertyInfo(StylusPointProperties.NormalPressure), _
New StylusPointPropertyInfo(StylusPointProperties.TipButton)})
備註
預設情況下,這些 InkCanvas 筆劃只 X儲存 、 Y、 以及 NormalPressure 屬於筆劃的屬性 StylusPoint 。 你可以使用 DefaultStylusPointDescription 屬性來儲存包含筆劃 InkCanvas的點的額外資訊。 設定此屬性只會影響設定後新增的筆劃。
XAML 文字使用
你無法在 XAML 中使用這個屬性。