StylusPointDescription.IsSubsetOf(StylusPointDescription) 메서드
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
현재 StylusPointDescription 가 지정된 StylusPointDescription하위 집합인지 여부를 나타내는 값을 반환합니다.
public:
bool IsSubsetOf(System::Windows::Input::StylusPointDescription ^ stylusPointDescriptionSuperset);
public bool IsSubsetOf(System.Windows.Input.StylusPointDescription stylusPointDescriptionSuperset);
member this.IsSubsetOf : System.Windows.Input.StylusPointDescription -> bool
Public Function IsSubsetOf (stylusPointDescriptionSuperset As StylusPointDescription) As Boolean
매개 변수
- stylusPointDescriptionSuperset
- StylusPointDescription
StylusPointDescription 현재 StylusPointDescription 가 하위 집합인지 여부를 확인할 상대입니다.
반품
예제
다음 예제에서는 .의 description2하위 집합인지 여부를 description1 확인합니다.
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 =
new StylusPointDescription(new StylusPointPropertyInfo[]
{
new StylusPointPropertyInfo(StylusPointProperties.X),
new StylusPointPropertyInfo(StylusPointProperties.Y),
new StylusPointPropertyInfo(StylusPointProperties.NormalPressure),
new StylusPointPropertyInfo(StylusPointProperties.BarrelButton)
});
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 New StylusPointDescription( _
New StylusPointPropertyInfo() {New StylusPointPropertyInfo(StylusPointProperties.X), _
New StylusPointPropertyInfo(StylusPointProperties.Y), _
New StylusPointPropertyInfo(StylusPointProperties.NormalPressure), _
New StylusPointPropertyInfo(StylusPointProperties.BarrelButton)})
if (description2.IsSubsetOf(description1))
{
MessageBox.Show("description2 is a subset of description1.");
}
else
{
MessageBox.Show("description2 is not a subset of description1.");
}
If description2.IsSubsetOf(description1) Then
MessageBox.Show("description2 is a subset of description1.")
Else
MessageBox.Show("description2 is not a subset of description1.")
End If