Windows.UI.Xaml.Controls.Grid.GetColumnSpan C# (CSharp) Method

GetColumnSpan() public static method

public static GetColumnSpan ( [ element ) : int
element [
return int
		public static extern int GetColumnSpan([In] FrameworkElement element);
		public static extern void SetColumnSpan([In] FrameworkElement element, [In] int value);

Usage Example

コード例 #1
0
		private (IDisposable Subscription, Memory<ViewPosition> Views) GetPositions()
		{
			var refs = Children.SelectToArray(c => (View: c, Handle: GCHandle.Alloc(c, GCHandleType.Normal)));

			return (
				Disposable.Create(() => refs.ForEach(c => c.Handle.Free())),
				refs
					.SelectToMemory(c =>
						new ViewPosition(
							c.Handle,
							new GridPosition(
								Grid.GetColumn(c.View),
								Grid.GetRow(c.View),
								Grid.GetColumnSpan(c.View),
								Grid.GetRowSpan(c.View)
							)
						)
					)
			);
		}
All Usage Examples Of Windows.UI.Xaml.Controls.Grid::GetColumnSpan