将位置的指定集合分配给指定的模型项。
命名空间:  Microsoft.Windows.Design.Interaction
程序集:  Microsoft.Windows.Design.Interaction(在 Microsoft.Windows.Design.Interaction.dll 中)
语法
声明
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
)
参数
- item
 类型:Microsoft.Windows.Design.Model.ModelItem
 要放置的 ModelItem。
- intent
 类型:Microsoft.Windows.Design.Interaction.PlacementIntent
 一个 PlacementIntent,指定此位置调用的意图。
- placement
 类型:Microsoft.Windows.Design.Interaction.RelativeValueCollection
 要设置的放置位置的集合。
备注
PlacementIntent 由放置适配器使用,用于从特定放置位置填写缺失值。 例如,如果 PlacementIntent 为 Move 并 LeftSide(而非 RightSide)传入值,则放置适配器将对右侧进行调整,以区别控件的尺寸保持恒定。
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关更多信息,请参见通过部分受信任的代码使用库。
请参见
参考
Microsoft.Windows.Design.Interaction 命名空间