8 instantiations of TableLayoutPanelCellPosition
System.Windows.Forms (6)
System\Windows\Forms\Layout\TableLayout.cs (3)
1328return new TableLayoutPanelCellPosition(-1, -1); 1337return new TableLayoutPanelCellPosition(-1, -1); 1347return new TableLayoutPanelCellPosition(layoutInfo.ColumnStart, layoutInfo.RowStart);
System\Windows\Forms\Panels\TableLayoutPanel\TableLayoutPanelCellPositionTypeConverter.cs (2)
58return new TableLayoutPanelCellPosition(values[0], values[1]); 82return new TableLayoutPanelCellPosition(
System\Windows\Forms\Panels\TableLayoutPanel\TableLayoutSettings.cs (1)
355return new TableLayoutPanelCellPosition(GetColumn(control), GetRow(control));
System.Windows.Forms.Design (2)
System\Windows\Forms\Design\TableLayoutPanelDesigner.cs (2)
598Table.SetCellPosition(control, new TableLayoutPanelCellPosition(newControlPosition.X, newControlPosition.Y)); 1252Table.SetCellPosition(e.Control, new TableLayoutPanelCellPosition(-1, -1));
23 references to TableLayoutPanelCellPosition
System.Windows.Forms (22)
System\Windows\Forms\Layout\TableLayout.cs (1)
1324internal static TableLayoutPanelCellPosition GetPositionFromControl(IArrangedElement? container, IArrangedElement? child)
System\Windows\Forms\Panels\TableLayoutPanel\TableLayoutPanel.cs (4)
222[DefaultValue(typeof(TableLayoutPanelCellPosition), "-1,-1")] // if change this value, also change the SerializeViaAdd in TableLayoutControlCollectionCodeDomSerializer 227public TableLayoutPanelCellPosition GetCellPosition(Control control) => 231public void SetCellPosition(Control control, TableLayoutPanelCellPosition position) => 255public TableLayoutPanelCellPosition GetPositionFromControl(Control? control) =>
System\Windows\Forms\Panels\TableLayoutPanel\TableLayoutPanelCellPosition.cs (7)
9public struct TableLayoutPanelCellPosition : IEquatable<TableLayoutPanelCellPosition> 26if (other is not TableLayoutPanelCellPosition otherCellPosition) 34public readonly bool Equals(TableLayoutPanelCellPosition other) 37public static bool operator ==(TableLayoutPanelCellPosition p1, TableLayoutPanelCellPosition p2) 42public static bool operator !=(TableLayoutPanelCellPosition p1, TableLayoutPanelCellPosition p2)
System\Windows\Forms\Panels\TableLayoutPanel\TableLayoutPanelCellPositionTypeConverter.cs (7)
66if (destinationType == typeof(InstanceDescriptor) && value is TableLayoutPanelCellPosition cellPosition) 69typeof(TableLayoutPanelCellPosition).GetConstructor([typeof(int), typeof(int)]), 83(int)propertyValues[nameof(TableLayoutPanelCellPosition.Column)]!, 84(int)propertyValues[nameof(TableLayoutPanelCellPosition.Row)]!); 102PropertyDescriptorCollection props = TypeDescriptor.GetProperties(typeof(TableLayoutPanelCellPosition), attributes); 103return props.Sort([nameof(TableLayoutPanelCellPosition.Column), nameof(TableLayoutPanelCellPosition.Row)]);
System\Windows\Forms\Panels\TableLayoutPanel\TableLayoutSettings.cs (3)
351public TableLayoutPanelCellPosition GetCellPosition(object control) 364public void SetCellPosition(object control, TableLayoutPanelCellPosition cellPosition) 460internal TableLayoutPanelCellPosition GetPositionFromControl(IArrangedElement? element)
System.Windows.Forms.Design (1)
System\Windows\Forms\Design\TableLayoutPanelDesigner.cs (1)
1044TableLayoutPanelCellPosition pos = Table.GetPositionFromControl(control);