指定したモデル アイテムに指定した位置の配列を割り当てます。
名前空間: Microsoft.Windows.Design.Interaction
アセンブリ: Microsoft.Windows.Design.Interaction (Microsoft.Windows.Design.Interaction.dll 内)
構文
'宣言
Public MustOverride Sub SetPlacements ( _
item As ModelItem, _
intent As PlacementIntent, _
ParamArray positions As RelativeValue() _
)
public abstract void SetPlacements(
ModelItem item,
PlacementIntent intent,
params RelativeValue[] positions
)
public:
virtual void SetPlacements(
ModelItem^ item,
PlacementIntent intent,
... array<RelativeValue>^ positions
) abstract
abstract SetPlacements :
item:ModelItem *
intent:PlacementIntent *
positions:RelativeValue[] -> unit
public abstract function SetPlacements(
item : ModelItem,
intent : PlacementIntent,
... positions : RelativeValue[]
)
パラメーター
- item
型: Microsoft.Windows.Design.Model.ModelItem
配置対象の ModelItem。
- intent
型: Microsoft.Windows.Design.Interaction.PlacementIntent
この配置呼び出しの理由を指定する PlacementIntent。
- positions
型: array<Microsoft.Windows.Design.Interaction.RelativeValue[]
設定する位置の配列。
解説
PlacementIntent は、位置の指定で不足している値を補完するために、配置アダプターによって使用されます。 たとえば、PlacementIntent が Move の場合、LeftSide に値を渡し、RightSide には渡さなかったとすると、配置アダプターは右側を調整して、コントロールのサイズを一定に保ちます。
.NET Framework セキュリティ
- 直前の呼び出し元に対する完全な信頼。 このメンバーは、部分的に信頼されているコードから使用することはできません。 詳細については、「部分信頼コードからのライブラリの使用」を参照してください。
参照
参照
Microsoft.Windows.Design.Interaction 名前空間