Share via


PlacementAdapter.GetPlacementBoundary Method (ModelItem, PlacementIntent, array<RelativeValue )

Gets the boundary of the specified item's parent.

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

Syntax

'Declaration
Public MustOverride Function GetPlacementBoundary ( _
    item As ModelItem, _
    intent As PlacementIntent, _
    ParamArray positions As RelativeValue() _
) As Rect
public abstract Rect GetPlacementBoundary(
    ModelItem item,
    PlacementIntent intent,
    params RelativeValue[] positions
)
public:
virtual Rect GetPlacementBoundary(
    ModelItem^ item, 
    PlacementIntent intent, 
    ... array<RelativeValue>^ positions
) abstract
abstract GetPlacementBoundary : 
        item:ModelItem * 
        intent:PlacementIntent * 
        positions:RelativeValue[] -> Rect 
public abstract function GetPlacementBoundary(
    item : ModelItem, 
    intent : PlacementIntent, 
    ... positions : RelativeValue[]
) : Rect

Parameters

Return Value

Type: System.Windows.Rect
A Rect representing the boundary of the parent of item.

Exceptions

Exception Condition
ArgumentNullException

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

Remarks

The PlacementIntent is used by the placement adapter to fill in missing values from the specified placement positions. For example, if the PlacementIntent is Move and you pass in a value for LeftSide, but not RightSide, the placement adapter adjusts the right side so that the size of the control remains constant.

.NET Framework Security

See Also

Reference

PlacementAdapter Class

GetPlacementBoundary Overload

Microsoft.Windows.Design.Interaction Namespace

AdornerPlacementCollection

AdornerPanel

Other Resources

Walkthrough: Creating a Design-time Adorner

Adorner Architecture