83 references to WindowsFormsUtils
System.Windows.Forms (83)
System\Windows\Forms\Accessibility\Control.ControlAccessibleObject.cs (2)
298char mnemonic = WindowsFormsUtils.GetMnemonic(TextLabel, false); 318return WindowsFormsUtils.TextWithoutMnemonics(TextLabel);
System\Windows\Forms\ActiveX\Control.ActiveXImpl.cs (2)
373pt = WindowsFormsUtils.TranslatePoint(pt, target, realTarget); 724char mnemonic = WindowsFormsUtils.GetMnemonic(control.Text, true);
System\Windows\Forms\ContextMenuStrip.cs (1)
108bounds = WindowsFormsUtils.ConstrainToBounds(screenBounds, bounds);
System\Windows\Forms\Control.ControlCollection.cs (3)
198if (WindowsFormsUtils.SafeCompareStrings(controlsToLookIn[i].Name, key, ignoreCase: true)) 248if (WindowsFormsUtils.SafeCompareStrings(this[_lastAccessedIndex].Name, key, /* ignoreCase = */ true)) 257if (WindowsFormsUtils.SafeCompareStrings(this[i].Name, key, /* ignoreCase = */ true))
System\Windows\Forms\Control.cs (3)
10856if ((align & WindowsFormsUtils.AnyTopAlign) != 0) 10867if ((align & WindowsFormsUtils.AnyMiddleAlign) != 0) 10878if ((align & WindowsFormsUtils.AnyBottomAlign) != 0)
System\Windows\Forms\Controls\Buttons\ButtonBase.ButtonBaseAccessibleObject.cs (4)
34if ((!useMnemonic || !WindowsFormsUtils.ContainsMnemonic(control.Text)) && previousLabel is not null && previousLabel.UseMnemonic) 36mnemonic = WindowsFormsUtils.GetMnemonic(previousLabel.Text, convertToUpperCase: false); 40mnemonic = WindowsFormsUtils.GetMnemonic(control.Text, convertToUpperCase: false); 64return owner.UseMnemonic ? WindowsFormsUtils.TextWithoutMnemonics(TextLabel) : TextLabel;
System\Windows\Forms\Controls\Buttons\ButtonBase.cs (5)
276if ((align & WindowsFormsUtils.AnyLeftAlign) != 0) 280else if ((align & WindowsFormsUtils.AnyRightAlign) != 0) 289if ((align & WindowsFormsUtils.AnyTopAlign) != 0) 293else if ((align & WindowsFormsUtils.AnyBottomAlign) != 0) 843_textToolTip.Show(WindowsFormsUtils.TextWithoutMnemonics(Text), this);
System\Windows\Forms\Controls\Buttons\RadioButton.RadioButtonAccessibleObject.cs (1)
71return owner.UseMnemonic ? WindowsFormsUtils.TextWithoutMnemonics(TextLabel) : TextLabel;
System\Windows\Forms\Controls\DataGridView\DataGridViewCell.cs (1)
2416if (WindowsFormsUtils.ContainsMnemonic(toolTipText))
System\Windows\Forms\Controls\DateTimePicker\DateTimePicker.DateTimePickerAccessibleObject.cs (1)
28char previousLabelMnemonic = WindowsFormsUtils.GetMnemonic(previousLabel.Text, convertToUpperCase: false);
System\Windows\Forms\Controls\ImageList\ImageList.ImageCollection.cs (2)
477(WindowsFormsUtils.SafeCompareStrings(_imageInfoCollection[i].Name, key, ignoreCase: true))) 487(WindowsFormsUtils.SafeCompareStrings(_imageInfoCollection[i].Name, key, ignoreCase: true)))
System\Windows\Forms\Controls\Labels\Label.cs (5)
885if ((align & WindowsFormsUtils.AnyRightAlign) != 0) 889else if ((align & WindowsFormsUtils.AnyCenterAlign) != 0) 894if ((align & WindowsFormsUtils.AnyBottomAlign) != 0) 898else if ((align & WindowsFormsUtils.AnyTopAlign) != 0) 1163_textToolTip.Show(WindowsFormsUtils.TextWithoutMnemonics(Text), this);
System\Windows\Forms\Controls\Labels\Label.LabelAccessibleObject.cs (1)
34return owner.UseMnemonic ? WindowsFormsUtils.TextWithoutMnemonics(TextLabel) : TextLabel;
System\Windows\Forms\Controls\Labels\LinkLabel.cs (4)
376if ((align & WindowsFormsUtils.AnyRightAlign) != 0) 380else if ((align & WindowsFormsUtils.AnyCenterAlign) != 0) 389if ((align & WindowsFormsUtils.AnyBottomAlign) != 0) 393else if ((align & WindowsFormsUtils.AnyMiddleAlign) != 0)
System\Windows\Forms\Controls\Labels\LinkLabel.Link.LinkAccessibleObject.cs (1)
120return _owningLinkLabel.UseMnemonic ? name = WindowsFormsUtils.TextWithoutMnemonics(name) : name;
System\Windows\Forms\Controls\Labels\LinkLabel.LinkCollection.cs (2)
268if (WindowsFormsUtils.SafeCompareStrings(this[_lastAccessedIndex].Name, key, /* ignoreCase = */ true)) 277if (WindowsFormsUtils.SafeCompareStrings(this[i].Name, key, /* ignoreCase = */ true))
System\Windows\Forms\Controls\ListView\ColumnHeader.cs (1)
274return WindowsFormsUtils.GetComponentName(this, _name);
System\Windows\Forms\Controls\ListView\ListView.CheckedListViewItemCollection.cs (2)
244if (WindowsFormsUtils.SafeCompareStrings(this[_lastAccessedIndex].Name, key, /* ignoreCase = */ true)) 253if (WindowsFormsUtils.SafeCompareStrings(this[i].Name, key, /* ignoreCase = */ true))
System\Windows\Forms\Controls\ListView\ListView.ColumnHeaderCollection.cs (2)
141if (WindowsFormsUtils.SafeCompareStrings(this[_lastAccessedIndex].Name, key, /* ignoreCase = */ true)) 150if (WindowsFormsUtils.SafeCompareStrings(this[i].Name, key, /* ignoreCase = */ true))
System\Windows\Forms\Controls\ListView\ListView.ListViewItemCollection.cs (4)
283if (WindowsFormsUtils.SafeCompareStrings(listViewItems[i].Name, key, ignoreCase: true)) 294if (WindowsFormsUtils.SafeCompareStrings(listViewItems[i].SubItems[j].Name, key, ignoreCase: true)) 346if (WindowsFormsUtils.SafeCompareStrings(this[_lastAccessedIndex].Name, key, /* ignoreCase = */ true)) 355if (WindowsFormsUtils.SafeCompareStrings(this[i].Name, key, /* ignoreCase = */ true))
System\Windows\Forms\Controls\ListView\ListView.SelectedListViewItemCollection.cs (2)
405if (WindowsFormsUtils.SafeCompareStrings(this[_lastAccessedIndex].Name, key, /* ignoreCase = */ true)) 414if (WindowsFormsUtils.SafeCompareStrings(this[i].Name, key, /* ignoreCase = */ true))
System\Windows\Forms\Controls\ListView\ListViewItem.cs (1)
835if (!WindowsFormsUtils.SafeCompareStrings(_toolTipText, value, ignoreCase: false))
System\Windows\Forms\Controls\ListView\ListViewItem.ListViewSubItemCollection.cs (2)
277if (WindowsFormsUtils.SafeCompareStrings(this[_lastAccessedIndex].Name, key, ignoreCase: true)) 285if (WindowsFormsUtils.SafeCompareStrings(this[i].Name, key, ignoreCase: true))
System\Windows\Forms\Controls\Menus\MenuStrip.cs (1)
255Point pt = PointToClient(WindowsFormsUtils.LastCursorPoint);
System\Windows\Forms\Controls\PropertyGrid\PropertyGrid.cs (1)
4112temp = WindowsFormsUtils.TranslatePoint(temp, child, this);
System\Windows\Forms\Controls\TabControl\TabControl.TabPageCollection.cs (2)
197if (WindowsFormsUtils.SafeCompareStrings(this[_lastAccessedIndex].Name, key, ignoreCase: true)) 206if (WindowsFormsUtils.SafeCompareStrings(this[i].Name, key, ignoreCase: true))
System\Windows\Forms\Controls\ToolStrips\ToolStrip.cs (5)
2662if (!WindowsFormsUtils.ContainsMnemonic(text)) 4231Point mousePosition = WindowsFormsUtils.LastCursorPoint; 4497_mouseEnterWhenShown = WindowsFormsUtils.LastCursorPoint; 4622cursorLocation = WindowsFormsUtils.ConstrainToScreenBounds(new Rectangle(cursorLocation, s_onePixel)).Location; 4707Point pt = PointToClient(WindowsFormsUtils.LastCursorPoint);
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDown.cs (5)
1099dropDownBounds = WindowsFormsUtils.ConstrainToScreenWorkingAreaBounds(suggestedScreenBounds); 1103dropDownBounds = WindowsFormsUtils.ConstrainToScreenBounds(suggestedScreenBounds); 1158dropDownBounds = WindowsFormsUtils.ConstrainToScreenWorkingAreaBounds(dropDownBounds); 1335if (OwnerItem.Bounds.Contains(WindowsFormsUtils.TranslatePoint(mea.Location, this, OwnerToolStrip))) 2059Debug.Fail($"Why are we being activated when we're not visible? Deactivating thing is {WindowsFormsUtils.GetControlInformation((HWND)(nint)m.LParamInternal)}");
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDownItem.cs (1)
337dropDownBounds = WindowsFormsUtils.ConstrainToScreenWorkingAreaBounds(dropDownBounds);
System\Windows\Forms\Controls\ToolStrips\ToolStripItem.cs (2)
1394get => WindowsFormsUtils.GetComponentName(this, (string?)Properties.GetObject(s_nameProperty)); 1987if (WindowsFormsUtils.ContainsMnemonic(toolText))
System\Windows\Forms\Controls\ToolStrips\ToolStripItem.ToolStripItemAccessibleObject.cs (2)
76char mnemonic = WindowsFormsUtils.GetMnemonic(_ownerItem.Text, false); 132return WindowsFormsUtils.TextWithoutMnemonics(_ownerItem.Text)!;
System\Windows\Forms\Controls\ToolStrips\ToolStripItemCollection.cs (3)
259if (WindowsFormsUtils.SafeCompareStrings(itemsToLookIn[i].Name, key, ignoreCase: true)) 346if (WindowsFormsUtils.SafeCompareStrings(this[_lastAccessedIndex].Name, key, /* ignoreCase = */ true)) 355if (WindowsFormsUtils.SafeCompareStrings(this[i].Name, key, /* ignoreCase = */ true))
System\Windows\Forms\Controls\ToolStrips\ToolStripManager.cs (1)
1042if (WindowsFormsUtils.SafeCompareStrings(source.Text, candidateItem.Text, true))
System\Windows\Forms\Controls\ToolStrips\ToolStripPanel.cs (1)
822Point currentCursorLoc = PointToClient(WindowsFormsUtils.LastCursorPoint);
System\Windows\Forms\Controls\TreeView\TreeNodeCollection.cs (3)
265if (WindowsFormsUtils.SafeCompareStrings(treeNodeCollectionToLookIn[i].Name, key, ignoreCase: true)) 411if (WindowsFormsUtils.SafeCompareStrings(this[_lastAccessedIndex].Name, key, ignoreCase: true)) 420if (WindowsFormsUtils.SafeCompareStrings(this[i].Name, key, ignoreCase: true))
System\Windows\Forms\Controls\UpDown\UpDownBase.cs (1)
910point = WindowsFormsUtils.TranslatePoint(point, child, this);
System\Windows\Forms\Form.cs (1)
1373value = WindowsFormsUtils.ConstrainToScreenWorkingAreaBounds(bounds).Size;
System\Windows\Forms\MDI\MdiWindowListStrip.cs (1)
111string? text = WindowsFormsUtils.EscapeTextWithAmpersands(mdiParent.MdiChildren[i].Text);
System\Windows\Forms\Panels\TableLayoutPanel\TableLayoutSettings.TableLayoutSettingsStub.cs (1)
55if (WindowsFormsUtils.SafeCompareStrings(name, controlName as string, ignoreCase: false))