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