51 instantiations of Icon
System.Drawing (19)
commonui\System\Drawing\BitmapSelector.cs (1)
201return new Icon(GetResourceStream(type, originalName));
commonui\System\Drawing\Icon.cs (4)
276Icon icon = new Icon(); 285icon = new Icon(hIcon, true); 365return new Icon(this, Size.Width, Size.Height); 561return new Icon(handle);
commonui\System\Drawing\IconConverter.cs (1)
76return new Icon(ms);
commonui\System\Drawing\SystemIcons.cs (11)
46_application = new Icon( SafeNativeMethods.LoadIcon( NativeMethods.NullHandleRef, SafeNativeMethods.IDI_APPLICATION )); 60_asterisk = new Icon( SafeNativeMethods.LoadIcon( NativeMethods.NullHandleRef, SafeNativeMethods.IDI_ASTERISK )); 74_error = new Icon( SafeNativeMethods.LoadIcon( NativeMethods.NullHandleRef, SafeNativeMethods.IDI_ERROR )); 88_exclamation = new Icon( SafeNativeMethods.LoadIcon( NativeMethods.NullHandleRef, SafeNativeMethods.IDI_EXCLAMATION )); 102_hand = new Icon( SafeNativeMethods.LoadIcon( NativeMethods.NullHandleRef, SafeNativeMethods.IDI_HAND )); 116_information = new Icon( SafeNativeMethods.LoadIcon( NativeMethods.NullHandleRef, SafeNativeMethods.IDI_INFORMATION )); 130_question = new Icon( SafeNativeMethods.LoadIcon( NativeMethods.NullHandleRef, SafeNativeMethods.IDI_QUESTION )); 144_warning = new Icon( SafeNativeMethods.LoadIcon( NativeMethods.NullHandleRef, SafeNativeMethods.IDI_WARNING )); 158_winlogo = new Icon( SafeNativeMethods.LoadIcon( NativeMethods.NullHandleRef, SafeNativeMethods.IDI_WINLOGO )); 181_shield = new Icon( hIcon ); 190_shield = new Icon(typeof(SystemIcons), "ShieldIcon.ico");
commonui\System\Drawing\ToolboxBitmapAttribute.cs (2)
287Icon ico = new Icon(stream); 288Icon sizedico = new Icon(ico, large ? largeSize : smallSize);
System.Web.Entity.Design (1)
parent\parent\parent\parent\InternalApis\NDP_FX\inc\BitmapSelector.cs (1)
201return new Icon(GetResourceStream(type, originalName));
System.Web.Mobile (10)
UI\MobileControls\Design\ListGeneralPage.cs (1)
194this.Icon = new Icon(
UI\MobileControls\Design\ListItemsPage.cs (1)
89this.Icon = new Icon(
UI\MobileControls\Design\ObjectListCommandsPage.cs (1)
69this.Icon = new Icon(
UI\MobileControls\Design\ObjectListFieldsPage.cs (1)
71this.Icon = new Icon(
UI\MobileControls\Design\ObjectListGeneralPage.cs (1)
134this.Icon = new Icon(
UI\MobileControls\Design\Util\GenericUI.cs (5)
30new Icon(typeof(MobileControlDesigner), "SortDown.ico").ToBitmap(); 33new Icon(typeof(MobileControlDesigner), "SortUp.ico").ToBitmap(); 36new Icon(typeof(MobileControlDesigner), "Delete.ico").ToBitmap(); 39new Icon(typeof(MobileContainerDesigner), "Error.ico").ToBitmap(); 42new Icon(typeof(MobileContainerDesigner), "Info.ico").ToBitmap();
System.Windows.Forms (21)
parent\parent\parent\InternalApis\NDP_FX\inc\BitmapSelector.cs (1)
201return new Icon(GetResourceStream(type, originalName));
winforms\Managed\System\Resources\ResXFileRef.cs (1)
322Icon ico = new Icon(memStream);
winforms\Managed\System\WinForms\DataGridViewImageCell.cs (1)
123errorIco = new Icon(typeof(DataGridView), "IconInError.ico");
winforms\Managed\System\WinForms\DataGridViewRowHeaderCell.cs (1)
196Icon icon = new Icon(BitmapSelector.GetResourceStream(typeof(DataGridViewRowHeaderCell), iconName), desiredSize);
winforms\Managed\System\WinForms\Design\ComponentEditorPage.cs (1)
171icon = new Icon(typeof(ComponentEditorPage), "ComponentEditorPage.ico");
winforms\Managed\System\WinForms\ErrorProvider.cs (2)
584defaultIcon = new Icon(typeof(ErrorProvider), "Error.ico"); 1667this.icon = new Icon(icon, 16, 16);
winforms\Managed\System\WinForms\Form.cs (3)
1101defaultIcon = new Icon(typeof(Form), "wfc.ico"); 1135defaultRestrictedIcon = new Icon(typeof(Form), "wfsecurity.ico"); 6812smallIcon = new Icon(icon, SystemInformation.SmallIconSize);
winforms\Managed\System\WinForms\MDIControlStrip.cs (1)
135Icon smallIcon = new Icon(icon, SystemInformation.SmallIconSize);
winforms\Managed\System\WinForms\PropertyGridInternal\PropertyGridView.cs (1)
326Icon icon = new Icon(BitmapSelector.GetResourceStream(typeof(PropertyGrid), iconName), desiredSize);
winforms\Managed\System\WinForms\StatusBarPanel.cs (1)
205this.icon = new Icon(value, SystemInformation.SmallIconSize);
winforms\Managed\System\WinForms\ToolStripMenuItem.cs (2)
326Icon icon = new Icon(typeof(ToolStripMenuItem), iconName); 329Icon desiredIcon = new Icon(icon, desiredIconSize);
winforms\Managed\System\WinForms\TrustManagerMoreInformation.cs (2)
405var icon = new Icon(typeof(System.Windows.Forms.Form), iconName); 408icon = new Icon(icon, icon.Width / 2, icon.Height / 2);
winforms\Managed\System\WinForms\TrustManagerPromptUI.cs (4)
407var globeIcon = new Icon(typeof(System.Windows.Forms.Form), "TrustManagerGlobe.ico"); 652var icon = new Icon(typeof(System.Windows.Forms.Form), "TrustManagerOK.ico"); 664var icon = new Icon(typeof(System.Windows.Forms.Form), "TrustManagerWarning.ico"); 677var icon = new Icon(typeof(System.Windows.Forms.Form), "TrustManagerHighRisk.ico");
124 references to Icon
System.Drawing (51)
commonui\System\Drawing\BitmapSelector.cs (1)
200public static Icon CreateIcon(Type type, string originalName) {
commonui\System\Drawing\Graphics.cs (3)
2676public void DrawIcon(Icon icon, int x, int y) { 2702public void DrawIcon(Icon icon, Rectangle targetRect) { 2727public void DrawIconUnstretched(Icon icon, Rectangle targetRect) {
commonui\System\Drawing\Icon.cs (7)
73throw new ArgumentException(SR.GetString(SR.InvalidGDIHandle, (typeof(Icon)).Name)); 121public Icon(Icon original, Size size) : this(original, size.Width, size.Height) { 135public Icon(Icon original, int width, int height) : this() { 225public static Icon ExtractAssociatedIcon(string filePath) { 235private static Icon ExtractAssociatedIcon(string filePath, int index) { 276Icon icon = new Icon(); 559public static Icon FromHandle(IntPtr handle) {
commonui\System\Drawing\IconConverter.cs (4)
100Icon icon = value as Icon; 118Icon icon = value as Icon;
commonui\System\Drawing\ImageConverter.cs (4)
32Type iconType = typeof(Icon); 76if (value is Icon) { 77Icon icon = (Icon) value;
commonui\System\Drawing\SystemIcons.cs (30)
21private static Icon _application ; 22private static Icon _asterisk ; 23private static Icon _error ; 24private static Icon _exclamation ; 25private static Icon _hand ; 26private static Icon _information ; 27private static Icon _question ; 28private static Icon _warning ; 29private static Icon _winlogo ; 30private static Icon _shield ; 41public static Icon Application { 43Contract.Ensures(Contract.Result<Icon>() != null); 55public static Icon Asterisk { 57Contract.Ensures(Contract.Result<Icon>() != null); 69public static Icon Error { 71Contract.Ensures(Contract.Result<Icon>() != null); 83public static Icon Exclamation { 85Contract.Ensures(Contract.Result<Icon>() != null); 97public static Icon Hand { 99Contract.Ensures(Contract.Result<Icon>() != null); 111public static Icon Information { 113Contract.Ensures(Contract.Result<Icon>() != null); 125public static Icon Question { 127Contract.Ensures(Contract.Result<Icon>() != null); 139public static Icon Warning { 141Contract.Ensures(Contract.Result<Icon>() != null); 153public static Icon WinLogo { 155Contract.Ensures(Contract.Result<Icon>() != null); 167public static Icon Shield { 169Contract.Ensures(Contract.Result<Icon>() != null);
commonui\System\Drawing\ToolboxBitmapAttribute.cs (2)
287Icon ico = new Icon(stream); 288Icon sizedico = new Icon(ico, large ? largeSize : smallSize);
System.Web.Entity.Design (1)
parent\parent\parent\parent\InternalApis\NDP_FX\inc\BitmapSelector.cs (1)
200public static Icon CreateIcon(Type type, string originalName) {
System.Windows.Forms (72)
parent\parent\parent\InternalApis\NDP_FX\inc\BitmapSelector.cs (1)
200public static Icon CreateIcon(Type type, string originalName) {
winforms\Managed\System\Resources\ResXFileRef.cs (1)
322Icon ico = new Icon(memStream);
winforms\Managed\System\WinForms\AxHost.cs (2)
4781NativeMethods.PICTDESCicon pictdesc = new NativeMethods.PICTDESCicon(Icon.FromHandle(cursor.Handle)); 4847return(Image)(Icon.FromHandle(handle)).Clone();
winforms\Managed\System\WinForms\ComponentModel\COM2Interop\COM2PictureConverter.cs (5)
33pictureType = typeof(Icon); 73pictureType = typeof(Icon); 74lastManaged = Icon.FromHandle(handle); 115if (lastManaged is Icon) { 116pictdesc = NativeMethods.PICTDESC.CreateIconPICTDESC(((Icon)lastManaged).Handle);
winforms\Managed\System\WinForms\Cursor.cs (2)
263Icon currentIcon = null; 270currentIcon = Icon.FromHandle(this.Handle);
winforms\Managed\System\WinForms\DataGridViewImageCell.cs (10)
27private static Type defaultTypeIcon = typeof(System.Drawing.Icon); 30private static Icon errorIco = null; 117static internal Icon ErrorIcon 443Icon ico = formattedValue as Icon; 481Icon ico = null; 484ico = formattedValue as Icon; 621Icon icon = owningImageColumn.Icon; 846Icon ico = null; 849ico = formattedValue as Icon;
winforms\Managed\System\WinForms\DataGridViewImageColumn.cs (4)
24private Icon icon; 136public Icon Icon 270this.DefaultCellStyle.NullValue is Icon && 271(Icon) this.DefaultCellStyle.NullValue == DataGridViewImageCell.ErrorIcon)
winforms\Managed\System\WinForms\DataGridViewRowHeaderCell.cs (1)
196Icon icon = new Icon(BitmapSelector.GetResourceStream(typeof(DataGridViewRowHeaderCell), iconName), desiredSize);
winforms\Managed\System\WinForms\Design\ComponentEditorPage.cs (2)
42Icon icon; 166public Icon Icon {
winforms\Managed\System\WinForms\ErrorProvider.cs (6)
48Icon icon = DefaultIcon; 58static Icon defaultIcon = null; 579static Icon DefaultIcon { 603public Icon Icon { 1654Icon icon; 1666public IconRegion(Icon icon) {
winforms\Managed\System\WinForms\Form.cs (9)
135private static Icon defaultIcon = null; 136private static Icon defaultRestrictedIcon = null; 197private Icon icon; 198private Icon smallIcon; 1091internal static Icon DefaultIcon { 1119private static Icon DefaultRestrictedIcon { 1302public Icon Icon { 3700Icon icon = Icon; 6797Icon icon;
winforms\Managed\System\WinForms\ImageList.cs (10)
441else if (original.image is Icon) { 442bitmap = ((Icon)original.image).ToBitmap(); 480private int AddIconToHandle(Original original, Icon icon) { 556if (original.image is Icon) { 557AddIconToHandle(original, (Icon)original.image); 979if (!(image is Icon) && !(image is Image)) { 1251public void Add(string key, Icon icon) { 1282public void Add(Icon value) { 1339else if (original.image is Icon) { 1344index = owner.AddIconToHandle(original, (Icon)original.image);
winforms\Managed\System\WinForms\MDIControlStrip.cs (3)
134Icon icon = (hIcon != IntPtr.Zero) ? Icon.FromHandle(hIcon) : Form.DefaultIcon; 135Icon smallIcon = new Icon(icon, SystemInformation.SmallIconSize);
winforms\Managed\System\WinForms\NativeMethods.cs (1)
2731public PICTDESCicon(System.Drawing.Icon icon) {
winforms\Managed\System\WinForms\NotifyIcon.cs (2)
51private Icon icon = null; 267public Icon Icon {
winforms\Managed\System\WinForms\Printing\PrintPreviewDialog.cs (1)
319new public Icon Icon {
winforms\Managed\System\WinForms\PropertyGridInternal\PropertyGridView.cs (1)
326Icon icon = new Icon(BitmapSelector.GetResourceStream(typeof(PropertyGrid), iconName), desiredSize);
winforms\Managed\System\WinForms\StatusBarPanel.cs (4)
45private Icon icon = null; 194public Icon Icon { 204if (value != null && (((Icon)value).Height > SystemInformation.SmallIconSize.Height || ((Icon)value).Width > SystemInformation.SmallIconSize.Width)) {
winforms\Managed\System\WinForms\ToolStripMenuItem.cs (2)
326Icon icon = new Icon(typeof(ToolStripMenuItem), iconName); 329Icon desiredIcon = new Icon(icon, desiredIconSize);
winforms\Managed\System\WinForms\TrustManagerMoreInformation.cs (1)
405var icon = new Icon(typeof(System.Windows.Forms.Form), iconName);
winforms\Managed\System\WinForms\TrustManagerPromptUI.cs (4)
407var globeIcon = new Icon(typeof(System.Windows.Forms.Form), "TrustManagerGlobe.ico"); 652var icon = new Icon(typeof(System.Windows.Forms.Form), "TrustManagerOK.ico"); 664var icon = new Icon(typeof(System.Windows.Forms.Form), "TrustManagerWarning.ico"); 677var icon = new Icon(typeof(System.Windows.Forms.Form), "TrustManagerHighRisk.ico");