PlacementAdapter.SetPlacements Method (ModelItem, PlacementIntent, RelativeValueCollection)
Assigns the specified collection of positions to the specified model item.
Namespace: Microsoft.Windows.Design.Interaction
Assembly: Microsoft.Windows.Design.Interaction (in Microsoft.Windows.Design.Interaction.dll)
Syntax
'Declaration
Public MustOverride Sub SetPlacements ( _
item As ModelItem, _
intent As PlacementIntent, _
placement As RelativeValueCollection _
)
public abstract void SetPlacements(
ModelItem item,
PlacementIntent intent,
RelativeValueCollection placement
)
public:
virtual void SetPlacements(
ModelItem^ item,
PlacementIntent intent,
RelativeValueCollection^ placement
) abstract
abstract SetPlacements :
item:ModelItem *
intent:PlacementIntent *
placement:RelativeValueCollection -> unit
public abstract function SetPlacements(
item : ModelItem,
intent : PlacementIntent,
placement : RelativeValueCollection
)
Parameters
- item
Type: Microsoft.Windows.Design.Model.ModelItem
The ModelItem to position.
- intent
Type: Microsoft.Windows.Design.Interaction.PlacementIntent
A PlacementIntent that specifies the intent of this placement call.
- placement
Type: Microsoft.Windows.Design.Interaction.RelativeValueCollection
A collection of placement positions to set.
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