PlacementAdapter 類別
更新:2007 年 11 月
用來取得並設定父代座標中物件之位置的配接器。
命名空間: Microsoft.Windows.Design.Interaction
組件: Microsoft.Windows.Design.Extensibility (在 Microsoft.Windows.Design.Extensibility.dll 中)
語法
Public MustInherit Class PlacementAdapter _
Inherits Adapter
Dim instance As PlacementAdapter
public abstract class PlacementAdapter : Adapter
public ref class PlacementAdapter abstract : public Adapter
public abstract class PlacementAdapter extends Adapter
備註
抓取控點會使用 PlacementAdapter 來調整控制項大小以及移動控制項。定位配接器是藉由支援將值當做相對位置來讀取和寫入的方式來運作。對 PlacementAdapter 而言,所有項目都是相對的,因此相對差距 (差異) 非常重要。PlacementAdapter 會使用相對值,並將這個值轉換為一個或多個屬性設定。若要使用 PlacementAdapter,首先必須對它進行查詢,了解它是否能設定您想要設定的位置。接著再利用查詢的結果,透過 GetPlacement 和 SetPlacements 方法來取得和設定值。
繼承階層架構
System.Object
Microsoft.Windows.Design.Features.FeatureProvider
Microsoft.Windows.Design.Interaction.Adapter
Microsoft.Windows.Design.Interaction.PlacementAdapter
Microsoft.Windows.Design.Interaction.RootPlacementAdapter
執行緒安全
這個型別的任何 Public static (在 Visual Basic 中為 Shared) 成員都具備執行緒安全。並非所有的執行個體成員都是安全執行緒。
請參閱
參考
Microsoft.Windows.Design.Interaction 命名空間