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