AdornerLayout.Measure 方法
对指定装饰器执行布局度量。
命名空间: 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