AdornerProperties.SetLayout Method
Sets the layout for the specified adorner.
Namespace: Microsoft.Windows.Design.Interaction
Assembly: Microsoft.Windows.Design.Interaction (in Microsoft.Windows.Design.Interaction.dll)
Syntax
'Declaration
Public Shared Sub SetLayout ( _
adorner As DependencyObject, _
value As AdornerLayout _
)
public static void SetLayout(
DependencyObject adorner,
AdornerLayout value
)
public:
static void SetLayout(
DependencyObject^ adorner,
AdornerLayout^ value
)
static member SetLayout :
adorner:DependencyObject *
value:AdornerLayout -> unit
public static function SetLayout(
adorner : DependencyObject,
value : AdornerLayout
)
Parameters
- adorner
Type: System.Windows.DependencyObject
The adorner element to set the layout for.
- value
Type: Microsoft.Windows.Design.Interaction.AdornerLayout
The AdornerLayout to associate with adorner.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | adorner is nulla null reference (Nothing in Visual Basic). |
Remarks
The value parameter specifies an AdornerLayout that is used to arrange the adorner with regard to its model or view. The default value returns a layout that keeps the adorner above the view in the z-order.
.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