Share via


GridExtensions.Add メソッド

定義

オーバーロード

Add(Grid, IView, Int32, Int32)

IViewGrid指定した列と行の行範囲が 1 で、列スパンが 1 の に を追加します。

Add(Grid, IView, Int32, Int32, Int32, Int32)
古い.

IViewGrid指定した行と列のスパンで に を追加します。

Add(Grid, IView, Int32, Int32)

IViewGrid指定した列と行の行範囲が 1 で、列スパンが 1 の に を追加します。

public static void Add (this Microsoft.Maui.Controls.Grid grid, Microsoft.Maui.IView view, int column = 0, int row = 0);
static member Add : Microsoft.Maui.Controls.Grid * Microsoft.Maui.IView * int * int -> unit
<Extension()>
Public Sub Add (grid As Grid, view As IView, Optional column As Integer = 0, Optional row As Integer = 0)

パラメーター

grid
Grid

GridIViewが追加される 。

view
IView

追加する IView

column
Int32

を配置 IViewする列。

row
Int32

を配置 IViewする行。

例外

view が null の場合にスローされます。

または column が 0 未満の場合rowにスローされます。

注釈

Grid 指定した場所を含む十分な行/列がない場合は、追加されます。

適用対象

Add(Grid, IView, Int32, Int32, Int32, Int32)

注意事項

This method is obsolete. Please use AddWithSpan(this Grid, IView, int, int, int, int) instead.

IViewGrid指定した行と列のスパンで に を追加します。

public:
[System::Runtime::CompilerServices::Extension]
 static void Add(Microsoft::Maui::Controls::Grid ^ grid, Microsoft::Maui::IView ^ view, int left, int right, int top, int bottom);
[System.Obsolete("This method is obsolete. Please use AddWithSpan(this Grid, IView, int, int, int, int) instead.")]
public static void Add (this Microsoft.Maui.Controls.Grid grid, Microsoft.Maui.IView view, int left, int right, int top, int bottom);
[<System.Obsolete("This method is obsolete. Please use AddWithSpan(this Grid, IView, int, int, int, int) instead.")>]
static member Add : Microsoft.Maui.Controls.Grid * Microsoft.Maui.IView * int * int * int * int -> unit
<Extension()>
Public Sub Add (grid As Grid, view As IView, left As Integer, right As Integer, top As Integer, bottom As Integer)

パラメーター

grid
Grid

GridIViewが追加される 。

view
IView

追加する IView

left
Int32

列のスパンの左端。 0 以上であることが必要です。

right
Int32

列のスパンの右端。 左より大きくなければなりません。 は IView 、この列を占有しませんが、直前に停止します。

top
Int32

行のスパンの上端。 0 以上であることが必要です。

bottom
Int32

行のスパンの下端。 上よりも大きい必要があります。 は IView 、この行を占有しませんが、直前に停止します。

属性

例外

view が null の場合にスローされます。

または top が 0 未満の場合、bottomまたは が top以下の場合、または right が 以下の場合leftleftスローされます。

注釈

Grid 、指定したスパンを含む十分な行/列がない場合は、追加されます。

適用対象