GridExtensions.Add 메서드

정의

오버로드

Add(Grid, IView, Int32, Int32)

IView 행 범위가 Grid 1이고 열 범위가 1인 지정된 열 및 행의 에 를 추가합니다.

Add(Grid, IView, Int32, Int32, Int32, Int32)
사용되지 않음.

IViewGrid 지정된 행 및 열 범위의 에 를 추가합니다.

Add(Grid, IView, Int32, Int32)

IView 행 범위가 Grid 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

IViewGrid 추가될 입니다.

view
IView

추가할 IView입니다.

column
Int32

를 배치할 열입니다 IView.

row
Int32

를 배치할 행입니다 IView.

예외

view이 null일 때 발생.

또는 column 가 0보다 작은 경우 row throw됩니다.

설명

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

IViewGrid 추가될 입니다.

view
IView

추가할 IView입니다.

left
Int32

열 범위의 왼쪽 가장자리입니다. 0보다 크거나 같아야 합니다.

right
Int32

열 범위의 오른쪽 가장자리입니다. 왼쪽보다 커야 합니다. 는 IView 이 열을 차지하지 않지만 바로 앞에 중지됩니다.

top
Int32

행 범위의 위쪽 가장자리입니다. 0보다 크거나 같아야 합니다.

bottom
Int32

행 범위의 아래쪽 가장자리입니다. 위쪽보다 커야 합니다. 는 IView 이 행을 차지하지 않지만 바로 앞에 중지됩니다.

특성

예외

view이 null일 때 발생.

left 또는 가 0보다 작거나top, 가 보다 작거나 같top거나, bottom 보다 작거나 right 같은 경우 leftthrow됩니다.

설명

Grid 지정된 범위를 포함하기에 충분한 행/열이 없으면 추가됩니다.

적용 대상