83 references to WindowsFormsUtils
System.Windows.Forms (83)
System\Windows\Forms\Accessibility\Control.ControlAccessibleObject.cs (2)
298
char mnemonic =
WindowsFormsUtils
.GetMnemonic(TextLabel, false);
318
return
WindowsFormsUtils
.TextWithoutMnemonics(TextLabel);
System\Windows\Forms\ActiveX\Control.ActiveXImpl.cs (2)
370
pt =
WindowsFormsUtils
.TranslatePoint(pt, target, realTarget);
721
char mnemonic =
WindowsFormsUtils
.GetMnemonic(control.Text, true);
System\Windows\Forms\ContextMenuStrip.cs (1)
108
bounds =
WindowsFormsUtils
.ConstrainToBounds(screenBounds, bounds);
System\Windows\Forms\Control.ControlCollection.cs (3)
198
if (
WindowsFormsUtils
.SafeCompareStrings(controlsToLookIn[i].Name, key, ignoreCase: true))
248
if (
WindowsFormsUtils
.SafeCompareStrings(this[_lastAccessedIndex].Name, key, /* ignoreCase = */ true))
257
if (
WindowsFormsUtils
.SafeCompareStrings(this[i].Name, key, /* ignoreCase = */ true))
System\Windows\Forms\Control.cs (3)
10536
if ((align &
WindowsFormsUtils
.AnyTopAlign) != 0)
10547
if ((align &
WindowsFormsUtils
.AnyMiddleAlign) != 0)
10558
if ((align &
WindowsFormsUtils
.AnyBottomAlign) != 0)
System\Windows\Forms\Controls\Buttons\ButtonBase.ButtonBaseAccessibleObject.cs (4)
34
if ((!useMnemonic || !
WindowsFormsUtils
.ContainsMnemonic(control.Text)) && previousLabel is not null && previousLabel.UseMnemonic)
36
mnemonic =
WindowsFormsUtils
.GetMnemonic(previousLabel.Text, convertToUpperCase: false);
40
mnemonic =
WindowsFormsUtils
.GetMnemonic(control.Text, convertToUpperCase: false);
64
return owner.UseMnemonic ?
WindowsFormsUtils
.TextWithoutMnemonics(TextLabel) : TextLabel;
System\Windows\Forms\Controls\Buttons\ButtonBase.cs (5)
276
if ((align &
WindowsFormsUtils
.AnyLeftAlign) != 0)
280
else if ((align &
WindowsFormsUtils
.AnyRightAlign) != 0)
289
if ((align &
WindowsFormsUtils
.AnyTopAlign) != 0)
293
else if ((align &
WindowsFormsUtils
.AnyBottomAlign) != 0)
843
_textToolTip.Show(
WindowsFormsUtils
.TextWithoutMnemonics(Text), this);
System\Windows\Forms\Controls\Buttons\RadioButton.RadioButtonAccessibleObject.cs (1)
71
return owner.UseMnemonic ?
WindowsFormsUtils
.TextWithoutMnemonics(TextLabel) : TextLabel;
System\Windows\Forms\Controls\DataGridView\DataGridViewCell.cs (1)
2402
if (
WindowsFormsUtils
.ContainsMnemonic(toolTipText))
System\Windows\Forms\Controls\DateTimePicker\DateTimePicker.DateTimePickerAccessibleObject.cs (1)
28
char 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)
880
if ((align &
WindowsFormsUtils
.AnyRightAlign) != 0)
884
else if ((align &
WindowsFormsUtils
.AnyCenterAlign) != 0)
889
if ((align &
WindowsFormsUtils
.AnyBottomAlign) != 0)
893
else if ((align &
WindowsFormsUtils
.AnyTopAlign) != 0)
1155
_textToolTip.Show(
WindowsFormsUtils
.TextWithoutMnemonics(Text), this);
System\Windows\Forms\Controls\Labels\Label.LabelAccessibleObject.cs (1)
34
return owner.UseMnemonic ?
WindowsFormsUtils
.TextWithoutMnemonics(TextLabel) : TextLabel;
System\Windows\Forms\Controls\Labels\LinkLabel.cs (4)
376
if ((align &
WindowsFormsUtils
.AnyRightAlign) != 0)
380
else if ((align &
WindowsFormsUtils
.AnyCenterAlign) != 0)
389
if ((align &
WindowsFormsUtils
.AnyBottomAlign) != 0)
393
else if ((align &
WindowsFormsUtils
.AnyMiddleAlign) != 0)
System\Windows\Forms\Controls\Labels\LinkLabel.Link.LinkAccessibleObject.cs (1)
120
return _owningLinkLabel.UseMnemonic ? name =
WindowsFormsUtils
.TextWithoutMnemonics(name) : name;
System\Windows\Forms\Controls\Labels\LinkLabel.LinkCollection.cs (2)
268
if (
WindowsFormsUtils
.SafeCompareStrings(this[_lastAccessedIndex].Name, key, /* ignoreCase = */ true))
277
if (
WindowsFormsUtils
.SafeCompareStrings(this[i].Name, key, /* ignoreCase = */ true))
System\Windows\Forms\Controls\ListView\ColumnHeader.cs (1)
274
return
WindowsFormsUtils
.GetComponentName(this, _name);
System\Windows\Forms\Controls\ListView\ListView.CheckedListViewItemCollection.cs (2)
244
if (
WindowsFormsUtils
.SafeCompareStrings(this[_lastAccessedIndex].Name, key, /* ignoreCase = */ true))
253
if (
WindowsFormsUtils
.SafeCompareStrings(this[i].Name, key, /* ignoreCase = */ true))
System\Windows\Forms\Controls\ListView\ListView.ColumnHeaderCollection.cs (2)
141
if (
WindowsFormsUtils
.SafeCompareStrings(this[_lastAccessedIndex].Name, key, /* ignoreCase = */ true))
150
if (
WindowsFormsUtils
.SafeCompareStrings(this[i].Name, key, /* ignoreCase = */ true))
System\Windows\Forms\Controls\ListView\ListView.ListViewItemCollection.cs (4)
283
if (
WindowsFormsUtils
.SafeCompareStrings(listViewItems[i].Name, key, ignoreCase: true))
294
if (
WindowsFormsUtils
.SafeCompareStrings(listViewItems[i].SubItems[j].Name, key, ignoreCase: true))
346
if (
WindowsFormsUtils
.SafeCompareStrings(this[_lastAccessedIndex].Name, key, /* ignoreCase = */ true))
355
if (
WindowsFormsUtils
.SafeCompareStrings(this[i].Name, key, /* ignoreCase = */ true))
System\Windows\Forms\Controls\ListView\ListView.SelectedListViewItemCollection.cs (2)
405
if (
WindowsFormsUtils
.SafeCompareStrings(this[_lastAccessedIndex].Name, key, /* ignoreCase = */ true))
414
if (
WindowsFormsUtils
.SafeCompareStrings(this[i].Name, key, /* ignoreCase = */ true))
System\Windows\Forms\Controls\ListView\ListViewItem.cs (1)
835
if (!
WindowsFormsUtils
.SafeCompareStrings(_toolTipText, value, ignoreCase: false))
System\Windows\Forms\Controls\ListView\ListViewItem.ListViewSubItemCollection.cs (2)
277
if (
WindowsFormsUtils
.SafeCompareStrings(this[_lastAccessedIndex].Name, key, ignoreCase: true))
285
if (
WindowsFormsUtils
.SafeCompareStrings(this[i].Name, key, ignoreCase: true))
System\Windows\Forms\Controls\Menus\MenuStrip.cs (1)
255
Point pt = PointToClient(
WindowsFormsUtils
.LastCursorPoint);
System\Windows\Forms\Controls\PropertyGrid\PropertyGrid.cs (1)
4112
temp =
WindowsFormsUtils
.TranslatePoint(temp, child, this);
System\Windows\Forms\Controls\TabControl\TabControl.TabPageCollection.cs (2)
197
if (
WindowsFormsUtils
.SafeCompareStrings(this[_lastAccessedIndex].Name, key, ignoreCase: true))
206
if (
WindowsFormsUtils
.SafeCompareStrings(this[i].Name, key, ignoreCase: true))
System\Windows\Forms\Controls\ToolStrips\ToolStrip.cs (5)
2564
if (!
WindowsFormsUtils
.ContainsMnemonic(text))
4120
Point mousePosition =
WindowsFormsUtils
.LastCursorPoint;
4386
_mouseEnterWhenShown =
WindowsFormsUtils
.LastCursorPoint;
4510
cursorLocation =
WindowsFormsUtils
.ConstrainToScreenBounds(new Rectangle(cursorLocation, s_onePixel)).Location;
4593
Point pt = PointToClient(
WindowsFormsUtils
.LastCursorPoint);
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDown.cs (5)
999
?
WindowsFormsUtils
.ConstrainToScreenWorkingAreaBounds(suggestedScreenBounds)
1000
:
WindowsFormsUtils
.ConstrainToScreenBounds(suggestedScreenBounds);
1049
dropDownBounds =
WindowsFormsUtils
.ConstrainToScreenWorkingAreaBounds(dropDownBounds);
1218
if (OwnerItem.Bounds.Contains(
WindowsFormsUtils
.TranslatePoint(mea.Location, this, OwnerToolStrip)))
1922
Debug.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)
337
dropDownBounds =
WindowsFormsUtils
.ConstrainToScreenWorkingAreaBounds(dropDownBounds);
System\Windows\Forms\Controls\ToolStrips\ToolStripItem.cs (2)
1386
get =>
WindowsFormsUtils
.GetComponentName(this, Properties.GetValueOrDefault<string>(s_nameProperty));
1971
if (
WindowsFormsUtils
.ContainsMnemonic(toolText))
System\Windows\Forms\Controls\ToolStrips\ToolStripItem.ToolStripItemAccessibleObject.cs (2)
76
char mnemonic =
WindowsFormsUtils
.GetMnemonic(_ownerItem.Text, false);
132
return
WindowsFormsUtils
.TextWithoutMnemonics(_ownerItem.Text)!;
System\Windows\Forms\Controls\ToolStrips\ToolStripItemCollection.cs (3)
259
if (
WindowsFormsUtils
.SafeCompareStrings(itemsToLookIn[i].Name, key, ignoreCase: true))
346
if (
WindowsFormsUtils
.SafeCompareStrings(this[_lastAccessedIndex].Name, key, /* ignoreCase = */ true))
355
if (
WindowsFormsUtils
.SafeCompareStrings(this[i].Name, key, /* ignoreCase = */ true))
System\Windows\Forms\Controls\ToolStrips\ToolStripManager.cs (1)
1042
if (
WindowsFormsUtils
.SafeCompareStrings(source.Text, candidateItem.Text, true))
System\Windows\Forms\Controls\ToolStrips\ToolStripPanel.cs (1)
819
Point currentCursorLoc = PointToClient(
WindowsFormsUtils
.LastCursorPoint);
System\Windows\Forms\Controls\TreeView\TreeNodeCollection.cs (3)
265
if (
WindowsFormsUtils
.SafeCompareStrings(treeNodeCollectionToLookIn[i].Name, key, ignoreCase: true))
411
if (
WindowsFormsUtils
.SafeCompareStrings(this[_lastAccessedIndex].Name, key, ignoreCase: true))
420
if (
WindowsFormsUtils
.SafeCompareStrings(this[i].Name, key, ignoreCase: true))
System\Windows\Forms\Controls\UpDown\UpDownBase.cs (1)
910
point =
WindowsFormsUtils
.TranslatePoint(point, child, this);
System\Windows\Forms\Form.cs (1)
1318
value =
WindowsFormsUtils
.ConstrainToScreenWorkingAreaBounds(bounds).Size;
System\Windows\Forms\MDI\MdiWindowListStrip.cs (1)
111
string? text =
WindowsFormsUtils
.EscapeTextWithAmpersands(mdiParent.MdiChildren[i].Text);
System\Windows\Forms\Panels\TableLayoutPanel\TableLayoutSettings.TableLayoutSettingsStub.cs (1)
55
if (
WindowsFormsUtils
.SafeCompareStrings(name, controlName as string, ignoreCase: false))