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