共用方式為


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 由定位配接器用來填入指定之定位的位置中缺少的值。 例如,如果 PlacementIntentMove,而且您傳送了 LeftSide 的值,而不是 RightSide,則定位配接器會調整右側,這樣控制項的大小就會維持不變。

.NET Framework 安全性

請參閱

參考

PlacementAdapter 類別

SetPlacements 多載

Microsoft.Windows.Design.Interaction 命名空間

ModelItem

PlacementIntent

AdornerPlacementCollection

AdornerPanel

其他資源

逐步解說:建立設計階段裝飾項

裝飾項架構