Share via


PlacementAdapter.GetPlacement Method

Returns a collection of positions that describe the placement of the specified item.

Namespace:  Microsoft.Windows.Design.Interaction
Assembly:  Microsoft.Windows.Design.Interaction (in Microsoft.Windows.Design.Interaction.dll)

Syntax

'Declaration
Public MustOverride Function GetPlacement ( _
    item As ModelItem, _
    ParamArray positions As RelativePosition() _
) As RelativeValueCollection
public abstract RelativeValueCollection GetPlacement(
    ModelItem item,
    params RelativePosition[] positions
)
public:
virtual RelativeValueCollection^ GetPlacement(
    ModelItem^ item, 
    ... array<RelativePosition^>^ positions
) abstract
abstract GetPlacement : 
        item:ModelItem * 
        positions:RelativePosition[] -> RelativeValueCollection 
public abstract function GetPlacement(
    item : ModelItem, 
    ... positions : RelativePosition[]
) : RelativeValueCollection

Parameters

Return Value

Type: Microsoft.Windows.Design.Interaction.RelativeValueCollection
A RelativeValueCollection object that is a collection of placement coordinates.

Exceptions

Exception Condition
ArgumentNullException

item is nulla null reference (Nothing in Visual Basic).

Remarks

If you pass a RelativePosition object to a PlacementAdapter that it does not support, GetPlacement returns that position in the RelativeValueCollection, but the value is empty.

.NET Framework Security

See Also

Reference

PlacementAdapter Class

Microsoft.Windows.Design.Interaction Namespace

AdornerPlacementCollection

AdornerPanel

Other Resources

Walkthrough: Creating a Design-time Adorner

Adorner Architecture