AdornerLayout.Measure Method
Performs the layout measurement on the specified adorner.
Namespace: Microsoft.Windows.Design.Interaction
Assembly: Microsoft.Windows.Design.Interaction (in Microsoft.Windows.Design.Interaction.dll)
Syntax
'Declaration
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
)
Parameters
- adorner
Type: System.Windows.UIElement
The adorner to be measured.
- constraint
Type: System.Windows.Size
The constrained size of the adorner.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | adorner is nulla null reference (Nothing in Visual Basic). |
Remarks
The Measure method computes the size the adorner and passes it to the adorner’s Measure method.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
See Also
Reference
Microsoft.Windows.Design.Interaction Namespace
PrimarySelectionAdornerProvider