Taal

InkCanvas.DefaultStylusPointDescription Eigenschap

Definitie

Hiermee haalt u de styluspuntbeschrijving op of stelt u deze in voor een 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

Waarde van eigenschap

De styluspuntbeschrijving voor een InkCanvas.

Voorbeelden

In het volgende voorbeeld wordt ingesteld DefaultStylusPointDescription dat de styluspunten van de pennenstreken op de InkCanvas stroken de Xeigenschappen , Yen NormalPressureeigenschappen TipButton bevatten.

Note

Alleen de pennenstreken die aan de InkCanvas lijn worden toegevoegd nadat de DefaultStylusPointDescription extra eigenschap is ingesteld.

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)})

Opmerkingen

InkCanvas Standaard worden alleen de X, Yen NormalPressure eigenschappen opgeslagen voor elke StylusPoint eigenschap die bij een pennenstreek hoort. U kunt de eigenschap DefaultStylusPointDescription gebruiken om aanvullende informatie op te slaan over punten die bestaan uit de pennenstreken op een InkCanvas. Het instellen van deze eigenschap is alleen van invloed op nieuwe pennenstreken die worden gemaakt nadat de eigenschap is ingesteld.

XAML-tekstgebruik

U kunt deze eigenschap niet gebruiken in XAML.

Van toepassing op

Zie ook