AdornerProperties.GetLayout Method
Gets a layout that is used to arrange the adorner with regard to its model or view.
Namespace: Microsoft.Windows.Design.Interaction
Assembly: Microsoft.Windows.Design.Interaction (in Microsoft.Windows.Design.Interaction.dll)
Syntax
'Declaration
Public Shared Function GetLayout ( _
adorner As DependencyObject _
) As AdornerLayout
public static AdornerLayout GetLayout(
DependencyObject adorner
)
public:
static AdornerLayout^ GetLayout(
DependencyObject^ adorner
)
static member GetLayout :
adorner:DependencyObject -> AdornerLayout
public static function GetLayout(
adorner : DependencyObject
) : AdornerLayout
Parameters
- adorner
Type: System.Windows.DependencyObject
The adorner element to retrieve the layout for.
Return Value
Type: Microsoft.Windows.Design.Interaction.AdornerLayout
The AdornerLayout for adorner.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | adorner is nulla null reference (Nothing in Visual Basic). |
Remarks
The default value for this property 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