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
)

参数

异常

异常 条件
ArgumentNullException

adorner 为 nullnull 引用(在 Visual Basic 中为 Nothing)。

备注

Measure 方法计算装饰器的大小,并将其传递至装饰器的 Measure 方法。

.NET Framework 安全性

请参见

参考

AdornerLayout 类

Microsoft.Windows.Design.Interaction 命名空间

AdornerPanel

PrimarySelectionAdornerProvider

其他资源

演练:创建设计时装饰器

装饰器体系结构