Udostępnij za pośrednictwem


Grid.GetColumn Method

Definition

Overloads

GetColumn(BindableObject)

Gets the column of the bindable child element.

GetColumn(IView)

GetColumn(BindableObject)

Source:
Grid.cs
Source:
Grid.cs

Gets the column of the bindable child element.

public:
 static int GetColumn(Microsoft::Maui::Controls::BindableObject ^ bindable);
public static int GetColumn (Microsoft.Maui.Controls.BindableObject bindable);
static member GetColumn : Microsoft.Maui.Controls.BindableObject -> int
Public Shared Function GetColumn (bindable As BindableObject) As Integer

Parameters

bindable
BindableObject

An element that belongs to the Grid layout.

Returns

The column that the child element is in.

Remarks

The GetColumn(BindableObject) method corresponds to the value that is set by the following XAML attached property.

Attached PropertyValue
Column

An integer that represents the Column in which the item will appear.

The remarks for the SetColumn(BindableObject, Int32) method contain syntax for and information about the Column attached property.

Applies to

GetColumn(IView)

Source:
Grid.cs
Source:
Grid.cs
public:
 virtual int GetColumn(Microsoft::Maui::IView ^ view);
public int GetColumn (Microsoft.Maui.IView view);
abstract member GetColumn : Microsoft.Maui.IView -> int
override this.GetColumn : Microsoft.Maui.IView -> int
Public Function GetColumn (view As IView) As Integer

Parameters

view
IView

Returns

Implements

Applies to