Implemented interface member:
property
Count
System.Collections.ICollection.Count
60 references to Count
System.Windows.Forms (58)
winforms\Managed\System\WinForms\ButtonBase.cs (4)
337
if(actualIndex >= imageList.Images.
Count
) {
338
actualIndex = imageList.Images.
Count
- 1;
411
if (imageIndex.Index != -1 && imageList != null && imageIndex.Index >= imageList.Images.
Count
) {
412
return imageList.Images.
Count
- 1;
winforms\Managed\System\WinForms\ColumnHeader.cs (3)
100
if (this.ImageList == null || this.ImageList.Images == null || imgIndex >= this.ImageList.Images.
Count
) {
197
if (imageIndexer.Index != -1 && ImageList != null && imageIndexer.Index >= ImageList.Images.
Count
) {
198
return ImageList.Images.
Count
- 1;
winforms\Managed\System\WinForms\ImageIndexConverter.cs (1)
134
int nImages = imageList.Images.
Count
;
winforms\Managed\System\WinForms\ImageKeyConverter.cs (1)
149
int nImages = imageList.Images.
Count
;
winforms\Managed\System\WinForms\ImageList.cs (17)
188
return (Images.
Count
==0);
283
return (Images.
Count
==0);
626
if (index < 0 || index >= Images.
Count
)
693
if (index < 0 || index >= Images.
Count
)
908
return s + " Images.Count: " + Images.
Count
.ToString(CultureInfo.CurrentCulture) + ", ImageSize: " + ImageSize.ToString();
1051
for (int i = 0; i < this.
Count
; i++) {
1127
return
Count
== 0;
1140
if (index < 0 || index >=
Count
)
1145
if (index < 0 || index >=
Count
)
1235
Debug.Assert((this.
Count
== imageInfoCollection.Count), "The count of these two collections should be equal.");
1252
Debug.Assert((this.
Count
== imageInfoCollection.Count), "The count of these two collections should be equal.");
1271
return
Count
- 1;
1499
for (int i = 0; i < this.
Count
; i ++) {
1526
return ((index >= 0) && (index < this.
Count
));
1533
for (int i = 0; i <
Count
; ++i) {
1546
Image[] images = new Image[
Count
];
1576
if (index < 0 || index >=
Count
)
winforms\Managed\System\WinForms\Label.cs (4)
508
if (ImageList != null && (index >= ImageList.Images.
Count
)) {
509
return ImageList.Images.
Count
- 1;
1845
return (Index < ImageList.Images.
Count
) ? Index : ImageList.Images.
Count
- 1;
winforms\Managed\System\WinForms\ListView.cs (4)
1586
SendMessage(NativeMethods.LVM_SETIMAGELIST, NativeMethods.LVSIL_STATE, (imageListState == null || imageListState.Images.
Count
== 0) ? IntPtr.Zero : imageListState.Handle);
4037
if (item.ImageIndexer.ActualIndex != -1 && item.ImageIndexer.ActualIndex >= imageListLarge.Images.
Count
) {
4038
SetItemImage(item.Index,imageListLarge.Images.
Count
- 1);
5428
if (imageListState != null && imageListState.Images.
Count
< 2) {
winforms\Managed\System\WinForms\ListViewItem.cs (2)
530
if (ImageIndexer.Index != -1 && ImageList != null && ImageIndexer.Index >= ImageList.Images.
Count
) {
531
return ImageList.Images.
Count
- 1;
winforms\Managed\System\WinForms\PropertyGrid.cs (3)
1657
int result = imageList[NORMAL_BUTTONS].Images.
Count
;
2462
for (int i = 0; i < images.
Count
; i++) {
4447
items = imageList[NORMAL_BUTTONS].Images.
Count
;
winforms\Managed\System\WinForms\ToolStripItem.cs (3)
1246
if (ImageIndexer.ActualIndex < Owner.ImageList.Images.
Count
) {
1323
if ((Owner != null) && ImageIndexer.Index != -1 && Owner.ImageList != null && ImageIndexer.Index >= Owner.ImageList.Images.
Count
) {
1324
return Owner.ImageList.Images.
Count
- 1;
winforms\Managed\System\WinForms\TreeNode.cs (2)
1963
item.iImage = Math.Max(0, ((ImageIndexer.ActualIndex >= tv.ImageList.Images.
Count
) ? tv.ImageList.Images.
Count
- 1 : ImageIndexer.ActualIndex));
winforms\Managed\System\WinForms\TreeView.cs (12)
561
if (ImageIndexer.Index >= imageList.Images.
Count
) {
562
return Math.Max(0, imageList.Images.
Count
- 1);
649
if (StateImageList != null && StateImageList.Images.
Count
> 0) {
723
if((value == null || stateImageList.Images.
Count
== 0) && CheckBoxes) {
1051
if (SelectedImageIndexer.Index >= imageList.Images.
Count
) {
1052
return Math.Max(0, imageList.Images.
Count
- 1);
1885
if (stateImageList != null && stateImageList.Images.
Count
> 0) {
1886
Image[] images = new Image[stateImageList.Images.
Count
+ 1];
1888
for (int i = 1; i <= stateImageList.Images.
Count
; i++) {
2066
if (stateImageList != null && stateImageList.Images.
Count
> 0)
2074
Image[] images = new Image[stateImageList.Images.
Count
+ 1];
2076
for (int i = 1; i <= stateImageList.Images.
Count
; i++)
winforms\Managed\System\WinForms\TreeViewImageIndexConverter.cs (1)
128
int nImages = imageList.Images.
Count
+2;
winforms\Managed\System\WinForms\VisualStyles\VisualStyleRenderer.cs (1)
406
if (imageIndex < 0 || imageIndex >= imageList.Images.
Count
) {
System.Workflow.ComponentModel (2)
AuthoringOM\Design\Dialogs\ActivityBindForm.cs (1)
1069
for (int i = 0; i < memberTypes.Images.
Count
; i++)
AuthoringOM\Design\DocumentOutline.cs (1)
218
imageIndex = this.treeView.ImageList.Images.
Count
- 1;