共用方式為


PlacementAdapter.SetNudgePlacements 方法 (ModelItem, NudgeIntent, RelativeValueCollection)

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

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

語法

'宣告
Public Overridable Sub SetNudgePlacements ( _
    item As ModelItem, _
    intent As NudgeIntent, _
    placement As RelativeValueCollection _
)
public virtual void SetNudgePlacements(
    ModelItem item,
    NudgeIntent intent,
    RelativeValueCollection placement
)
public:
virtual void SetNudgePlacements(
    ModelItem^ item, 
    NudgeIntent intent, 
    RelativeValueCollection^ placement
)
abstract SetNudgePlacements : 
        item:ModelItem * 
        intent:NudgeIntent * 
        placement:RelativeValueCollection -> unit 
override SetNudgePlacements : 
        item:ModelItem * 
        intent:NudgeIntent * 
        placement:RelativeValueCollection -> unit 
public function SetNudgePlacements(
    item : ModelItem, 
    intent : NudgeIntent, 
    placement : RelativeValueCollection
)

參數

.NET Framework 安全性

請參閱

參考

PlacementAdapter 類別

SetNudgePlacements 多載

Microsoft.Windows.Design.Interaction 命名空間

ModelItem

NudgeIntent

AdornerPlacementCollection

AdornerPanel

其他資源

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

裝飾項架構