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