Skip to content

Latest commit

 

History

History
34 lines (23 loc) · 1.36 KB

grid_getcolumn_1642867007.md

File metadata and controls

34 lines (23 loc) · 1.36 KB
-api-id -api-type
M:Microsoft.UI.Xaml.Controls.Grid.GetColumn(Microsoft.UI.Xaml.FrameworkElement)
winrt method

Microsoft.UI.Xaml.Controls.Grid.GetColumn

-description

Gets the value of the Grid.Column XAML attached property from the specified FrameworkElement.

-parameters

-param element

The element from which to read the property value.

-returns

The value of the Grid.Column XAML attached property on the target element. This is a zero-based index.

-remarks

This method is a utility method for the property system, and isn't used in most app scenarios. In most cases you set the Grid.Column XAML attached property in XAML and won't need this method. For more info, see the Grid.Column XAML attached property.

-examples

The following example shows how to get the row and column of the element that raised an event.

[!code-xaml1]

[!code-csharp2]

-see-also

Grid.Column, Attached properties overview