1 write to owner
System.Windows.Forms (1)
winforms\Managed\System\WinForms\ToolStrip.cs (1)
5357
this.
owner
= owner;
52 references to owner
System.Windows.Forms (52)
winforms\Managed\System\WinForms\ToolStrip.cs (52)
5364
this.ShowItemDropPoint(
owner
.PointToClient(new Point(e.X, e.Y)));
5371
owner
.ClearInsertionMark();
5380
OnDropItem(item,
owner
.PointToClient(new Point(e.X, e.Y)));
5388
if (this.ShowItemDropPoint(
owner
.PointToClient(new Point(e.X, e.Y)))) {
5392
if (
owner
!= null) {
5393
owner
.ClearInsertionMark();
5413
ToolStripItem item =
owner
.Items[toolStripItemIndex];
5415
owner
.ClearInsertionMark();
5438
insertIndex = Math.Max(0, (
owner
.RightToLeft == RightToLeft.Yes) ? insertIndex + 1 : insertIndex);
5446
insertIndex = Math.Max(0, (
owner
.RightToLeft == RightToLeft.No) ? insertIndex + 1 : insertIndex);
5453
if (
owner
.Items.IndexOf(droppedItem) < insertIndex) {
5457
owner
.Items.MoveItem(Math.Max(0,insertIndex), droppedItem);
5458
owner
.ClearInsertionMark();
5461
else if (toolStripItemIndex == -1 &&
owner
.Items.Count == 0) {
5462
owner
.Items.Add(droppedItem);
5463
owner
.ClearInsertionMark();
5473
ToolStripItem item =
owner
.Items[i];
5482
insertionRect = new Rectangle(
owner
.Margin.Left, item.Bounds.Top,
owner
.Width - (
owner
.Margin.Horizontal) -1, ToolStrip.insertionBeamWidth);
5485
insertionRect = new Rectangle(
owner
.Margin.Left, item.Bounds.Bottom,
owner
.Width - (
owner
.Margin.Horizontal) -1, ToolStrip.insertionBeamWidth);
5488
insertionRect = new Rectangle(item.Bounds.Right,
owner
.Margin.Top, ToolStrip.insertionBeamWidth,
owner
.Height- (
owner
.Margin.Vertical)-1);
5491
insertionRect = new Rectangle(item.Bounds.Left,
owner
.Margin.Top, ToolStrip.insertionBeamWidth,
owner
.Height - (
owner
.Margin.Vertical) -1);
5495
owner
.PaintInsertionMark(insertionRect);
5498
else if (
owner
.Items.Count == 0) {
5499
Rectangle insertionRect =
owner
.DisplayRectangle;
5501
owner
.PaintInsertionMark(insertionRect);
5509
for(int i = 0; i<
owner
.DisplayedItems.Count; i++) {
5510
Rectangle bounds =
owner
.DisplayedItems[i].Bounds;
5511
bounds.Inflate(
owner
.DisplayedItems[i].Margin.Size);
5513
Debug.WriteLineIf(ToolStrip.DropTargetDebug.TraceVerbose, "MATCH " +
owner
.DisplayedItems[i].Text + " Bounds: " +
owner
.DisplayedItems[i].Bounds.ToString());
5516
return
owner
.Items.IndexOf(
owner
.DisplayedItems[i]);
5520
if (
owner
.DisplayedItems.Count > 0) {
5521
for (int i = 0; i <
owner
.DisplayedItems.Count; i++) {
5522
if (
owner
.DisplayedItems[i].Alignment == ToolStripItemAlignment.Right) {
5524
return
owner
.Items.IndexOf(
owner
.DisplayedItems[i - 1]);
5526
return
owner
.Items.IndexOf(
owner
.DisplayedItems[i]);
5529
return
owner
.Items.IndexOf(
owner
.DisplayedItems[
owner
.DisplayedItems.Count - 1]);
5543
if (
owner
.Orientation == Orientation.Horizontal) {
5560
if (
owner
.Orientation == Orientation.Vertical) {