14 references to CellsAcross
System.Windows.Forms.Design (14)
System\Drawing\Design\ColorEditor.ColorPalette.ColorPaletteAccessibleObject.cs (3)
18_cells = new ColorCellAccessibleObject[CellsAcross * CellsDown]; 23public override int GetChildCount() => CellsAcross * CellsDown; 27if (ColorPalette is not { } palette || id < 0 || id >= CellsAcross * CellsDown)
System\Drawing\Design\ColorEditor.ColorPalette.cs (11)
18public const int TotalCells = CellsAcross * CellsDown; 73CellsAcross * (s_cellSizeX + s_marginX) + s_marginX + 2, 133for (int x = 0; x < CellsAcross; x++) 163if (across < 0 || down < 0 || across >= CellsAcross || down >= CellsDown) 189return x + CellsAcross * y; 194int x = cell % CellsAcross; 195int y = cell / CellsAcross; 203for (int x = 0; x < CellsAcross; x++) 375for (int x = 0; x < CellsAcross; x++) 449if (newFocus.X >= CellsAcross) 451newFocus.X = CellsAcross - 1;