102 references to Handle
System.Windows.Forms (27)
System\Windows\Forms\Controls\ImageList\ImageList.cs (1)
761
internal HIMAGELIST HIMAGELIST => (HIMAGELIST)
Handle
;
System\Windows\Forms\Controls\ImageList\ImageListStreamer.cs (1)
116
handle = new(_imageList, (HIMAGELIST)_imageList.
Handle
);
System\Windows\Forms\Controls\ListView\ListView.cs (14)
559
PInvokeCore.SendMessage(this, PInvoke.LVM_SETIMAGELIST, (WPARAM)PInvoke.LVSIL_STATE, (LPARAM)_imageListState.
Handle
);
956
(LPARAM)(value is null ? 0 : value.
Handle
));
1220
(LPARAM)(value?.
Handle
?? 0));
1455
PInvokeCore.SendMessage(this, PInvoke.LVM_SETIMAGELIST, (WPARAM)PInvoke.LVSIL_SMALL, (LPARAM)(value?.
Handle
?? 0));
1563
(LPARAM)(value?.
Handle
?? 0));
1600
(_imageListState is null || _imageListState.Images.Count == 0) ? 0 : _imageListState.
Handle
);
3693
nint handle = (GroupImageList is null) ? 0 : GroupImageList.
Handle
;
4293
nint handle = (LargeImageList is null) ? 0 : LargeImageList.
Handle
;
4950
PInvokeCore.SendMessage(this, PInvoke.LVM_SETIMAGELIST, (WPARAM)PInvoke.LVSIL_NORMAL, (LPARAM)_imageListLarge.
Handle
);
4955
PInvokeCore.SendMessage(this, PInvoke.LVM_SETIMAGELIST, (WPARAM)PInvoke.LVSIL_SMALL, (LPARAM)_imageListSmall.
Handle
);
4960
PInvokeCore.SendMessage(this, PInvoke.LVM_SETIMAGELIST, (WPARAM)PInvoke.LVSIL_STATE, (LPARAM)_imageListState.
Handle
);
4965
PInvokeCore.SendMessage(this, PInvoke.LVM_SETIMAGELIST, (WPARAM)PInvoke.LVSIL_GROUPHEADER, (LPARAM)_imageListGroup.
Handle
);
5512
nint handle = (SmallImageList is null) ? 0 : SmallImageList.
Handle
;
5545
nint handle = (StateImageList is null) ? 0 : StateImageList.
Handle
;
System\Windows\Forms\Controls\TabControl\TabControl.cs (3)
472
IntPtr handle = (value is not null) ? value.
Handle
: IntPtr.Zero;
1142
PInvokeCore.SendMessage(this, PInvoke.TCM_SETIMAGELIST, 0, ImageList!.
Handle
);
1249
PInvokeCore.SendMessage(this, PInvoke.TCM_SETIMAGELIST, 0, _imageList.
Handle
);
System\Windows\Forms\Controls\TreeView\TreeView.cs (8)
630
PInvokeCore.SendMessage(this, PInvoke.TVM_SETIMAGELIST, 0, value is null ? 0 : value.
Handle
);
633
SetStateImageList(_internalStateImageList.
Handle
);
1693
IntPtr handle = (ImageList is null) ? IntPtr.Zero : ImageList.
Handle
;
1749
handle = _internalStateImageList.
Handle
;
1797
SetStateImageList(_internalStateImageList.
Handle
);
1906
PInvokeCore.SendMessage(this, PInvoke.TVM_SETIMAGELIST, 0, _imageList.
Handle
);
1991
PInvokeCore.SendMessage(this, PInvoke.TVM_SETIMAGELIST, (WPARAM)PInvoke.TVSIL_STATE, (LPARAM)newImageList.
Handle
);
2632
SetStateImageList(_internalStateImageList.
Handle
);
System.Windows.Forms.Tests (75)
System\Windows\Forms\ButtonBaseTests.cs (2)
2588
Assert.NotEqual(IntPtr.Zero, imageList1.
Handle
);
2618
Assert.NotEqual(IntPtr.Zero, imageList1.
Handle
);
System\Windows\Forms\ImageList.ImageCollectionTests.cs (20)
18
Assert.NotEqual(IntPtr.Zero, list.
Handle
);
28
Assert.NotEqual(IntPtr.Zero, list.
Handle
);
110
Assert.NotEqual(IntPtr.Zero, list.
Handle
);
286
Assert.NotEqual(IntPtr.Zero, list.
Handle
);
488
Assert.NotEqual(IntPtr.Zero, list.
Handle
);
557
Assert.NotEqual(IntPtr.Zero, list.
Handle
);
626
Assert.NotEqual(IntPtr.Zero, list.
Handle
);
703
Assert.NotEqual(IntPtr.Zero, list.
Handle
);
772
Assert.NotEqual(IntPtr.Zero, list.
Handle
);
845
Assert.NotEqual(IntPtr.Zero, list.
Handle
);
927
Assert.NotEqual(IntPtr.Zero, list.
Handle
);
1015
Assert.NotEqual(IntPtr.Zero, list.
Handle
);
1038
Assert.NotEqual(IntPtr.Zero, list.
Handle
);
1136
Assert.NotEqual(IntPtr.Zero, list.
Handle
);
1199
Assert.NotEqual(IntPtr.Zero, list.
Handle
);
1351
Assert.NotEqual(IntPtr.Zero, list.
Handle
);
1455
Assert.NotEqual(IntPtr.Zero, list.
Handle
);
1507
Assert.NotEqual(IntPtr.Zero, list.
Handle
);
1569
Assert.NotEqual(IntPtr.Zero, list.
Handle
);
1659
Assert.NotEqual(IntPtr.Zero, list.
Handle
);
System\Windows\Forms\ImageListTests.cs (30)
109
Assert.NotEqual(IntPtr.Zero, list.
Handle
);
125
Assert.NotEqual(IntPtr.Zero, list.
Handle
);
140
Assert.NotEqual(IntPtr.Zero, list.
Handle
);
147
Assert.NotEqual(IntPtr.Zero, list.
Handle
);
154
IntPtr handle3 = list.
Handle
;
155
Assert.NotEqual(IntPtr.Zero, list.
Handle
);
163
Assert.NotEqual(IntPtr.Zero, list.
Handle
);
212
IntPtr handle = list.
Handle
;
215
Assert.Equal(handle, list.
Handle
);
290
Assert.NotEqual(IntPtr.Zero, list.
Handle
);
306
Assert.NotEqual(IntPtr.Zero, list.
Handle
);
321
Assert.NotEqual(IntPtr.Zero, list.
Handle
);
328
Assert.NotEqual(IntPtr.Zero, list.
Handle
);
335
Assert.NotEqual(IntPtr.Zero, list.
Handle
);
342
Assert.NotEqual(IntPtr.Zero, list.
Handle
);
349
Assert.NotEqual(IntPtr.Zero, list.
Handle
);
357
Assert.NotEqual(IntPtr.Zero, list.
Handle
);
527
Assert.NotEqual(IntPtr.Zero, sourceList.
Handle
);
552
Assert.NotEqual(IntPtr.Zero, sourceList.
Handle
);
556
Assert.NotEqual(IntPtr.Zero, list.
Handle
);
604
Assert.NotEqual(IntPtr.Zero, list.
Handle
);
635
Assert.NotEqual(IntPtr.Zero, list.
Handle
);
643
Assert.NotEqual(IntPtr.Zero, list.
Handle
);
730
Assert.NotEqual(IntPtr.Zero, list.
Handle
);
746
Assert.NotEqual(IntPtr.Zero, list.
Handle
);
872
Assert.NotEqual(IntPtr.Zero, list.
Handle
);
891
Assert.NotEqual(IntPtr.Zero, list.
Handle
);
943
Assert.NotEqual(IntPtr.Zero, list.
Handle
);
972
Assert.NotEqual(IntPtr.Zero, list.
Handle
);
1010
Assert.NotEqual(IntPtr.Zero, list.
Handle
);
System\Windows\Forms\ListViewGroupTests.cs (4)
219
Assert.Equal(groupImageList.
Handle
,
220
PInvokeCore.SendMessage(listView, PInvoke.LVM_SETIMAGELIST, (WPARAM)PInvoke.LVSIL_GROUPHEADER, groupImageList.
Handle
));
359
Assert.Equal(groupImageList.
Handle
,
360
PInvokeCore.SendMessage(listView, PInvoke.LVM_SETIMAGELIST, (WPARAM)PInvoke.LVSIL_GROUPHEADER, groupImageList.
Handle
));
System\Windows\Forms\TabControlTests.cs (4)
1026
Assert.Equal(imageList.
Handle
, (nint)PInvokeCore.SendMessage(control, PInvoke.TCM_GETIMAGELIST));
1301
Assert.Equal(imageList.
Handle
, (nint)PInvokeCore.SendMessage(control, PInvoke.TCM_GETIMAGELIST));
1422
Assert.Equal(imageList1.
Handle
, (nint)PInvokeCore.SendMessage(control, PInvoke.TCM_GETIMAGELIST));
1433
Assert.Equal(imageList2.
Handle
, (nint)PInvokeCore.SendMessage(control, PInvoke.TCM_GETIMAGELIST));
System\Windows\Forms\TreeViewTests.cs (15)
2200
Assert.NotEqual(IntPtr.Zero, imageList.
Handle
);
2589
Assert.NotEqual(IntPtr.Zero, imageList.
Handle
);
2602
Assert.NotEqual(IntPtr.Zero, imageList.
Handle
);
2614
Assert.NotEqual(IntPtr.Zero, imageList.
Handle
);
2617
Assert.NotEqual(IntPtr.Zero, imageList.
Handle
);
2630
Assert.NotEqual(IntPtr.Zero, imageList.
Handle
);
2633
Assert.NotEqual(IntPtr.Zero, imageList.
Handle
);
3560
Assert.NotEqual(IntPtr.Zero, imageList.
Handle
);
4566
Assert.NotEqual(IntPtr.Zero, imageList.
Handle
);
4579
Assert.NotEqual(IntPtr.Zero, imageList.
Handle
);
4591
Assert.NotEqual(IntPtr.Zero, imageList.
Handle
);
4594
Assert.NotEqual(IntPtr.Zero, imageList.
Handle
);
4607
Assert.NotEqual(IntPtr.Zero, imageList.
Handle
);
4610
Assert.NotEqual(IntPtr.Zero, imageList.
Handle
);
6258
Assert.NotEqual(IntPtr.Zero, imageList.
Handle
);