共用方式為


PlacementAdapter.SetNudgePlacements 方法 (ModelItem, NudgeIntent, array<RelativeValue )

會指派指定的位置陣列,以便在鍵盤微調期間移動控制項。

命名空間:  Microsoft.Windows.Design.Interaction
組件:  Microsoft.Windows.Design.Interaction (在 Microsoft.Windows.Design.Interaction.dll 中)

語法

'宣告
Public Overridable Sub SetNudgePlacements ( _
    item As ModelItem, _
    intent As NudgeIntent, _
    positions As RelativeValue() _
)
public virtual void SetNudgePlacements(
    ModelItem item,
    NudgeIntent intent,
    RelativeValue[] positions
)
public:
virtual void SetNudgePlacements(
    ModelItem^ item, 
    NudgeIntent intent, 
    array<RelativeValue>^ positions
)
abstract SetNudgePlacements : 
        item:ModelItem * 
        intent:NudgeIntent * 
        positions:RelativeValue[] -> unit 
override SetNudgePlacements : 
        item:ModelItem * 
        intent:NudgeIntent * 
        positions:RelativeValue[] -> unit 
public function SetNudgePlacements(
    item : ModelItem, 
    intent : NudgeIntent, 
    positions : RelativeValue[]
)

參數

.NET Framework 安全性

請參閱

參考

PlacementAdapter 類別

SetNudgePlacements 多載

Microsoft.Windows.Design.Interaction 命名空間

ModelItem

NudgeIntent

AdornerPlacementCollection

AdornerPanel

其他資源

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

裝飾項架構