PlacementAdapter.SetPlacements 方法 (ModelItem, PlacementIntent, array<RelativeValue )

将位置的指定数组分配给指定的模型项。

命名空间:  Microsoft.Windows.Design.Interaction
程序集:  Microsoft.Windows.Design.Interaction(在 Microsoft.Windows.Design.Interaction.dll 中)

语法

声明
Public MustOverride Sub SetPlacements ( _
    item As ModelItem, _
    intent As PlacementIntent, _
    ParamArray positions As RelativeValue() _
)
public abstract void SetPlacements(
    ModelItem item,
    PlacementIntent intent,
    params RelativeValue[] positions
)
public:
virtual void SetPlacements(
    ModelItem^ item, 
    PlacementIntent intent, 
    ... array<RelativeValue>^ positions
) abstract
abstract SetPlacements : 
        item:ModelItem * 
        intent:PlacementIntent * 
        positions:RelativeValue[] -> unit 
public abstract function SetPlacements(
    item : ModelItem, 
    intent : PlacementIntent, 
    ... positions : RelativeValue[]
)

参数

备注

PlacementIntent 由放置适配器使用,用于从特定放置位置填写缺失值。 例如,如果 PlacementIntentMoveLeftSide(而非 RightSide)传入值,则放置适配器将对右侧进行调整,以区别控件的尺寸保持恒定。

.NET Framework 安全性

请参见

参考

PlacementAdapter 类

SetPlacements 重载

Microsoft.Windows.Design.Interaction 命名空间

ModelItem

PlacementIntent

AdornerPlacementCollection

AdornerPanel

其他资源

演练:创建设计时装饰器

装饰器体系结构