Kommentar
Åtkomst till den här sidan kräver auktorisering. Du kan prova att logga in eller ändra kataloger.
Åtkomst till den här sidan kräver auktorisering. Du kan prova att ändra kataloger.
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
- item
Type: Microsoft.Windows.Design.Model.ModelItem
The item to request placement information for.
- positions
Type: array<Microsoft.Windows.Design.Interaction.RelativePosition[]
The positions to request placement information for.
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
- 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