1 write to Row
System.Windows.Forms (1)
System\Windows\Forms\Controls\ToolStrips\ToolStripPanelRow.ToolStripPanelRowManager.cs (1)
16
Row
= owner;
134 references to Row
System.Windows.Forms (134)
System\Windows\Forms\Controls\ToolStrips\ToolStripPanelRow.HorizontalRowManager.cs (61)
26
Rectangle displayRect = ((IArrangedElement)
Row
).DisplayRectangle;
35
displayRect.Width = ToolStripPanel.ParentInternal.DisplayRectangle.Width - (ToolStripPanel.Margin.Horizontal + ToolStripPanel.Padding.Horizontal) -
Row
.Margin.Horizontal;
39
displayRect.Width = raftingDisplayRectangle.Width -
Row
.Margin.Horizontal;
51
Rectangle dragBounds =
Row
.Bounds;
52
int index = ToolStripPanel.RowsInternal.IndexOf(
Row
);
67
dragBounds.Height += (nextRowBounds.Height >> 2) +
Row
.Margin.Bottom + ToolStripPanel.RowsInternal[index + 1].Margin.Top;
70
dragBounds.Width +=
Row
.Margin.Horizontal + ToolStripPanel.Padding.Horizontal + 5;
71
dragBounds.X -=
Row
.Margin.Left + ToolStripPanel.Padding.Left + 4;
86
for (int i = 0; i <
Row
.ControlsInternal.Count; i++)
88
totalSize +=
Row
.GetMinimumSize((ToolStrip)
Row
.ControlsInternal[i]);
91
totalSize +=
Row
.GetMinimumSize(toolStripToDrag);
107
ToolStripPanelCell? lastCellOnRow = GetNextVisibleCell(
Row
.Cells.Count - 1, forward: false);
133
spaceToFree -= MoveLeft(
Row
.Cells.Count - 1, spaceToFree);
141
if (
Row
.Locked)
148
int index =
Row
.ControlsInternal.IndexOf(movingControl);
171
Row
.SuspendLayout();
182
ToolStripPanelCell? cell = (ToolStripPanelCell)
Row
.Cells[i];
211
if (index + 1 <
Row
.Cells.Count)
228
Row
.ResumeLayout(true);
237
Row
.SuspendLayout();
240
if (spaceToFree == 0 || index < 0 || index >=
Row
.ControlsInternal.Count)
249
for (int i = index + 1; i <
Row
.Cells.Count; i++)
251
cell = (ToolStripPanelCell)
Row
.Cells[i];
281
if (
Row
.Cells.Count > 0 && (spaceToFree > freedSpace))
283
ToolStripPanelCell? lastCell = GetNextVisibleCell(
Row
.Cells.Count - 1, forward: false);
299
cell ??=
Row
.Cells[index] as ToolStripPanelCell;
314
for (int i = index + 1; i <
Row
.Cells.Count; i++)
316
cell = (ToolStripPanelCell)
Row
.Cells[i];
326
Row
.ResumeLayout(true);
331
if (
Row
.Cells.Count == 1)
344
Row
.ResumeLayout(true);
354
Row
.SuspendLayout();
355
int index =
Row
.ControlsInternal.IndexOf(toolStripToDrag);
358
if (index <
Row
.ControlsInternal.Count - 1 /*not the last one in the row*/)
360
ToolStripPanelCell cell = (ToolStripPanelCell)
Row
.Cells[index];
377
((IList)
Row
.Cells).RemoveAt(index);
380
Row
.ResumeLayout(true);
395
if (!
Row
.ControlsInternal.Contains(toolStripToDrag))
397
Row
.SuspendLayout();
401
if (
Row
.ControlsInternal.Count > 0)
404
for (index = 0; index <
Row
.Cells.Count; index++)
406
ToolStripPanelCell cell = (ToolStripPanelCell)
Row
.Cells[index];
413
if (
Row
.Cells[index].Bounds.Contains(locationToDrag))
421
if (
Row
.Cells[index].Bounds.X >= locationToDrag.X)
428
if (index <
Row
.ControlsInternal.Count)
430
Row
.ControlsInternal.Insert(index, toolStripToDrag);
434
Row
.ControlsInternal.Add(toolStripToDrag);
454
if (index <
Row
.ControlsInternal.Count - 1)
456
ToolStripPanelCell nextCell = (ToolStripPanelCell)
Row
.Cells[index + 1];
489
ToolStripPanelCell? nextCell = GetNextVisibleCell(
Row
.Cells.Count - 2, forward: false);
490
ToolStripPanelCell? lastCell = GetNextVisibleCell(
Row
.Cells.Count - 1, forward: false);
515
ToolStripPanelCell newCell = (ToolStripPanelCell)
Row
.Cells[index];
525
Row
.ControlsInternal.Add(toolStripToDrag);
529
Debug.Assert(ctg.ToolStripPanelRow ==
Row
, "we should now be in the new panel row.");
531
if (
Row
.Cells.Count > 0 || toolStripToDrag.IsInDesignMode)
534
ToolStripPanelCell? cell = GetNextVisibleCell(
Row
.Cells.Count - 1, forward: false);
537
cell = (ToolStripPanelCell)
Row
.Cells[
Row
.Cells.Count - 1];
543
cellMargin.Left = Math.Max(0, locationToDrag.X -
Row
.Margin.Left);
551
Row
.ResumeLayout(true);
System\Windows\Forms\Controls\ToolStrips\ToolStripPanelRow.ToolStripPanelRowManager.cs (13)
26
foreach (Control control in
Row
.ControlsInternal)
49
get { return
Row
.ToolStripPanel; }
58
_flowLayoutSettings ??= new FlowLayoutSettings(
Row
);
72
if (index >= 0 && index <
Row
.ControlsInternal.Count - 1)
74
ToolStripPanelCell cell = (ToolStripPanelCell)
Row
.Cells[index];
88
for (int i = index; i <
Row
.Cells.Count; i++)
90
ToolStripPanelCell cell = (ToolStripPanelCell)
Row
.Cells[i];
91
if ((cell.Visible || (
Row
.ToolStripPanel.Visible && cell.ControlInDesignMode)) && cell.ToolStripPanelRow ==
Row
)
101
ToolStripPanelCell cell = (ToolStripPanelCell)
Row
.Cells[i];
102
if ((cell.Visible || (
Row
.ToolStripPanel.Visible && cell.ControlInDesignMode)) && cell.ToolStripPanelRow ==
Row
)
126
for (int i = index + 1; i <
Row
.ControlsInternal.Count; i++)
System\Windows\Forms\Controls\ToolStrips\ToolStripPanelRow.VerticalRowManager.cs (60)
27
Rectangle displayRect = ((IArrangedElement)
Row
).DisplayRectangle;
36
displayRect.Height = ToolStripPanel.ParentInternal.DisplayRectangle.Height - (ToolStripPanel.Margin.Vertical + ToolStripPanel.Padding.Vertical) -
Row
.Margin.Vertical;
40
displayRect.Height = raftingDisplayRectangle.Height -
Row
.Margin.Vertical;
52
Rectangle dragBounds =
Row
.Bounds;
53
int index = ToolStripPanel.RowsInternal.IndexOf(
Row
);
68
dragBounds.Width += (nextRowBounds.Width >> 2) +
Row
.Margin.Right + ToolStripPanel.RowsInternal[index + 1].Margin.Left;
71
dragBounds.Height +=
Row
.Margin.Vertical + ToolStripPanel.Padding.Vertical + 5;
72
dragBounds.Y -=
Row
.Margin.Top + ToolStripPanel.Padding.Top + 4;
88
for (int i = 0; i <
Row
.ControlsInternal.Count; i++)
90
totalSize +=
Row
.GetMinimumSize((ToolStrip)
Row
.ControlsInternal[i]);
93
totalSize +=
Row
.GetMinimumSize(toolStripToDrag);
109
ToolStripPanelCell? lastCellOnRow = GetNextVisibleCell(
Row
.Cells.Count - 1, forward: false);
135
spaceToFree -= MoveUp(
Row
.Cells.Count - 1, spaceToFree);
143
if (
Row
.Locked)
150
int index =
Row
.ControlsInternal.IndexOf(movingControl);
173
Row
.SuspendLayout();
184
ToolStripPanelCell? cell = (ToolStripPanelCell)
Row
.Cells[i];
213
if (index + 1 <
Row
.Cells.Count)
230
Row
.ResumeLayout(true);
239
Row
.SuspendLayout();
242
if (spaceToFree == 0 || index < 0 || index >=
Row
.ControlsInternal.Count)
251
for (int i = index + 1; i <
Row
.Cells.Count; i++)
253
cell = (ToolStripPanelCell)
Row
.Cells[i];
283
if (
Row
.Cells.Count > 0 && (spaceToFree > freedSpace))
285
ToolStripPanelCell? lastCell = GetNextVisibleCell(
Row
.Cells.Count - 1, forward: false);
300
cell = (ToolStripPanelCell)
Row
.Cells[index];
309
for (int i = index + 1; i <
Row
.Cells.Count; i++)
311
cell = (ToolStripPanelCell)
Row
.Cells[i];
321
Row
.ResumeLayout(true);
326
if (
Row
.Cells.Count == 1)
339
Row
.ResumeLayout(true);
351
if (
Row
.Cells.Count > 0)
355
ToolStripPanelCell? lastCell = GetNextVisibleCell(
Row
.Cells.Count - 1, forward: false);
361
ToolStripPanelCell? lastCellOnRow = GetNextVisibleCell(
Row
.Cells.Count - 1, forward: false);
384
MoveUp(
Row
.Cells.Count - 1, spaceToFree);
402
if (!
Row
.ControlsInternal.Contains(toolStripToDrag))
404
Row
.SuspendLayout();
407
if (
Row
.ControlsInternal.Count > 0)
410
for (index = 0; index <
Row
.Cells.Count; index++)
412
ToolStripPanelCell cell = (ToolStripPanelCell)
Row
.Cells[index];
434
if (index <
Row
.ControlsInternal.Count)
436
Row
.ControlsInternal.Insert(index, toolStripToDrag);
440
Row
.ControlsInternal.Add(toolStripToDrag);
461
if (index <
Row
.ControlsInternal.Count - 1)
499
ToolStripPanelCell? nextCell = GetNextVisibleCell(
Row
.Cells.Count - 2, forward: false);
500
ToolStripPanelCell? lastCell = GetNextVisibleCell(
Row
.Cells.Count - 1, forward: false);
525
ToolStripPanelCell newCell = (ToolStripPanelCell)
Row
.Cells[index];
535
Row
.ControlsInternal.Add(toolStripToDrag);
539
Debug.Assert(ctg.ToolStripPanelRow ==
Row
, "we should now be in the new panel row.");
541
if (
Row
.Cells.Count > 0)
543
ToolStripPanelCell? cell = GetNextVisibleCell(
Row
.Cells.Count - 1, forward: false);
547
cellMargin.Top = Math.Max(0, locationToDrag.Y -
Row
.Margin.Top);
555
Row
.ResumeLayout(true);
564
Row
.SuspendLayout();
565
int index =
Row
.ControlsInternal.IndexOf(toolStripToDrag);
568
if (index <
Row
.ControlsInternal.Count - 1 /*not the last one in the row*/)
570
ToolStripPanelCell cell = (ToolStripPanelCell)
Row
.Cells[index];
587
((IList)
Row
.Cells).RemoveAt(index);
590
Row
.ResumeLayout(true);