次の方法で共有


PlacementAdapter.SetPlacements メソッド (ModelItem, PlacementIntent, RelativeValueCollection)

指定したモデル アイテムに指定した位置のコレクションを割り当てます。

名前空間:  Microsoft.Windows.Design.Interaction
アセンブリ:  Microsoft.Windows.Design.Interaction (Microsoft.Windows.Design.Interaction.dll 内)

構文

'宣言
Public MustOverride Sub SetPlacements ( _
    item As ModelItem, _
    intent As PlacementIntent, _
    placement As RelativeValueCollection _
)
public abstract void SetPlacements(
    ModelItem item,
    PlacementIntent intent,
    RelativeValueCollection placement
)
public:
virtual void SetPlacements(
    ModelItem^ item, 
    PlacementIntent intent, 
    RelativeValueCollection^ placement
) abstract
abstract SetPlacements : 
        item:ModelItem * 
        intent:PlacementIntent * 
        placement:RelativeValueCollection -> unit 
public abstract function SetPlacements(
    item : ModelItem, 
    intent : PlacementIntent, 
    placement : RelativeValueCollection
)

パラメーター

解説

PlacementIntent は、位置の指定で不足している値を補完するために、配置アダプターによって使用されます。 たとえば、PlacementIntentMove の場合、LeftSide に値を渡し、RightSide には渡さなかったとすると、配置アダプターは右側を調整して、コントロールのサイズを一定に保ちます。

.NET Framework セキュリティ

  • 直前の呼び出し元に対する完全な信頼。 このメンバーは、部分的に信頼されているコードから使用することはできません。 詳細については、「部分信頼コードからのライブラリの使用」を参照してください。

参照

参照

PlacementAdapter クラス

SetPlacements オーバーロード

Microsoft.Windows.Design.Interaction 名前空間

ModelItem

PlacementIntent

AdornerPlacementCollection

AdornerPanel

その他の技術情報

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

装飾アーキテクチャ