Share via


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

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

See Also

Reference

AdornerProperties Class

Microsoft.Windows.Design.Interaction Namespace

AdornerLayout

AdornerLayout

AdornerPanel

Other Resources

Walkthrough: Creating a Design-time Adorner

Adorner Architecture