111 references to Images
System.Messaging (2)
System\Messaging\Design\QueuePathDialog.cs (2)
255this.icons.Images.Add(new Bitmap(typeof(MessageQueue), "Machine.bmp")); 256this.icons.Images.Add(new Bitmap(typeof(MessageQueue), "PublicQueue.bmp"));
System.Windows.Forms (75)
winforms\Managed\System\WinForms\ButtonBase.cs (5)
337if(actualIndex >= imageList.Images.Count) { 338actualIndex = imageList.Images.Count - 1; 342return imageList.Images[actualIndex]; 411if (imageIndex.Index != -1 && imageList != null && imageIndex.Index >= imageList.Images.Count) { 412return imageList.Images.Count - 1;
winforms\Managed\System\WinForms\ColumnHeader.cs (4)
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\Design\ComponentEditorForm.cs (1)
248selectorImageList.Images.Add(page.Icon.ToBitmap());
winforms\Managed\System\WinForms\ImageIndexConverter.cs (1)
134int nImages = imageList.Images.Count;
winforms\Managed\System\WinForms\ImageKeyConverter.cs (2)
149int nImages = imageList.Images.Count; 161StringCollection imageKeys = imageList.Images.Keys;
winforms\Managed\System\WinForms\ImageList.cs (11)
148return ImageList.Images.IndexOfKey(Key); 188return (Images.Count==0); 283return (Images.Count==0); 297if (Images.Empty) 344Images.ResetKeys(); 353Images.Clear(); 626if (index < 0 || index >= Images.Count) 693if (index < 0 || index >= Images.Count) 876if (originals == null || Images.Empty) 907if (Images != null) { 908return s + " Images.Count: " + Images.Count.ToString(CultureInfo.CurrentCulture) + ", ImageSize: " + ImageSize.ToString();
winforms\Managed\System\WinForms\Label.cs (6)
462return ImageList.Images[ImageIndexer.ActualIndex]; 508if (ImageList != null && (index >= ImageList.Images.Count)) { 509return ImageList.Images.Count - 1; 1845return (Index < ImageList.Images.Count) ? Index : ImageList.Images.Count - 1; 1848return ImageList.Images.IndexOfKey(Key);
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\Printing\PrintPreviewDialog.cs (1)
83imageList.Images.AddStrip(bitmaps);
winforms\Managed\System\WinForms\PropertyGrid.cs (8)
1657int result = imageList[NORMAL_BUTTONS].Images.Count; 1658imageList[NORMAL_BUTTONS].Images.Add(image); 2460ImageList.ImageCollection images = imageList[NORMAL_BUTTONS].Images; 2464this.imageList[LARGE_BUTTONS].Images.Add(new Bitmap((Bitmap)images[i], largeButtonSize.Width, largeButtonSize.Height)); 2484this.imageList[LARGE_BUTTONS].Images.Add(largeBitmap); 4022imageList[NORMAL_BUTTONS].Images.RemoveAt(index); 4024imageList[LARGE_BUTTONS].Images.RemoveAt(index); 4447items = imageList[NORMAL_BUTTONS].Images.Count;
winforms\Managed\System\WinForms\ToolStripItem.cs (4)
1246if (ImageIndexer.ActualIndex < Owner.ImageList.Images.Count) { 1248image = Owner.ImageList.Images[ImageIndexer.ActualIndex]; 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 (3)
1536this.StateImageKey = treeView.StateImageList.Images.Keys[this.StateImageIndex]; 1963item.iImage = Math.Max(0, ((ImageIndexer.ActualIndex >= tv.ImageList.Images.Count) ? tv.ImageList.Images.Count - 1 : ImageIndexer.ActualIndex));
winforms\Managed\System\WinForms\TreeView.cs (20)
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]; 1887images[0] = stateImageList.Images[0]; 1888for (int i = 1; i <= stateImageList.Images.Count ; i++) { 1889images[i] = stateImageList.Images[i -1]; 1894internalStateImageList.Images.Clear(); 1895internalStateImageList.Images.AddRange(images); 1900internalStateImageList.Images.AddRange(images); 2066if (stateImageList != null && stateImageList.Images.Count > 0) 2074Image[] images = new Image[stateImageList.Images.Count + 1]; 2075images[0] = stateImageList.Images[0]; 2076for (int i = 1; i <= stateImageList.Images.Count; i++) 2078images[i] = stateImageList.Images[i - 1]; 2080newImageList.Images.AddRange(images);
winforms\Managed\System\WinForms\TreeViewImageIndexConverter.cs (1)
128int nImages = imageList.Images.Count+2;
winforms\Managed\System\WinForms\VisualStyles\VisualStyleRenderer.cs (2)
406if (imageIndex < 0 || imageIndex >= imageList.Images.Count) { 424g.DrawImage(imageList.Images[imageIndex], bounds);
System.Workflow.Activities (23)
Rules\Design\Dialogs\BasicBrowserDialog.Designer.cs (4)
126this.imageList.Images.SetKeyName(0, "NewRule.bmp"); 127this.imageList.Images.SetKeyName(1, "EditRule.bmp"); 128this.imageList.Images.SetKeyName(2, "RenameRule.bmp"); 129this.imageList.Images.SetKeyName(3, "Delete.bmp");
Rules\Design\Dialogs\IntellisenseTextBox.Designer.cs (16)
41this.autoCompletionImageList.Images.SetKeyName(0, ""); 42this.autoCompletionImageList.Images.SetKeyName(1, ""); 43this.autoCompletionImageList.Images.SetKeyName(2, ""); 44this.autoCompletionImageList.Images.SetKeyName(3, ""); 45this.autoCompletionImageList.Images.SetKeyName(4, ""); 46this.autoCompletionImageList.Images.SetKeyName(5, ""); 47this.autoCompletionImageList.Images.SetKeyName(6, ""); 48this.autoCompletionImageList.Images.SetKeyName(7, ""); 49this.autoCompletionImageList.Images.SetKeyName(8, ""); 50this.autoCompletionImageList.Images.SetKeyName(9, ""); 51this.autoCompletionImageList.Images.SetKeyName(10, ""); 52this.autoCompletionImageList.Images.SetKeyName(11, ""); 53this.autoCompletionImageList.Images.SetKeyName(12, ""); 54this.autoCompletionImageList.Images.SetKeyName(13, ""); 55this.autoCompletionImageList.Images.SetKeyName(14, "Keyword.bmp"); 56this.autoCompletionImageList.Images.SetKeyName(15, "MethodExtension.bmp");
Rules\Design\Dialogs\RuleSetDialog.Designer.cs (3)
167this.imageList.Images.SetKeyName(0, "NewRule.bmp"); 168this.imageList.Images.SetKeyName(1, "RenameRule.bmp"); 169this.imageList.Images.SetKeyName(2, "Delete.bmp");
System.Workflow.ComponentModel (11)
AuthoringOM\Design\Dialogs\ActivityBindForm.cs (4)
1069for (int i = 0; i < memberTypes.Images.Count; i++) 1071Image image = memberTypes.Images[i]; 1072this.TreeView.ImageList.Images.Add(string.Format(CultureInfo.InvariantCulture, MemberTypeFormat, i), image); //member type key is non-localizable 1106node.ImageIndex = node.SelectedImageIndex = this.TreeView.ImageList.Images.IndexOfKey(string.Format(CultureInfo.InvariantCulture, MemberTypeFormat, imageNumber)); //it's non-localizable
AuthoringOM\Design\Dialogs\ThemeConfigurationDialog.cs (2)
738treeView.ImageList.Images.Add(standardImage, AmbientTheme.TransparentColor); 744int imageIndex = (image != null) ? treeView.ImageList.Images.Add(image, AmbientTheme.TransparentColor) : 0;
AuthoringOM\Design\Dialogs\TypeBrowserDialog.cs (1)
787this.artifactImages.Images.AddStrip((Image)TypeBrowserDialog.ResMgr.GetObject("IDB_ARTIFACTIMAGES"));
AuthoringOM\Design\DocumentOutline.cs (4)
202int imageIndex = (this.treeView.ImageList != null) ? this.treeView.ImageList.Images.IndexOfKey(activity.GetType().FullName) : -1; 217this.treeView.ImageList.Images.Add(activity.GetType().FullName, activityImage); 218imageIndex = this.treeView.ImageList.Images.Count - 1; 438this.treeView.ImageList.Images.Clear();