-api-id | -api-type |
---|---|
M:Microsoft.UI.Xaml.Controls.Grid.GetColumn(Microsoft.UI.Xaml.FrameworkElement) |
winrt method |
Gets the value of the Grid.Column XAML attached property from the specified FrameworkElement.
The element from which to read the property value.
The value of the Grid.Column XAML attached property on the target element. This is a zero-based index.
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.
The following example shows how to get the row and column of the element that raised an event.
[!code-xaml1]
[!code-csharp2]