次の方法で共有


TabletPropertyDescription.TabletPropertyMetrics プロパティ

このパケット プロパティのメトリックスを取得します。

名前空間 :  Microsoft.Ink
アセンブリ :  Microsoft.Ink (Microsoft.Ink.dll 内)

構文

'宣言
Public ReadOnly Property TabletPropertyMetrics As TabletPropertyMetrics
'使用
Dim instance As TabletPropertyDescription
Dim value As TabletPropertyMetrics

value = instance.TabletPropertyMetrics
public TabletPropertyMetrics TabletPropertyMetrics { get; }
public:
property TabletPropertyMetrics TabletPropertyMetrics {
    TabletPropertyMetrics get ();
}
/** @property */
public TabletPropertyMetrics get_TabletPropertyMetrics()
public function get TabletPropertyMetrics () : TabletPropertyMetrics

プロパティ値

型 : Microsoft.Ink.TabletPropertyMetrics
このパケット プロパティのメトリックス。

解説

メトリックスは、パケット プロパティの範囲、解像度、および単位を示します。

この例では、新しいTabletPropertyDescription が作成されます。TabletPropertyMetrics プロパティは、インスタンス化の際に使用された TabletPropertyMetrics オブジェクトを公開します。

Dim defTablet As Tablet = New Tablets().DefaultTablet
Dim Metrics As TabletPropertyMetrics = defTablet.GetPropertyMetrics(PacketProperty.NormalPressure)
Dim tabletPropDesc As TabletPropertyDescription = New TabletPropertyDescription(PacketProperty.NormalPressure, Metrics)
' metrics now accessible via the TabletPropertyMetrics property
Dim min As Integer = tabletPropDesc.TabletPropertyMetrics.Minimum
Tablet defTablet = new Tablets().DefaultTablet;
TabletPropertyMetrics Metrics = defTablet.GetPropertyMetrics(PacketProperty.NormalPressure);
TabletPropertyDescription tabletPropDesc = new TabletPropertyDescription(PacketProperty.NormalPressure, Metrics);
// metrics now accessible via the TabletPropertyMetrics property
int min = tabletPropDesc.TabletPropertyMetrics.Minimum;

プラットフォーム

Windows Vista

.NET Framework および .NET Compact Framework では、各プラットフォームのすべてのバージョンはサポートしていません。サポートされているバージョンについては、「.NET Framework システム要件」を参照してください。

バージョン情報

.NET Framework

サポート対象 : 3.0

参照

参照

TabletPropertyDescription クラス

TabletPropertyDescription メンバ

Microsoft.Ink 名前空間

TabletPropertyMetrics