AdornerPanel.SetPlacements Method
Note: This API is now obsolete. Sets the value of the Placements attached property for the provided element.
Namespace: Microsoft.Windows.Design.Interaction
Assembly: Microsoft.Windows.Design.Interaction (in Microsoft.Windows.Design.Interaction.dll)
Syntax
'Declaration
Public Shared Sub SetPlacements ( _
adorner As UIElement, _
value As AdornerPlacementCollection _
)
public static void SetPlacements(
UIElement adorner,
AdornerPlacementCollection value
)
public:
static void SetPlacements(
UIElement^ adorner,
AdornerPlacementCollection^ value
)
static member SetPlacements :
adorner:UIElement *
value:AdornerPlacementCollection -> unit
public static function SetPlacements(
adorner : UIElement,
value : AdornerPlacementCollection
)
Parameters
- adorner
Type: System.Windows.UIElement
The UIElement to which the HorizontalStretch attached property is written.
- 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