InkCanvas.DefaultStylusPointDescription プロパティ

定義

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のストロークのスタイラス ポイントにInkCanvasXY、および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には、ストロークに属する各XYNormalPressure、およびStylusPointプロパティのみが格納されます。 DefaultStylusPointDescription プロパティを使用すると、 InkCanvasのストロークを構成するポイントに関する追加情報を格納できます。 このプロパティを設定すると、プロパティが設定された後に作成された新しいストロークにのみ影響します。

XAML テキストの使用法

このプロパティは XAML では使用できません。

適用対象

こちらもご覧ください