다음을 통해 공유


StylusPointDescription.GetCommonDescription 메서드

정의

지정된 StylusPointDescription 개체의 교집합을 반환합니다.

public:
 static System::Windows::Input::StylusPointDescription ^ GetCommonDescription(System::Windows::Input::StylusPointDescription ^ stylusPointDescription, System::Windows::Input::StylusPointDescription ^ stylusPointDescriptionPreserveInfo);
public static System.Windows.Input.StylusPointDescription GetCommonDescription (System.Windows.Input.StylusPointDescription stylusPointDescription, System.Windows.Input.StylusPointDescription stylusPointDescriptionPreserveInfo);
static member GetCommonDescription : System.Windows.Input.StylusPointDescription * System.Windows.Input.StylusPointDescription -> System.Windows.Input.StylusPointDescription
Public Shared Function GetCommonDescription (stylusPointDescription As StylusPointDescription, stylusPointDescriptionPreserveInfo As StylusPointDescription) As StylusPointDescription

매개 변수

stylusPointDescription
StylusPointDescription

교집합을 구할 첫 번째 StylusPointDescription입니다.

stylusPointDescriptionPreserveInfo
StylusPointDescription

교집합을 구할 두 번째 StylusPointDescription입니다.

반환

StylusPointDescription 지정된 StylusPointDescription 두 개체 모두에 있는 속성을 포함하는 입니다.

예제

다음 예제에서는 일반적인 찾기 StylusPointDescription 에서 서로 다른 두 개의 StylusPointDescription 개체입니다.

StylusDevice currentStylus = Stylus.CurrentStylusDevice;
StylusPointDescription description1 =
      new StylusPointDescription(new StylusPointPropertyInfo[]
                    {
                        new StylusPointPropertyInfo(StylusPointProperties.X),
                        new StylusPointPropertyInfo(StylusPointProperties.Y),
                        new StylusPointPropertyInfo(StylusPointProperties.NormalPressure),
                        new StylusPointPropertyInfo(StylusPointProperties.XTiltOrientation),
                        new StylusPointPropertyInfo(StylusPointProperties.YTiltOrientation),
                        new StylusPointPropertyInfo(StylusPointProperties.BarrelButton)
                    });

StylusPointDescription description2 = currentStylus.GetStylusPoints(inkCanvas1).Description;

StylusPointDescription description3 = 
    StylusPointDescription.GetCommonDescription(description1, description2);

StylusPointCollection points = currentStylus.GetStylusPoints(inkCanvas1, description3);
Dim currentStylus As StylusDevice = Stylus.CurrentStylusDevice

Dim description1 As New StylusPointDescription(New StylusPointPropertyInfo() _
    {New StylusPointPropertyInfo(StylusPointProperties.X), _
     New StylusPointPropertyInfo(StylusPointProperties.Y), _
     New StylusPointPropertyInfo(StylusPointProperties.NormalPressure), _
     New StylusPointPropertyInfo(StylusPointProperties.XTiltOrientation), _
     New StylusPointPropertyInfo(StylusPointProperties.YTiltOrientation), _
     New StylusPointPropertyInfo(StylusPointProperties.BarrelButton)})

Dim description2 As StylusPointDescription = currentStylus.GetStylusPoints(inkCanvas1).Description

Dim description3 As StylusPointDescription = _
                        StylusPointDescription.GetCommonDescription(description1, description2)

Dim points As StylusPointCollection = currentStylus.GetStylusPoints(inkCanvas1, description3)

설명

StylusPointDescription1stylusPointDescriptionPreserveInfo 일반 속성과 아직 각 변수에 지정 된 제약 조건을 가질 수 있습니다 StylusPointPropertyInfo 개체가 다른. 제약 조건이 다른 경우는 GetCommonDescription 메서드는 StylusPointPropertyInfo 에서 stylusPointDescriptionPreserveInfo.

적용 대상