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 합니다.
메모
추가 속성을 포함하도록 설정된 후의 InkCanvasDefaultStylusPointDescription 스트로크에만 추가됩니다.
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)})
설명
기본적으로 스트로크에 InkCanvasX속하는 각 Y 속성에 대한 , NormalPressure및 StylusPoint 속성만 저장합니다. DefaultStylusPointDescription 속성을 사용하여 스트로크를 구성하는 지점에 대한 추가 정보를 저장할 수 있습니다 InkCanvas. 이 속성을 설정하면 속성이 설정된 후에 수행되는 새 스트로크에만 영향을 줍니다.
XAML 텍스트 사용
XAML에서는 이 속성을 사용할 수 없습니다.