137 references to
System.Windows.Forms (137)
winforms\Managed\System\WinForms\ContextMenuStrip.cs (1)
75
ToolStripItem item = Items
[
i];
winforms\Managed\System\WinForms\Form.cs (1)
6737
!(sourceMenuStrip.MdiWindowListItem.DropDownItems
[
nSubItems-1] is ToolStripSeparator));
winforms\Managed\System\WinForms\PropertyGrid.cs (4)
4924
ToolStripButton button = toolStrip.Items
[
index] as ToolStripButton;
4939
ToolStripButton button = toolStrip.Items
[
index] as ToolStripButton;
4971
text = toolStrip.Items
[
index].Text;
4974
text = toolStrip.Items
[
index].ToolTipText;
winforms\Managed\System\WinForms\StatusStrip.cs (5)
385
ToolStripItem item = Items
[
i];
477
ToolStripStatusLabel panel = DisplayedItems
[
i] as ToolStripStatusLabel;
479
DisplayedItems
[
i].Anchor = (spring) ? AllAnchor : VerticalAnchor;
519
ToolStripStatusLabel panel = DisplayedItems
[
i] as ToolStripStatusLabel;
521
DisplayedItems
[
i].Anchor = (spring) ? AllAnchor : HorizontalAnchor;
winforms\Managed\System\WinForms\ToolStrip.cs (73)
1893
Items
[
i].OnOwnerTextDirectionChanged();
1995
if (DisplayedItems
[
i] == item) {
1998
else if (item != null && DisplayedItems
[
i].Pressed) {
2000
ToolStripDropDownItem dropDownItem = DisplayedItems
[
i] as ToolStripDropDownItem;
2007
if (DisplayedItems
[
i].Selected) {
2008
DisplayedItems
[
i].Unselect();
2009
Debug.WriteLineIf(SelectionDebug.TraceVerbose,"[SelectDBG ClearAllSelectionsExcept] Unselecting " + DisplayedItems
[
i].Text);
2019
region.Union(DisplayedItems
[
i].Bounds);
2111
Items
[
i].Dispose();
2271
Debug.WriteLineIf(SelectionDebug.TraceVerbose && (current != -1), "[SelectDBG GetNextToolStripItem] Last selected item was " + ((current != -1) ? DisplayedItems
[
current].Text : ""));
2288
return DisplayedItems
[
current];
2291
if (DisplayedItems
[
current].CanKeyboardSelect) {
2292
Debug.WriteLineIf(SelectionDebug.TraceVerbose, "[SelectDBG GetNextToolStripItem] selecting " + DisplayedItems
[
current].Text);
2294
return DisplayedItems
[
current];
2297
} while (DisplayedItems
[
current] != start);
2303
return DisplayedItems
[
DisplayedItems.Count - 1];
2308
return DisplayedItems
[
DisplayedItems.Count > 1 ? 1 : 0];
2350
ToolStripItem otherItem = DisplayedItems
[
i];
2488
ToolStripItem item = toolStrip.Items
[
j];
2543
ToolStripItem item = toolStrip.Items
[
j];
2606
if (DisplayedItems
[
i].Selected) {
2607
selectedItem = DisplayedItems
[
i];
2709
renderer.InitializeItem(this.Items
[
i]);
2725
if (((DisplayedItems
[
j].DisplayStyle & ToolStripItemDisplayStyle.Text) == ToolStripItemDisplayStyle.Text)){
2726
DisplayedItems
[
j].InvalidateItemLayout("ShowKeyboardFocusCues");
3054
ToolStripItem currentItem = DisplayedItems
[
index];
3103
ToolStripItem currentItem = DisplayedItems
[
index];
3292
if (Items
[
i] != null && Items
[
i].ParentInternal == this) {
3293
Items
[
i].OnParentEnabledChanged(e);
3314
Items
[
i].OnOwnerFontChanged(e);
3431
Items
[
j].OnLayout(e);
3683
ToolStripItem item = DisplayedItems
[
i];
3785
Items
[
i].OnParentRightToLeftChanged(e);
4041
if (DisplayedItems
[
i] == null || DisplayedItems
[
i].ParentInternal != this) {
4045
bounds = DisplayedItems
[
i].Bounds;
4048
if (toolStripGrip != null && DisplayedItems
[
i] == toolStripGrip) {
4052
return this.DisplayedItems
[
i];
4379
ToolStripItem item = Items
[
j];
4438
ToolStripItem item = Items
[
j];
4463
Debug.WriteLineIf(LayoutDebugSwitch.TraceVerbose, item.ToString() + Items
[
j].Bounds);
4870
if (owner.Items
[
i].Available && owner.Items
[
i].Alignment == ToolStripItemAlignment.Left) {
4872
item = owner.Items
[
i];
4882
if (owner.Items
[
i].Available && owner.Items
[
i].Alignment == ToolStripItemAlignment.Right) {
4884
item = owner.Items
[
i];
4920
if (owner.Items
[
i].Available) {
4943
var item = items
[
index];
4955
var item = owner.Items
[
index];
5012
var item = items
[
index];
5013
if (item.Available && item.Alignment == ToolStripItemAlignment.Left && child.Owner == items
[
index]) {
5020
var item = items
[
index];
5021
if (item.Available && item.Alignment == ToolStripItemAlignment.Right && child.Owner == items
[
index]) {
5048
if (owner.Items
[
i].Available && owner.Items
[
i].Alignment == ToolStripItemAlignment.Left) {
5049
if (child.Owner == owner.Items
[
i]) {
5058
if (owner.Items
[
i].Available && owner.Items
[
i].Alignment == ToolStripItemAlignment.Right) {
5059
if (child.Owner == owner.Items
[
i]) {
5195
ToolStripItem item = this.Items
[
i];
5413
ToolStripItem item = owner.Items
[
toolStripItemIndex];
5473
ToolStripItem item = owner.Items
[
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]);
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]);
winforms\Managed\System\WinForms\ToolStripDropDownItem.cs (4)
885
if (owner.DropDownItems
[
i].Available && child.Owner == owner.DropDownItems
[
i]) {
904
if (owner.DropDownItems
[
i].Available) {
958
var item = dropDown.Items
[
index];
winforms\Managed\System\WinForms\ToolStripDropDownMenu.cs (20)
342
ToolStripItem item = Items
[
i];
533
if ( (this.Items
[
index].Visible && displayRect.Contains(displayRect.X, this.Items
[
index].Bounds.Top - delta))
534
|| !this.Items
[
index].Visible) {
543
if (displayRect.Contains(displayRect.X, this.Items
[
index].Bounds.Bottom - delta)) {
545
delta += (this.Items
[
index].Bounds.Bottom - delta) - displayRect.Top;
666
if (this.Items
[
i].Available) {
667
Rectangle adjustedLastItemBounds = this.Items
[
this.Items.Count - 1].Bounds;
677
deltaToScroll += this.Items
[
i + 1].Bounds.Top - this.Items
[
i].Bounds.Top;
680
deltaToScroll += this.Items
[
i].Bounds.Height;
687
if (this.Items
[
i].Available) {
698
deltaToScroll -= this.Items
[
i].Bounds.Top - this.Items
[
i - 1].Bounds.Top;
701
deltaToScroll -= this.Items
[
i].Bounds.Height;
736
ToolStripItem itemTop = this.Items
[
this.indexOfFirstDisplayedItem - 1];
737
ToolStripItem itemBottom = this.Items
[
this.indexOfFirstDisplayedItem];
748
ToolStripItem itemTop = this.Items
[
this.indexOfFirstDisplayedItem];
749
ToolStripItem itemBottom = this.Items
[
this.indexOfFirstDisplayedItem + 1];
802
ToolStripItem item = this.Items
[
i];
winforms\Managed\System\WinForms\ToolStripDropTargetManager.cs (1)
68
if (owner.Items
[
i].AllowDrop) {
winforms\Managed\System\WinForms\ToolStripItem.cs (3)
3963
found = Object.ReferenceEquals(items
[
i], this);
3967
neighbors.Add(((IKeyboardToolTip)items
[
previousIndex]).GetNativeScreenRectangle());
3972
neighbors.Add(((IKeyboardToolTip)items
[
nextIndex]).GetNativeScreenRectangle());
winforms\Managed\System\WinForms\ToolStripItemCollection.cs (7)
171
this.Add(toolStripItems
[
i]);
293
if (itemsToLookIn
[
i] == null)
298
if (WindowsFormsUtils.SafeCompareStrings(itemsToLookIn
[
i].Name, key, /* ignoreCase = */ true))
300
foundItems.Add(itemsToLookIn
[
i]);
311
ToolStripDropDownItem item = itemsToLookIn
[
j] as ToolStripDropDownItem;
396
if (WindowsFormsUtils.SafeCompareStrings(this
[
lastAccessedIndex].Name, key, /* ignoreCase = */ true)) {
403
if (WindowsFormsUtils.SafeCompareStrings(this
[
i].Name, key, /* ignoreCase = */ true)) {
winforms\Managed\System\WinForms\ToolStripManager.cs (4)
1834
ToolStripItem candidateItem = destinationItems
[
i];
1843
result = destinationItems
[
source.MergeIndex];
1914
ToolStripItem item = sourceToolStrip.Items
[
itemToLookAt];
1971
MergeRecursive(tsddownSrc.DropDownItems
[
itemToLookAt], tsddownDest.DropDownItems, history);
winforms\Managed\System\WinForms\ToolStripOverflow.cs (2)
153
ToolStripItem item = DisplayedItems
[
j];
168
return ((ToolStripOverflow)Owner).DisplayedItems
[
index].AccessibilityObject;
winforms\Managed\System\WinForms\ToolStripSettings.cs (2)
160
itemNames.Append((toolStrip.Items
[
i].Name == null) ? "null" : toolStrip.Items
[
i].Name);
winforms\Managed\System\WinForms\ToolStripSplitButton.cs (1)
860
return DropDownItemsCount > 0 ? ownerItem.DropDown.Items
[
ownerItem.DropDown.Items.Count - 1].AccessibilityObject : null;
winforms\Managed\System\WinForms\ToolStripSplitStackLayout.cs (9)
104
ToolStripItem item = toolStrip.Items
[
ForwardsWalkingIndex];
154
ToolStripItem item = toolStrip.Items
[
ForwardsWalkingIndex];
291
item = toolStrip.Items
[
j];
428
item = toolStrip.Items
[
j];
552
ToolStripItem item = toolStrip.Items
[
i];
571
if (toolStrip.Items
[
i].Placement == ToolStripItemPlacement.Overflow) {
572
toolStrip.Items
[
i].ParentInternal = null;
575
toolStrip.Items
[
i].SetPlacement(ToolStripItemPlacement.None);
593
ToolStripItem item = ToolStrip.Items
[
BackwardsWalkingIndex];