GridExtensions.Add 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
Add(Grid, IView, Int32, Int32) | |
Add(Grid, IView, Int32, Int32, Int32, Int32) |
已过时.
|
Add(Grid, IView, Int32, Int32)
- Source:
- GridExtensions.cs
- Source:
- GridExtensions.cs
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)
参数
例外
当 view
为 null 时引发。
在或column
小于 0 时row
引发。
注解
Grid如果行/列没有足够的行/列来包含指定位置,则会添加它们。
适用于
Add(Grid, IView, Int32, Int32, Int32, Int32)
- Source:
- GridExtensions.cs
- Source:
- GridExtensions.cs
注意
This method is obsolete. Please use AddWithSpan(this Grid, IView, int, int, int, int) instead.
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)
参数
- left
- Int32
列范围的左边缘。 必须大于或等于 0。
- top
- Int32
行范围的上边缘。 必须大于或等于 0。
- 属性
例外
当 view
为 null 时引发。
在小于或top
小于 0、bottom
小于或等于right
top
或小于或等于left
时left
引发。
注解
Grid如果行/列没有足够的行/列来包含指定的范围,则会添加它们。