AdornerPanel.GetPlacements Method
Note: This API is now obsolete. Gets the value of the Placements attached property for the specified DependencyObject.
Namespace: Microsoft.Windows.Design.Interaction
Assembly: Microsoft.Windows.Design.Interaction (in Microsoft.Windows.Design.Interaction.dll)
Syntax
'Declaration
Public Shared Function GetPlacements ( _
adorner As UIElement _
) As AdornerPlacementCollection
public static AdornerPlacementCollection GetPlacements(
UIElement adorner
)
public:
static AdornerPlacementCollection^ GetPlacements(
UIElement^ adorner
)
static member GetPlacements :
adorner:UIElement -> AdornerPlacementCollection
public static function GetPlacements(
adorner : UIElement
) : AdornerPlacementCollection
Parameters
- adorner
Type: System.Windows.UIElement
The UIElement to get placements for.
Return Value
Type: Microsoft.Windows.Design.Interaction.AdornerPlacementCollection
An AdornerPlacementCollection which holds AdornerPlacementValue objects representing adorner's size and position.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | adorner is nulla null reference (Nothing in Visual Basic). |
.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