StylusPointDescription.AreCompatible メソッド

定義

指定した StylusPointDescription オブジェクトが同じかどうかを示す値を返します。

public:
 static bool AreCompatible(System::Windows::Input::StylusPointDescription ^ stylusPointDescription1, System::Windows::Input::StylusPointDescription ^ stylusPointDescription2);
public static bool AreCompatible (System.Windows.Input.StylusPointDescription stylusPointDescription1, System.Windows.Input.StylusPointDescription stylusPointDescription2);
static member AreCompatible : System.Windows.Input.StylusPointDescription * System.Windows.Input.StylusPointDescription -> bool
Public Shared Function AreCompatible (stylusPointDescription1 As StylusPointDescription, stylusPointDescription2 As StylusPointDescription) As Boolean

パラメーター

stylusPointDescription1
StylusPointDescription

チェック対象となる第 1 の StylusPointDescription

stylusPointDescription2
StylusPointDescription

チェック対象となる第 2 の StylusPointDescription

戻り値

StylusPointDescription オブジェクトが同じ場合は true。それ以外の場合は false

次の例では、2 つの StylusPointDescription オブジェクトに互換性があるかどうかを確認します。

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 (StylusPointDescription.AreCompatible(description1, description2))
{
    MessageBox.Show("The two descriptions are compatible.");
}
else
{
    MessageBox.Show("The two descriptions are not compatible.");
}
If StylusPointDescription.AreCompatible(description1, description2) Then
    MessageBox.Show("The two descriptions are compatible.")
Else
    MessageBox.Show("The two descriptions are not compatible.")
End If

注釈

2 つの StylusPointDescription オブジェクトに同じ順序で同じ StylusPointPropertyInfo オブジェクトが含まれている場合、互換性があります。

適用対象