53 references to Cursor
System.Windows.Forms (1)
System\Windows\Forms\Input\Cursor.cs (1)
148
return cursor.IsNull ? null : new
Cursor
(cursor);
System.Windows.Forms.Design (1)
System\Windows\Forms\Design\Behavior\BehaviorService.cs (1)
587
cursor = new
Cursor
(PInvoke.GetCursor());
System.Windows.Forms.Tests (50)
System\Windows\Forms\AxHostTests.cs (2)
490
Cursor cursor1 =
new
(1);
491
Cursor cursor2 =
new
(1);
System\Windows\Forms\ControlTests.Handlers.cs (3)
1154
Cursor childCursor1 =
new
(1);
1155
Cursor childCursor2 =
new
(1);
4385
Cursor cursor =
new
(1);
System\Windows\Forms\ControlTests.Methods.cs (1)
6400
using Cursor cursor =
new
(1);
System\Windows\Forms\ControlTests.Properties.cs (20)
3717
using Cursor cursor =
new
(1);
3732
using Cursor cursor1 =
new
(1);
3733
using Cursor cursor2 =
new
(2);
3752
using Cursor cursor1 =
new
(1);
3753
using Cursor cursor2 =
new
(2);
3772
using Cursor cursor =
new
(1);
3784
using Cursor cursor1 =
new
(1);
3785
using Cursor cursor2 =
new
(2);
3803
public Cursor DefaultCursorResult { get; } =
new
(1);
3880
Cursor cursor1 =
new
(1);
3881
Cursor cursor2 =
new
(1);
3920
using Cursor cursor1 =
new
(1);
3931
using Cursor cursor2 =
new
(2);
3983
using Cursor cursor1 =
new
(1);
4002
using Cursor cursor2 =
new
(2);
4036
using Cursor childCursor1 =
new
(1);
4037
using Cursor childCursor2 =
new
(2);
4076
using Cursor cursor1 =
new
(3);
4095
using Cursor cursor2 =
new
(4);
10957
using Cursor controlCursor =
new
(3);
System\Windows\Forms\CursorConverterTests.cs (6)
87
Assert.Throws<FormatException>(() => converter.ConvertTo(new
Cursor
(2), typeof(string)));
108
Assert.Throws<NotSupportedException>(() => converter.ConvertTo(new
Cursor
(Cursors.AppStarting.Handle), typeof(InstanceDescriptor)));
115
Assert.Throws<NotSupportedException>(() => converter.ConvertTo(new
Cursor
(2), typeof(InstanceDescriptor)));
150
Assert.Throws<InvalidOperationException>(() => converter.ConvertTo(new
Cursor
(Cursors.AppStarting.Handle), typeof(byte[])));
157
Assert.Throws<InvalidOperationException>(() => converter.ConvertTo(new
Cursor
(2), typeof(byte[])));
240
string converted = (string)converter.ConvertTo(new
Cursor
(Cursors.Default.Handle), typeof(string));
System\Windows\Forms\CursorTests.cs (16)
35
using Cursor cursor =
new
(sourceCursor.Handle);
45
using Cursor cursor =
new
(-1000);
55
Assert.Throws<ArgumentException>("handle", () => new
Cursor
(IntPtr.Zero));
248
Cursor value =
new
(Cursors.AppStarting.Handle);
315
using Cursor cursor =
new
(2)
334
using Cursor cursor =
new
(sourceCursor.Handle);
357
Cursor cursor =
new
(2);
390
using Cursor cursor =
new
(-1000);
427
using Cursor cursor =
new
(-1000);
452
Cursor cursor =
new
(Cursors.AppStarting.Handle);
454
yield return new object[] { cursor, new
Cursor
(Cursors.AppStarting.Handle), true };
455
yield return new object[] { cursor, new
Cursor
(Cursors.Arrow.Handle), false };
474
Cursor cursor =
new
(2);
476
yield return new object[] { cursor, new
Cursor
(2), true };
477
yield return new object[] { cursor, new
Cursor
(1), false };
509
using Cursor cursor =
new
(2);
System\Windows\Forms\ToolStripTests.cs (2)
1362
using Cursor cursor1 =
new
(1);
1373
using Cursor cursor2 =
new
(2);
System.Windows.Forms.TestUtilities (1)
CommonTestHelperEx.cs (1)
104
new
Cursor
(1)