1 write to _owner
System.Windows.Forms (1)
System\Windows\Forms\Controls\ToolStrips\ToolStripSplitStackDragDropHandler.cs (1)
18
_owner
= owner.OrThrowIfNull();
49 references to _owner
System.Windows.Forms (49)
System\Windows\Forms\Controls\ToolStrips\ToolStripSplitStackDragDropHandler.cs (49)
26
ShowItemDropPoint(
_owner
.PointToClient(new Point(e.X, e.Y)));
32
_owner
.ClearInsertionMark();
40
OnDropItem(item,
_owner
.PointToClient(new Point(e.X, e.Y)));
48
if (ShowItemDropPoint(
_owner
.PointToClient(new Point(e.X, e.Y))))
54
_owner
?.ClearInsertionMark();
74
ToolStripItem item =
_owner
.Items[toolStripItemIndex];
77
_owner
.ClearInsertionMark();
102
insertIndex = Math.Max(0, (
_owner
.RightToLeft == RightToLeft.Yes) ? insertIndex + 1 : insertIndex);
110
insertIndex = Math.Max(0, (
_owner
.RightToLeft == RightToLeft.No) ? insertIndex + 1 : insertIndex);
116
if (
_owner
.Items.IndexOf(droppedItem) < insertIndex)
121
_owner
.Items.MoveItem(Math.Max(0, insertIndex), droppedItem);
122
_owner
.ClearInsertionMark();
124
else if (toolStripItemIndex == -1 &&
_owner
.Items.Count == 0)
126
_owner
.Items.Add(droppedItem);
127
_owner
.ClearInsertionMark();
136
ToolStripItem item =
_owner
.Items[i];
143
insertionRect = new Rectangle(
_owner
.Margin.Left, item.Bounds.Top,
_owner
.Width - (
_owner
.Margin.Horizontal) - 1, ToolStrip.s_insertionBeamWidth);
146
insertionRect = new Rectangle(
_owner
.Margin.Left, item.Bounds.Bottom,
_owner
.Width - (
_owner
.Margin.Horizontal) - 1, ToolStrip.s_insertionBeamWidth);
149
insertionRect = new Rectangle(item.Bounds.Right,
_owner
.Margin.Top, ToolStrip.s_insertionBeamWidth,
_owner
.Height - (
_owner
.Margin.Vertical) - 1);
152
insertionRect = new Rectangle(item.Bounds.Left,
_owner
.Margin.Top, ToolStrip.s_insertionBeamWidth,
_owner
.Height - (
_owner
.Margin.Vertical) - 1);
156
_owner
.PaintInsertionMark(insertionRect);
159
else if (
_owner
.Items.Count == 0)
161
Rectangle insertionRect =
_owner
.DisplayRectangle;
163
_owner
.PaintInsertionMark(insertionRect);
172
for (int i = 0; i <
_owner
.DisplayedItems.Count; i++)
174
Rectangle bounds =
_owner
.DisplayedItems[i].Bounds;
175
bounds.Inflate(
_owner
.DisplayedItems[i].Margin.Size);
179
return
_owner
.Items.IndexOf(
_owner
.DisplayedItems[i]);
183
if (
_owner
.DisplayedItems.Count > 0)
185
for (int i = 0; i <
_owner
.DisplayedItems.Count; i++)
187
if (
_owner
.DisplayedItems[i].Alignment == ToolStripItemAlignment.Right)
191
return
_owner
.Items.IndexOf(
_owner
.DisplayedItems[i - 1]);
194
return
_owner
.Items.IndexOf(
_owner
.DisplayedItems[i]);
198
return
_owner
.Items.IndexOf(
_owner
.DisplayedItems[
_owner
.DisplayedItems.Count - 1]);
206
if (
_owner
.Orientation == Orientation.Horizontal)
226
if (
_owner
.Orientation == Orientation.Vertical)