Share via


PlacementAdapter.GetPlacementBoundary Method (ModelItem)

Gets the boundary of the specified item 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 _
) As Rect
public abstract Rect GetPlacementBoundary(
    ModelItem item
)
public:
virtual Rect GetPlacementBoundary(
    ModelItem^ item
) abstract
abstract GetPlacementBoundary : 
        item:ModelItem -> Rect 
public abstract function GetPlacementBoundary(
    item : ModelItem
) : Rect

Parameters

Return Value

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

Exceptions

Exception Condition
ArgumentNullException

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

.NET Framework Security

See Also

Reference

PlacementAdapter Class

GetPlacementBoundary Overload

Microsoft.Windows.Design.Interaction Namespace

ModelItem

AdornerPlacementCollection

AdornerPanel

Other Resources

Walkthrough: Creating a Design-time Adorner

Adorner Architecture