會針對指定的裝飾項執行配置度量。
命名空間: Microsoft.Windows.Design.Interaction
組件: Microsoft.Windows.Design.Interaction (在 Microsoft.Windows.Design.Interaction.dll 中)
語法
'宣告
Public MustOverride Sub Measure ( _
adorner As UIElement, _
constraint As Size _
)
public abstract void Measure(
UIElement adorner,
Size constraint
)
public:
virtual void Measure(
UIElement^ adorner,
Size constraint
) abstract
abstract Measure :
adorner:UIElement *
constraint:Size -> unit
public abstract function Measure(
adorner : UIElement,
constraint : Size
)
參數
- adorner
型別:System.Windows.UIElement
要測量的裝飾項。
- constraint
型別:System.Windows.Size
裝飾項的限制大小。
例外狀況
| 例外狀況 | 條件 |
|---|---|
| ArgumentNullException | adorner 為 nullNull 參照 (即 Visual Basic 中的 Nothing)。 |
備註
Measure 方法會計算裝飾項的大小,並將它傳遞至裝飾項的 Measure 方法。
.NET Framework 安全性
- 完全信任立即呼叫者。這個成員無法供部分信任的程式碼使用。如需詳細資訊,請參閱從部分受信任程式碼使用程式庫。
請參閱
參考
Microsoft.Windows.Design.Interaction 命名空間
PrimarySelectionAdornerProvider