Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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
- item
Type: Microsoft.Windows.Design.Model.ModelItem
Item parent boundary to find.
- intent
Type: Microsoft.Windows.Design.Interaction.PlacementIntent
Specifies the reason for this placement call.
- positions
Type: array<Microsoft.Windows.Design.Interaction.RelativeValue[]
Array of placement positions to set.
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
- 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