次の方法で共有


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 は、相対値を受け取り、それを 1 つ以上のプロパティ セットに変換します。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

スレッド セーフ

この型のすべてのパブリック static (Visual Basic では Shared) メンバは、スレッド セーフです。インスタンス メンバの場合は、スレッド セーフであるとは限りません。

参照

参照

PlacementAdapter メンバ

Microsoft.Windows.Design.Interaction 名前空間

AdornerPlacementCollection

AdornerPanel

その他の技術情報

チュートリアル : デザイン時装飾の作成

装飾アーキテクチャ