175 references to WindowsFormsUtils
System.Windows.Forms (175)
winforms\Managed\System\WinForms\ButtonBase.cs (8)
211if ((int)(align & WindowsFormsUtils.AnyLeftAlign) != 0) { 214else if ((int)(align & WindowsFormsUtils.AnyRightAlign) != 0) { 221if ((int)(align & WindowsFormsUtils.AnyTopAlign) != 0) { 224else if ((int)(align & WindowsFormsUtils.AnyBottomAlign) != 0) { 382if (!WindowsFormsUtils.EnumValidator.IsValidContentAlignment(value)) { 663if (!WindowsFormsUtils.EnumValidator.IsValidContentAlignment(value)) { 689if (!WindowsFormsUtils.EnumValidator.IsValidTextImageRelation(value)) { 828textToolTip.Show(WindowsFormsUtils.TextWithoutMnemonics(Text), this);
winforms\Managed\System\WinForms\ButtonInternal\ButtonBaseAdapter.cs (2)
56using (Graphics measurementGraphics = WindowsFormsUtils.CreateMeasurementGraphics()) { 1445using (Graphics g = WindowsFormsUtils.CreateMeasurementGraphics()) {
winforms\Managed\System\WinForms\ButtonInternal\CheckableControlBaseAdapter.cs (1)
39using (Graphics measurementGraphics = WindowsFormsUtils.CreateMeasurementGraphics()) {
winforms\Managed\System\WinForms\ButtonInternal\CheckBoxStandardAdapter.cs (2)
84using (Graphics measurementGraphics = WindowsFormsUtils.CreateMeasurementGraphics()) { 113using (Graphics g = WindowsFormsUtils.CreateMeasurementGraphics()) {
winforms\Managed\System\WinForms\ButtonInternal\RadioButtonStandardAdapter.cs (1)
74using (Graphics g = WindowsFormsUtils.CreateMeasurementGraphics()) {
winforms\Managed\System\WinForms\CheckBox.cs (1)
192if (!WindowsFormsUtils.EnumValidator.IsValidContentAlignment(value)) {
winforms\Managed\System\WinForms\ColumnHeader.cs (1)
270return WindowsFormsUtils.GetComponentName(this,name);
winforms\Managed\System\WinForms\ContextMenuStrip.cs (1)
110bounds = WindowsFormsUtils.ConstrainToBounds(screenBounds, bounds);
winforms\Managed\System\WinForms\Control.cs (13)
10373using (WindowsFormsUtils.DCMapping mapping = new WindowsFormsUtils.DCMapping(hDC, bounds)) { 10385using (WindowsFormsUtils.DCMapping clientMapping = new WindowsFormsUtils.DCMapping(hDC, clientBounds)) { 12384if ((align & WindowsFormsUtils.AnyTopAlign) != 0) { 12392if ((align & WindowsFormsUtils.AnyMiddleAlign) != 0 ) { 12401if ((align & WindowsFormsUtils.AnyBottomAlign) != 0 ) { 14932if (WindowsFormsUtils.SafeCompareStrings(controlsToLookIn[i].Name, key, /* ignoreCase = */ true)) { 14984if (WindowsFormsUtils.SafeCompareStrings(this[lastAccessedIndex].Name, key, /* ignoreCase = */ true)) { 14991if (WindowsFormsUtils.SafeCompareStrings(this[i].Name, key, /* ignoreCase = */ true)) { 16976char mnemonic = WindowsFormsUtils.GetMnemonic(control.Text, true); 19692char mnemonic = WindowsFormsUtils.GetMnemonic(this.TextLabel, false); 19712return WindowsFormsUtils.TextWithoutMnemonics(TextLabel);
winforms\Managed\System\WinForms\DataGridViewAdvancedBorderStyle.cs (1)
329return WindowsFormsUtils.GetCombinedHashCodes((int) this.top,
winforms\Managed\System\WinForms\DataGridViewCell.cs (6)
1783using (Graphics g = WindowsFormsUtils.CreateMeasurementGraphics()) 1831using (Graphics g = WindowsFormsUtils.CreateMeasurementGraphics()) 2574using( Graphics g = WindowsFormsUtils.CreateMeasurementGraphics()) 2587using (Graphics g = WindowsFormsUtils.CreateMeasurementGraphics()) 2631using (Graphics g = WindowsFormsUtils.CreateMeasurementGraphics()) 3147using (Graphics g = WindowsFormsUtils.CreateMeasurementGraphics())
winforms\Managed\System\WinForms\DataGridViewCellStyle.cs (1)
717return WindowsFormsUtils.GetCombinedHashCodes((int) this.Alignment,
winforms\Managed\System\WinForms\DataGridViewComboBoxCell.cs (2)
759using (Graphics g = WindowsFormsUtils.CreateMeasurementGraphics()) 2013using (Graphics g = WindowsFormsUtils.CreateMeasurementGraphics())
winforms\Managed\System\WinForms\DataGridViewHitTestInfo.cs (1)
128return WindowsFormsUtils.GetCombinedHashCodes((int) this.type,
winforms\Managed\System\WinForms\DataGridViewTextBoxCell.cs (1)
276using (Graphics g = WindowsFormsUtils.CreateMeasurementGraphics())
winforms\Managed\System\WinForms\DataObject.cs (2)
879if (WindowsFormsUtils.TargetsAtLeast_v4_5) { 1459if (WindowsFormsUtils.TargetsAtLeast_v4_5) {
winforms\Managed\System\WinForms\DateTimePicker.cs (2)
1764char previousLabelMnemonic = WindowsFormsUtils.GetMnemonic(previousLabel.Text, false /*convertToUpperCase*/); 1773char ownerTextMnemonic = WindowsFormsUtils.GetMnemonic(this.Owner.Text, false /*convertToUpperCase*/);
winforms\Managed\System\WinForms\Form.cs (2)
1750value = WindowsFormsUtils.ConstrainToScreenWorkingAreaBounds(bounds).Size; 5989adjustedBounds = WindowsFormsUtils.ConstrainToScreenWorkingAreaBounds(adjustedBounds);
winforms\Managed\System\WinForms\ImageList.cs (2)
1493(WindowsFormsUtils.SafeCompareStrings(((ImageInfo)imageInfoCollection[lastAccessedIndex]).Name, key, /* ignoreCase = */ true))) { 1501(WindowsFormsUtils.SafeCompareStrings(((ImageInfo)imageInfoCollection[i]).Name, key, /* ignoreCase = */ true))) {
winforms\Managed\System\WinForms\Label.cs (10)
660if (!WindowsFormsUtils.EnumValidator.IsValidContentAlignment(value)) { 886if (!WindowsFormsUtils.EnumValidator.IsValidContentAlignment(value)) { 1092if ((align & WindowsFormsUtils.AnyRightAlign) !=0) { 1095else if ((align & WindowsFormsUtils.AnyCenterAlign) != 0) { 1100if ((align & WindowsFormsUtils.AnyBottomAlign) != 0) { 1103else if ((align & WindowsFormsUtils.AnyTopAlign) != 0) { 1310using (Graphics measurementGraphics = WindowsFormsUtils.CreateMeasurementGraphics()) { 1404textToolTip.Show(WindowsFormsUtils.TextWithoutMnemonics(Text), this); 1622using (WindowsFormsUtils.DCMapping mapping = new WindowsFormsUtils.DCMapping(hDC, bounds)) {
winforms\Managed\System\WinForms\LinkLabel.cs (8)
507if ((align & WindowsFormsUtils.AnyRightAlign) != 0) { 509} else if ((align & WindowsFormsUtils.AnyCenterAlign) != 0) { 515if ((align & WindowsFormsUtils.AnyBottomAlign) != 0) { 517} else if ((align & WindowsFormsUtils.AnyMiddleAlign) != 0) { 2259if (WindowsFormsUtils.SafeCompareStrings(this[lastAccessedIndex].Name, key, /* ignoreCase = */ true)) { 2266if (WindowsFormsUtils.SafeCompareStrings(this[i].Name, key, /* ignoreCase = */ true)) { 2772name = WindowsFormsUtils.TextWithoutMnemonics(name); 2780name = WindowsFormsUtils.TextWithoutMnemonics(name);
winforms\Managed\System\WinForms\ListView.cs (10)
6861if (WindowsFormsUtils.SafeCompareStrings(this[lastAccessedIndex].Name, key, /* ignoreCase = */ true)) { 6868if (WindowsFormsUtils.SafeCompareStrings(this[i].Name, key, /* ignoreCase = */ true)) { 7653if (WindowsFormsUtils.SafeCompareStrings(this[lastAccessedIndex].Name, key, /* ignoreCase = */ true)) { 7660if (WindowsFormsUtils.SafeCompareStrings(this[i].Name, key, /* ignoreCase = */ true)) { 7816if (WindowsFormsUtils.SafeCompareStrings(this[lastAccessedIndex].Name, key, /* ignoreCase = */ true)) { 7823if (WindowsFormsUtils.SafeCompareStrings(this[i].Name, key, /* ignoreCase = */ true)) { 8613if (WindowsFormsUtils.SafeCompareStrings(listViewItems[i].Name, key, /* ignoreCase = */ true)) { 8620if (WindowsFormsUtils.SafeCompareStrings(listViewItems[i].SubItems[j].Name, key, /* ignoreCase = */ true)) { 8680if (WindowsFormsUtils.SafeCompareStrings(this[lastAccessedIndex].Name, key, /* ignoreCase = */ true)) { 8687if (WindowsFormsUtils.SafeCompareStrings(this[i].Name, key, /* ignoreCase = */ true)) {
winforms\Managed\System\WinForms\ListViewItem.cs (4)
917if (WindowsFormsUtils.SafeCompareStrings(toolTipText, value, false /*ignoreCase*/)) { 2048if (WindowsFormsUtils.SafeCompareStrings(this[lastAccessedIndex].Name, key, /* ignoreCase = */ true)) { 2055if (WindowsFormsUtils.SafeCompareStrings(this[i].Name, key, /* ignoreCase = */ true)) { 2172return new WindowsFormsUtils.ArraySubsetEnumerator(owner.subItems, owner.SubItemCount);
winforms\Managed\System\WinForms\MdiWindowListStrip.cs (1)
102string text = WindowsFormsUtils.EscapeTextWithAmpersands(mdiParent.MdiChildren[i].Text);
winforms\Managed\System\WinForms\Menu.cs (5)
148return WindowsFormsUtils.GetComponentName(this, name); 981if (WindowsFormsUtils.SafeCompareStrings(menuItemsToLookIn[i].Name, key, /* ignoreCase = */ true)) { 1039if (WindowsFormsUtils.SafeCompareStrings(this[lastAccessedIndex].Name, key, /* ignoreCase = */ true)) { 1046if (WindowsFormsUtils.SafeCompareStrings(this[i].Name, key, /* ignoreCase = */ true)) { 1116return new WindowsFormsUtils.ArraySubsetEnumerator(owner.items, owner.ItemCount);
winforms\Managed\System\WinForms\MenuItem.cs (1)
1638mnemonic = (short) WindowsFormsUtils.GetMnemonic(caption, true);
winforms\Managed\System\WinForms\MenuStrip.cs (2)
252UnsafeNativeMethods.PostMessage(WindowsFormsUtils.GetRootHWnd(this), NativeMethods.WM_SYSCOMMAND, NativeMethods.SC_KEYMENU, (int)Keys.Space); 271Point pt = PointToClient(WindowsFormsUtils.LastCursorPoint);
winforms\Managed\System\WinForms\MessageBox.cs (2)
424if (!WindowsFormsUtils.EnumValidator.IsEnumWithinShiftedRange(icon, /*numBitsToShift*/4, /*min*/0x0,/*max*/0x4)) { 428if (!WindowsFormsUtils.EnumValidator.IsEnumWithinShiftedRange(defaultButton, /*numBitsToShift*/8, /*min*/0x0,/*max*/0x2)) {
winforms\Managed\System\WinForms\Padding.cs (3)
221^ WindowsFormsUtils.RotateLeft(Top, 8) 222^ WindowsFormsUtils.RotateLeft(Right, 16) 223^ WindowsFormsUtils.RotateLeft(Bottom, 24);
winforms\Managed\System\WinForms\Panel.cs (2)
294using (WindowsFormsUtils.DCMapping mapping = new WindowsFormsUtils.DCMapping(hDC, bounds)) {
winforms\Managed\System\WinForms\ProfessionalColorTable.cs (1)
481using (Graphics g = WindowsFormsUtils.CreateMeasurementGraphics()) {
winforms\Managed\System\WinForms\RadioButton.cs (1)
187if (!WindowsFormsUtils.EnumValidator.IsValidContentAlignment(value)) {
winforms\Managed\System\WinForms\SplitContainer.cs (3)
160((WindowsFormsUtils.TypedControlCollection)this.Controls).AddInternal(panel1); 161((WindowsFormsUtils.TypedControlCollection)this.Controls).AddInternal(panel2); 2569internal class SplitContainerTypedControlCollection : WindowsFormsUtils.TypedControlCollection {
winforms\Managed\System\WinForms\StatusBar.cs (2)
1460if (WindowsFormsUtils.SafeCompareStrings(this[lastAccessedIndex].Name, key, /* ignoreCase = */ true)) { 1467if (WindowsFormsUtils.SafeCompareStrings(this[i].Name, key, /* ignoreCase = */ true)) {
winforms\Managed\System\WinForms\StatusBarPanel.cs (1)
288return WindowsFormsUtils.GetComponentName(this, name);
winforms\Managed\System\WinForms\StatusStrip.cs (6)
194HandleRef rootHwnd = WindowsFormsUtils.GetRootHWnd(this); 283WindowsFormsUtils.ReadOnlyControlCollection controlCollection = this.Controls as WindowsFormsUtils.ReadOnlyControlCollection; 292WindowsFormsUtils.ReadOnlyControlCollection controlCollection = this.Controls as WindowsFormsUtils.ReadOnlyControlCollection; 563HandleRef rootHwnd = WindowsFormsUtils.GetRootHWnd(this);
winforms\Managed\System\WinForms\TabControl.cs (2)
2519if (WindowsFormsUtils.SafeCompareStrings(this[lastAccessedIndex].Name, key, /* ignoreCase = */ true)) { 2526if (WindowsFormsUtils.SafeCompareStrings(this[i].Name, key, /* ignoreCase = */ true)) {
winforms\Managed\System\WinForms\TableLayoutPanelCellPosition.cs (1)
73return WindowsFormsUtils.GetCombinedHashCodes(
winforms\Managed\System\WinForms\TableLayoutSettings.cs (1)
540if (WindowsFormsUtils.SafeCompareStrings(name, controlName as string, /* ignoreCase = */ false)) {
winforms\Managed\System\WinForms\ToolBar.cs (3)
2065if (WindowsFormsUtils.SafeCompareStrings(this[lastAccessedIndex].Name, key, /* ignoreCase = */ true)) { 2072if (WindowsFormsUtils.SafeCompareStrings(this[i].Name, key, /* ignoreCase = */ true)) { 2169return new WindowsFormsUtils.ArraySubsetEnumerator(owner.buttons, owner.buttonCount);
winforms\Managed\System\WinForms\ToolBarButton.cs (2)
241return WindowsFormsUtils.GetComponentName(this, name); 407UpdateButton(WindowsFormsUtils.ContainsMnemonic(text), true, true);
winforms\Managed\System\WinForms\ToolStrip.cs (14)
2230if (!WindowsFormsUtils.EnumValidator.IsValidArrowDirection(direction)) { 2596return WindowsFormsUtils.CreateMeasurementGraphics(); 2758if (!WindowsFormsUtils.ContainsMnemonic(text)) { 4116Debug.WriteLineIf(SnapFocusDebug.TraceVerbose, "[ToolStrip RestoreFocus]: Will Restore Focus to: " + WindowsFormsUtils.GetControlInformation(hwndThatLostFocus)); 4224Point mousePosition = WindowsFormsUtils.LastCursorPoint; 4485mouseEnterWhenShown = WindowsFormsUtils.LastCursorPoint; 4539HandleRef thisHwndRoot = WindowsFormsUtils.GetRootHWnd(this); 4540HandleRef otherHwndRoot = WindowsFormsUtils.GetRootHWnd(otherHandle); 4543Debug.WriteLineIf(SnapFocusDebug.TraceVerbose, "[ToolStrip SnapFocus]: Caching for return focus:" + WindowsFormsUtils.GetControlInformation(otherHandle.Handle)); 4621cursorLocation = WindowsFormsUtils.ConstrainToScreenBounds(new Rectangle(cursorLocation, onePixel)).Location; 4719Point pt = PointToClient(WindowsFormsUtils.LastCursorPoint); 4731HandleRef rootHwnd = WindowsFormsUtils.GetRootHWnd(this); 4799return new WindowsFormsUtils.ReadOnlyControlCollection(this, /* isReadOnly = */ !DesignMode); 5166HandleRef rootHwnd = WindowsFormsUtils.GetRootHWnd(ownerToolStrip);
winforms\Managed\System\WinForms\ToolStripContainer.cs (1)
445internal class ToolStripContainerTypedControlCollection : WindowsFormsUtils.ReadOnlyControlCollection {
winforms\Managed\System\WinForms\ToolStripControlHost.cs (6)
144if (!WindowsFormsUtils.EnumValidator.IsValidContentAlignment(value)) { 850WindowsFormsUtils.ReadOnlyControlCollection oldControlCollection 972private static WindowsFormsUtils.ReadOnlyControlCollection GetControlCollection(ToolStrip toolStrip) { 973WindowsFormsUtils.ReadOnlyControlCollection newControls = 974toolStrip != null ? (WindowsFormsUtils.ReadOnlyControlCollection) toolStrip.Controls : null; 980WindowsFormsUtils.ReadOnlyControlCollection newControls = GetControlCollection(ParentInternal);
winforms\Managed\System\WinForms\ToolStripDropDown.cs (7)
1193adjustedBounds = WindowsFormsUtils.ConstrainToScreenWorkingAreaBounds(adjustedBounds); 1216dropDownBounds = WindowsFormsUtils.ConstrainToScreenWorkingAreaBounds(suggestedScreenBounds); 1219dropDownBounds = WindowsFormsUtils.ConstrainToScreenBounds(suggestedScreenBounds); 1267dropDownBounds = WindowsFormsUtils.ConstrainToScreenWorkingAreaBounds(dropDownBounds); 1454if (OwnerItem.Bounds.Contains(WindowsFormsUtils.TranslatePoint(mea.Location, this, OwnerToolStrip))) { 2149Debug.Fail("Why are we being activated when we're not visible? Deactivating thingee is " + WindowsFormsUtils.GetControlInformation(m.LParam)); 2153Debug.WriteLineIf(ToolStrip.SnapFocusDebug.TraceVerbose, "[ToolStripDropDown.WndProc] activating thingee is " + WindowsFormsUtils.GetControlInformation(m.LParam));
winforms\Managed\System\WinForms\ToolStripDropDownItem.cs (1)
343dropDownBounds = WindowsFormsUtils.ConstrainToScreenWorkingAreaBounds(dropDownBounds);
winforms\Managed\System\WinForms\ToolStripItem.cs (7)
1218if (!WindowsFormsUtils.EnumValidator.IsValidContentAlignment(value)) { 1711return WindowsFormsUtils.GetComponentName(this, (string)Properties.GetObject(ToolStripItem.PropName)); 2298if (!WindowsFormsUtils.EnumValidator.IsValidContentAlignment(value)) { 2366if (!WindowsFormsUtils.EnumValidator.IsValidTextImageRelation(value)) { 2390if (WindowsFormsUtils.ContainsMnemonic(toolText)) { 4125char mnemonic = WindowsFormsUtils.GetMnemonic(ownerItem.Text, false); 4209return WindowsFormsUtils.TextWithoutMnemonics(ownerItem.Text);
winforms\Managed\System\WinForms\ToolStripItemCollection.cs (3)
298if (WindowsFormsUtils.SafeCompareStrings(itemsToLookIn[i].Name, key, /* ignoreCase = */ true)) 396if (WindowsFormsUtils.SafeCompareStrings(this[lastAccessedIndex].Name, key, /* ignoreCase = */ true)) { 403if (WindowsFormsUtils.SafeCompareStrings(this[i].Name, key, /* ignoreCase = */ true)) {
winforms\Managed\System\WinForms\ToolStripManager.cs (9)
256return (WindowsFormsUtils.GetRootHWnd(control1).Handle == WindowsFormsUtils.GetRootHWnd(control2).Handle); 1167Debug.WriteLineIf(ToolStrip.SnapFocusDebug.TraceVerbose, "[ModalMenuFilter.SetActiveToolStripCore] Setting " + WindowsFormsUtils.GetControlInformation(toolStrip.Handle) + " active."); 1254Debug.WriteLineIf(ToolStrip.SnapFocusDebug.TraceVerbose, "[ModalMenuFilter.PreFilterMessage] Dismissing because: " + WindowsFormsUtils.GetControlInformation(hwndCurrentActiveWindow.Handle) + " has gotten activation. "); 1260Debug.WriteLineIf(ToolStrip.SnapFocusDebug.TraceVerbose, "[ModalMenuFilter.PreFilterMessage] Calling ProcessActivationChange because: " + WindowsFormsUtils.GetControlInformation(hwndCurrentActiveWindow.Handle) + " has gotten activation. "); 1641HandleRef rootWindowOfToolStrip = WindowsFormsUtils.GetRootHWnd(topMostToolStrip); 1642HandleRef rootWindowOfControl = WindowsFormsUtils.GetRootHWnd(activeControl); 1745HandleRef topmostParentOfMenu = WindowsFormsUtils.GetRootHWnd(menuStripToActivate); 1836if (WindowsFormsUtils.SafeCompareStrings(source.Text, candidateItem.Text, true)) {
winforms\Managed\System\WinForms\ToolStripPanel.cs (2)
1003Point currentCursorLoc = PointToClient(WindowsFormsUtils.LastCursorPoint); 1536internal class ToolStripPanelControlCollection : WindowsFormsUtils.TypedControlCollection {
winforms\Managed\System\WinForms\TreeNodeCollection.cs (4)
288if (WindowsFormsUtils.SafeCompareStrings(treeNodeCollectionToLookIn[i].Name, key, /* ignoreCase = */ true)) { 436if (WindowsFormsUtils.SafeCompareStrings(this[lastAccessedIndex].Name, key, /* ignoreCase = */ true)) { 443if (WindowsFormsUtils.SafeCompareStrings(this[i].Name, key, /* ignoreCase = */ true)) { 627return new WindowsFormsUtils.ArraySubsetEnumerator(owner.children, owner.childCount);