203 references to Default
System.Windows.Forms (11)
System\Windows\Forms\Control.cs (2)
1475
return localDefault != Cursors.
Default
1553
protected virtual Cursor DefaultCursor => Cursors.
Default
;
System\Windows\Forms\Controls\DataGridView\DataGridViewComboBoxEditingControl.cs (1)
68
public virtual Cursor EditingPanelCursor => Cursors.
Default
;
System\Windows\Forms\Controls\DataGridView\DataGridViewTextBoxEditingControl.cs (1)
84
return Cursors.
Default
;
System\Windows\Forms\Controls\PropertyGrid\PropertyGrid.SnappableControl.cs (1)
27
get => Cursors.
Default
;
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\HelpPane.cs (2)
40
Cursor = Cursors.
Default
46
Cursor = Cursors.
Default
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.cs (2)
3009
Cursor = Cursors.
Default
;
3101
Cursor = Cursors.
Default
;
System\Windows\Forms\Input\CursorConverter.cs (1)
97
return nameof(Cursors.
Default
);
System\Windows\Forms\Input\Cursors.cs (1)
43
public static Cursor Default => s_defaultCursor ??= new(PInvoke.IDC_ARROW, nameof(
Default
));
System.Windows.Forms.Design (38)
System\Drawing\Design\CursorEditor.CursorUI.cs (1)
23
ItemHeight = Math.Max(4 + Cursors.
Default
.Size.Height, Font.Height);
System\Windows\Forms\Design\Behavior\Behavior.cs (1)
43
public virtual Cursor Cursor => Cursors.
Default
;
System\Windows\Forms\Design\Behavior\BehaviorService.cs (2)
521
Cursor cursor = Cursors.
Default
;
584
if (cursor == Cursors.
Default
)
System\Windows\Forms\Design\Behavior\DesignerActionGlyph.cs (1)
92
return Cursors.
Default
;
System\Windows\Forms\Design\Behavior\DropSourceBehavior.cs (1)
630
Cursor.Current = Cursors.
Default
;
System\Windows\Forms\Design\Behavior\GrabHandleGlyph.cs (1)
26
hitTestCursor = Cursors.
Default
;
System\Windows\Forms\Design\Behavior\LockedBorderGlyph.cs (1)
29
hitTestCursor = Cursors.
Default
; // always default cursor for locked
System\Windows\Forms\Design\Behavior\LockedHandleGlyph.cs (1)
24
hitTestCursor = Cursors.
Default
;
System\Windows\Forms\Design\Behavior\MiniLockedBorderGlyph.cs (1)
37
hitTestCursor = Cursors.
Default
; // always default cursor for locked
System\Windows\Forms\Design\Behavior\NoResizeHandleGlyph.cs (1)
25
hitTestCursor = Cursors.
Default
;
System\Windows\Forms\Design\Behavior\NoResizeSelectionBorderGlyph.cs (1)
28
hitTestCursor = Cursors.
Default
;
System\Windows\Forms\Design\Behavior\ResizeBehavior.cs (1)
46
private Cursor _cursor = Cursors.
Default
; // used to set the correct cursor during resizing
System\Windows\Forms\Design\Behavior\SelectionBorderGlyph.cs (1)
28
hitTestCursor = Cursors.
Default
;
System\Windows\Forms\Design\CommandSet.cs (1)
697
Cursor.Current = Cursors.
Default
;
System\Windows\Forms\Design\ComponentTray.cs (5)
1496
Cursor.Current = Cursors.
Default
;
2379
Cursor.Current = Cursors.
Default
;
2386
Cursor.Current = Cursors.
Default
;
2393
Cursor.Current = Cursors.
Default
;
2399
Cursor.Current = Cursors.
Default
;
System\Windows\Forms\Design\ControlDesigner.cs (4)
709
cursor = Cursors.
Default
;
1579
Cursor.Current = Cursors.
Default
;
1604
Cursor.Current = Cursors.
Default
;
1610
Cursor.Current = Cursors.
Default
;
System\Windows\Forms\Design\ParentControlDesigner.cs (2)
2072
Cursor.Current = Cursors.
Default
;
2078
Cursor.Current = Cursors.
Default
;
System\Windows\Forms\Design\SelectionUIService.cs (3)
701
Cursor = Cursors.
Default
;
803
Cursor = cursor == Cursors.
Default
? null : cursor;
815
Cursor = cursor == Cursors.
Default
? null : cursor;
System\Windows\Forms\Design\SelectionUIService.SelectionUIItem.cs (1)
204
cursor = Cursors.
Default
;
System\Windows\Forms\Design\TabOrder.cs (1)
639
=> Cursor.Current = _ctlHover is not null ? Cursors.Cross : Cursors.
Default
;
System\Windows\Forms\Design\ToolStripDesigner.cs (1)
2134
Cursor.Current = Cursors.
Default
;
System\Windows\Forms\Design\ToolStripItemGlyph.cs (2)
14
public ToolStripItemGlyph(ToolStripItem item, ToolStripItemDesigner itemDesigner, Rectangle bounds, Behavior.Behavior? b) : base(bounds, Cursors.
Default
, item, b)
33
return Cursors.
Default
;
System\Windows\Forms\Design\ToolStripMenuItemDesigner.cs (1)
2631
return Cursors.
Default
;
System\Windows\Forms\Design\ToolStripPanelDesigner.cs (2)
259
_containerSelectorGlyph = new ToolStripPanelSelectionGlyph(Rectangle.Empty, Cursors.
Default
, Control, Component.Site, _behavior);
290
_containerSelectorGlyph = new ToolStripPanelSelectionGlyph(Rectangle.Empty, Cursors.
Default
, Control, Component.Site, _behavior);
System\Windows\Forms\Design\ToolStripTemplateNode.cs (1)
1489
_miniToolStrip.Cursor = Cursors.
Default
;
System.Windows.Forms.Design.Tests (4)
ControlDesignerTests.cs (1)
37
Assert.Equal(Cursors.
Default
, controlDesigner.StandardBehavior.Cursor);
System\ComponentModel\Design\ByteViewerTests.cs (2)
56
Assert.Equal(Cursors.
Default
, control.Cursor);
57
Assert.Equal(Cursors.
Default
, control.DefaultCursor);
System\Drawing\Design\CursorEditorTests.cs (1)
24
yield return new object[] { Cursors.
Default
};
System.Windows.Forms.Tests (148)
System\Windows\Forms\AxHostTests.cs (16)
58
Assert.Same(Cursors.
Default
, control.Cursor);
59
Assert.Same(Cursors.
Default
, control.DefaultCursor);
152
Assert.Same(Cursors.
Default
, control.Cursor);
153
Assert.Same(Cursors.
Default
, control.DefaultCursor);
440
Assert.Same(value ?? Cursors.
Default
, control.Cursor);
444
Assert.Same(value ?? Cursors.
Default
, control.Cursor);
455
Assert.Same(value ?? Cursors.
Default
, control.Cursor);
459
Assert.Same(value ?? Cursors.
Default
, control.Cursor);
473
Assert.Same(value ?? Cursors.
Default
, control.Cursor);
474
Assert.Same(value ?? Cursors.
Default
, child1.Cursor);
475
Assert.Same(value ?? Cursors.
Default
, child2.Cursor);
479
Assert.Same(value ?? Cursors.
Default
, control.Cursor);
480
Assert.Same(value ?? Cursors.
Default
, child1.Cursor);
481
Assert.Same(value ?? Cursors.
Default
, child2.Cursor);
503
Assert.Same(value ?? Cursors.
Default
, control.Cursor);
509
Assert.Same(value ?? Cursors.
Default
, control.Cursor);
System\Windows\Forms\ButtonBaseTests.cs (2)
49
Assert.Same(Cursors.
Default
, control.Cursor);
50
Assert.Same(Cursors.
Default
, control.DefaultCursor);
System\Windows\Forms\ButtonTests.cs (2)
51
Assert.Same(Cursors.
Default
, control.Cursor);
52
Assert.Same(Cursors.
Default
, control.DefaultCursor);
System\Windows\Forms\CheckBoxTests.cs (2)
53
Assert.Same(Cursors.
Default
, control.Cursor);
54
Assert.Same(Cursors.
Default
, control.DefaultCursor);
System\Windows\Forms\ComboBoxTests.cs (2)
54
Assert.Same(Cursors.
Default
, control.Cursor);
57
Assert.Same(Cursors.
Default
, control.DefaultCursor);
System\Windows\Forms\ContainerControlTests.cs (2)
57
Assert.Equal(Cursors.
Default
, control.Cursor);
58
Assert.Equal(Cursors.
Default
, control.DefaultCursor);
System\Windows\Forms\ControlTests.cs (10)
44
Assert.Same(Cursors.
Default
, control.Cursor);
45
Assert.Same(Cursors.
Default
, control.DefaultCursor);
133
Assert.Same(Cursors.
Default
, control.Cursor);
134
Assert.Same(Cursors.
Default
, control.DefaultCursor);
229
Assert.Same(Cursors.
Default
, control.Cursor);
230
Assert.Same(Cursors.
Default
, control.DefaultCursor);
325
Assert.Same(Cursors.
Default
, control.Cursor);
326
Assert.Same(Cursors.
Default
, control.DefaultCursor);
421
Assert.Same(Cursors.
Default
, control.Cursor);
422
Assert.Same(Cursors.
Default
, control.DefaultCursor);
System\Windows\Forms\ControlTests.Properties.cs (18)
3812
Assert.Same(value ?? Cursors.
Default
, control.Cursor);
3817
Assert.Same(value ?? Cursors.
Default
, control.Cursor);
3835
Assert.Same(value ?? Cursors.
Default
, control.Cursor);
3843
Assert.Same(value ?? Cursors.
Default
, control.Cursor);
3861
Assert.Same(value ?? Cursors.
Default
, control.Cursor);
3862
Assert.Same(value ?? Cursors.
Default
, child1.Cursor);
3863
Assert.Same(value ?? Cursors.
Default
, child2.Cursor);
3867
Assert.Same(value ?? Cursors.
Default
, control.Cursor);
3868
Assert.Same(value ?? Cursors.
Default
, child1.Cursor);
3869
Assert.Same(value ?? Cursors.
Default
, child2.Cursor);
3891
Assert.Same(value ?? Cursors.
Default
, control.Cursor);
3897
Assert.Same(value ?? Cursors.
Default
, control.Cursor);
3934
Assert.Same(Cursors.
Default
, control.Cursor);
4009
Assert.Same(Cursors.
Default
, control.Cursor);
4010
Assert.Same(Cursors.
Default
, child1.Cursor);
4011
Assert.Same(Cursors.
Default
, child2.Cursor);
4102
Assert.Same(Cursors.
Default
, control.Cursor);
10876
Assert.Same(Cursors.
Default
, control.Cursor);
System\Windows\Forms\CursorConverterTests.cs (3)
199
Assert.Contains(Cursors.
Default
, values);
238
string converted = (string)converter.ConvertTo(new Cursor(Cursors.
Default
.Handle), typeof(string));
239
converted.Should().Be(nameof(Cursors.
Default
));
System\Windows\Forms\CursorsTests.cs (1)
20
yield return new object[] { I(() => Cursors.
Default
) };
System\Windows\Forms\CursorTests.cs (6)
368
yield return new object[] { new Rectangle(0, 0, Cursors.
Default
.Size.Width, Cursors.
Default
.Size.Height) };
369
yield return new object[] { new Rectangle(1, 0, Cursors.
Default
.Size.Width, Cursors.
Default
.Size.Height) };
370
yield return new object[] { new Rectangle(0, 2, 3, Cursors.
Default
.Size.Height) };
371
yield return new object[] { new Rectangle(0, 0, Cursors.
Default
.Size.Width, 4) };
System\Windows\Forms\DataGridViewTextBoxEditingControlTests.cs (1)
71
Assert.Same(Cursors.
Default
, control.EditingPanelCursor);
System\Windows\Forms\DateTimePickerTests.cs (2)
58
Assert.Same(Cursors.
Default
, control.Cursor);
60
Assert.Same(Cursors.
Default
, control.DefaultCursor);
System\Windows\Forms\Design\ComponentEditorFormTests.cs (2)
67
Assert.Equal(Cursors.
Default
, control.Cursor);
68
Assert.Equal(Cursors.
Default
, control.DefaultCursor);
System\Windows\Forms\Design\ComponentEditorPageTests.cs (2)
53
Assert.Same(Cursors.
Default
, control.Cursor);
54
Assert.Same(Cursors.
Default
, control.DefaultCursor);
System\Windows\Forms\DomainUpDownTests.cs (2)
77
_sub.Cursor.Should().Be(Cursors.
Default
);
78
_sub.DefaultCursor.Should().Be(Cursors.
Default
);
System\Windows\Forms\FlowLayoutPanelTests.cs (2)
50
Assert.Same(Cursors.
Default
, control.Cursor);
51
Assert.Same(Cursors.
Default
, control.DefaultCursor);
System\Windows\Forms\FormTests.cs (2)
66
Assert.Equal(Cursors.
Default
, control.Cursor);
67
Assert.Equal(Cursors.
Default
, control.DefaultCursor);
System\Windows\Forms\GroupBoxTests.cs (2)
47
Assert.Same(Cursors.
Default
, control.Cursor);
48
Assert.Same(Cursors.
Default
, control.DefaultCursor);
System\Windows\Forms\HScrollBarTests.cs (2)
51
Assert.Same(Cursors.
Default
, control.Cursor);
52
Assert.Same(Cursors.
Default
, control.DefaultCursor);
System\Windows\Forms\LabelTests.cs (2)
47
Assert.Same(Cursors.
Default
, control.Cursor);
48
Assert.Same(Cursors.
Default
, control.DefaultCursor);
System\Windows\Forms\ListBoxTests.cs (2)
49
Assert.Same(Cursors.
Default
, control.Cursor);
54
Assert.Same(Cursors.
Default
, control.DefaultCursor);
System\Windows\Forms\ListControlTests.cs (2)
48
Assert.Same(Cursors.
Default
, control.Cursor);
51
Assert.Same(Cursors.
Default
, control.DefaultCursor);
System\Windows\Forms\ListViewTests.cs (2)
62
Assert.Equal(Cursors.
Default
, control.Cursor);
63
Assert.Same(Cursors.
Default
, control.DefaultCursor);
System\Windows\Forms\MdiClientTests.cs (1)
45
Assert.Same(Cursors.
Default
, control.Cursor);
System\Windows\Forms\MdiControlStripTests.cs (2)
53
Assert.Same(Cursors.
Default
, mdiControlStrip.Cursor);
54
Assert.Same(Cursors.
Default
, mdiControlStrip.DefaultCursor);
System\Windows\Forms\MenuStripTests.cs (2)
51
Assert.Same(Cursors.
Default
, control.Cursor);
52
Assert.Same(Cursors.
Default
, control.DefaultCursor);
System\Windows\Forms\MonthCalendarTests.cs (2)
60
Assert.Same(Cursors.
Default
, control.Cursor);
61
Assert.Same(Cursors.
Default
, control.DefaultCursor);
System\Windows\Forms\PanelTests.cs (2)
51
Assert.Equal(Cursors.
Default
, control.Cursor);
52
Assert.Equal(Cursors.
Default
, control.DefaultCursor);
System\Windows\Forms\PictureBoxTests.cs (2)
50
Assert.Same(Cursors.
Default
, control.Cursor);
51
Assert.Same(Cursors.
Default
, control.DefaultCursor);
System\Windows\Forms\ProgressBarTests.cs (2)
46
Assert.Same(Cursors.
Default
, control.Cursor);
47
Assert.Same(Cursors.
Default
, control.DefaultCursor);
System\Windows\Forms\PropertyGridTests.cs (2)
77
Assert.Equal(Cursors.
Default
, control.Cursor);
78
Assert.Equal(Cursors.
Default
, control.DefaultCursor);
System\Windows\Forms\RadioButtonTests.cs (2)
52
Assert.Same(Cursors.
Default
, control.Cursor);
53
Assert.Same(Cursors.
Default
, control.DefaultCursor);
System\Windows\Forms\ScrollableControlTests.cs (2)
50
Assert.Same(Cursors.
Default
, control.Cursor);
51
Assert.Same(Cursors.
Default
, control.DefaultCursor);
System\Windows\Forms\ScrollBarTests.cs (2)
45
Assert.Same(Cursors.
Default
, control.Cursor);
46
Assert.Same(Cursors.
Default
, control.DefaultCursor);
System\Windows\Forms\SplitterPanelTests.cs (1)
55
Assert.Equal(Cursors.
Default
, control.Cursor);
System\Windows\Forms\StatusStripTests.cs (2)
51
Assert.Same(Cursors.
Default
, control.Cursor);
52
Assert.Same(Cursors.
Default
, control.DefaultCursor);
System\Windows\Forms\TabControlTests.cs (2)
48
Assert.Same(Cursors.
Default
, control.Cursor);
49
Assert.Same(Cursors.
Default
, control.DefaultCursor);
System\Windows\Forms\TableLayoutPanelTests.cs (2)
56
Assert.Equal(Cursors.
Default
, control.Cursor);
57
Assert.Equal(Cursors.
Default
, control.DefaultCursor);
System\Windows\Forms\TabPageTests.cs (4)
56
Assert.Same(Cursors.
Default
, control.Cursor);
57
Assert.Same(Cursors.
Default
, control.DefaultCursor);
165
Assert.Same(Cursors.
Default
, control.Cursor);
166
Assert.Same(Cursors.
Default
, control.DefaultCursor);
System\Windows\Forms\ToolStripContentPanelTests.cs (2)
53
Assert.Equal(Cursors.
Default
, control.Cursor);
54
Assert.Equal(Cursors.
Default
, control.DefaultCursor);
System\Windows\Forms\ToolStripDropDownTests.cs (2)
55
Assert.Same(Cursors.
Default
, control.Cursor);
56
Assert.Same(Cursors.
Default
, control.DefaultCursor);
System\Windows\Forms\ToolStripPanelTests.cs (2)
53
Assert.Equal(Cursors.
Default
, control.Cursor);
54
Assert.Equal(Cursors.
Default
, control.DefaultCursor);
System\Windows\Forms\ToolStripTests.cs (7)
55
Assert.Same(Cursors.
Default
, control.Cursor);
56
Assert.Same(Cursors.
Default
, control.DefaultCursor);
212
Assert.Same(Cursors.
Default
, control.Cursor);
213
Assert.Same(Cursors.
Default
, control.DefaultCursor);
1337
Assert.Same(value ?? Cursors.
Default
, control.Cursor);
1342
Assert.Same(value ?? Cursors.
Default
, control.Cursor);
1378
Assert.Same(Cursors.
Default
, control.Cursor);
System\Windows\Forms\TreeViewTests.cs (2)
48
Assert.Same(Cursors.
Default
, control.Cursor);
49
Assert.Same(Cursors.
Default
, control.DefaultCursor);
System\Windows\Forms\UpDownBaseTests.cs (2)
64
Assert.Equal(Cursors.
Default
, control.Cursor);
65
Assert.Equal(Cursors.
Default
, control.DefaultCursor);
System\Windows\Forms\UserControlTests.cs (2)
57
Assert.Equal(Cursors.
Default
, control.Cursor);
58
Assert.Equal(Cursors.
Default
, control.DefaultCursor);
System\Windows\Forms\VScrollBarTests.cs (2)
50
Assert.Same(Cursors.
Default
, control.Cursor);
51
Assert.Same(Cursors.
Default
, control.DefaultCursor);
System\Windows\Forms\WebBrowserTests.cs (2)
45
Assert.Same(Cursors.
Default
, control.Cursor);
46
Assert.Same(Cursors.
Default
, control.DefaultCursor);
ToolStripContainerTests.cs (2)
173
value = Cursors.
Default
;
188
_toolStripContainer.Cursor = Cursors.
Default
;
TrackBarTests.cs (2)
47
Assert.Same(Cursors.
Default
, control.Cursor);
48
Assert.Same(Cursors.
Default
, control.DefaultCursor);
WindowsFormsIntegration (2)
System\Windows\Integration\Convert.cs (2)
84
_toSystemWindowsFormsCursorDictionary.Add(SWI.Cursors.None, SWF.Cursors.
Default
);
133
return SWF.Cursors.
Default
;