共用方式為


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 屬性會公開 (Expose) 在執行個體化 (Instantiation) 期間所使用的 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