次の方法で共有


PlacementAdapter.GetPlacementBoundary メソッド (ModelItem, PlacementIntent, array<RelativeValue )

指定したアイテムの親の境界を取得します。

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

構文

'宣言
Public MustOverride Function GetPlacementBoundary ( _
    item As ModelItem, _
    intent As PlacementIntent, _
    ParamArray positions As RelativeValue() _
) As Rect
public abstract Rect GetPlacementBoundary(
    ModelItem item,
    PlacementIntent intent,
    params RelativeValue[] positions
)
public:
virtual Rect GetPlacementBoundary(
    ModelItem^ item, 
    PlacementIntent intent, 
    ... array<RelativeValue>^ positions
) abstract
abstract GetPlacementBoundary : 
        item:ModelItem * 
        intent:PlacementIntent * 
        positions:RelativeValue[] -> Rect 
public abstract function GetPlacementBoundary(
    item : ModelItem, 
    intent : PlacementIntent, 
    ... positions : RelativeValue[]
) : Rect

パラメーター

戻り値

型: System.Windows.Rect
item の親の境界を表す Rect

例外

例外 条件
ArgumentNullException

item は nullnull 参照 (Visual Basic では Nothing) なので、

解説

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

.NET Framework セキュリティ

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

参照

参照

PlacementAdapter クラス

GetPlacementBoundary オーバーロード

Microsoft.Windows.Design.Interaction 名前空間

AdornerPlacementCollection

AdornerPanel

その他の技術情報

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

装飾アーキテクチャ