指定したアイテムの親の境界を取得します。
名前空間: 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
パラメーター
- item
型: Microsoft.Windows.Design.Model.ModelItem
検索するアイテムの親の境界。
- intent
型: Microsoft.Windows.Design.Interaction.PlacementIntent
この配置呼び出しの理由を指定します。
- positions
型: array<Microsoft.Windows.Design.Interaction.RelativeValue[]
設定する位置の配列。
戻り値
型: System.Windows.Rect
item の親の境界を表す Rect。
例外
例外 | 条件 |
---|---|
ArgumentNullException | item は nullnull 参照 (Visual Basic では Nothing) なので、 |
解説
PlacementIntent は、位置の指定で不足している値を補完するために、配置アダプターによって使用されます。 たとえば、PlacementIntent が Move の場合、LeftSide に値を渡し、RightSide には渡さなかったとすると、配置アダプターは右側を調整して、コントロールのサイズを一定に保ちます。
.NET Framework セキュリティ
- 直前の呼び出し元に対する完全な信頼。 このメンバーは、部分的に信頼されているコードから使用することはできません。 詳細については、「部分信頼コードからのライブラリの使用」を参照してください。
参照
参照
Microsoft.Windows.Design.Interaction 名前空間