SystemIcons.GetStockIcon 메서드

정의

오버로드

Name Description
GetStockIcon(StockIconId, StockIconOptions)

지정된 Windows 셸 스톡 아이콘을 가져옵니다.

GetStockIcon(StockIconId, Int32)

지정된 Windows 셸 스톡 아이콘을 가져옵니다.

GetStockIcon(StockIconId, StockIconOptions)

Source:
SystemIcons.cs
Source:
SystemIcons.cs
Source:
SystemIcons.cs
Source:
SystemIcons.cs
Source:
SystemIcons.cs
Source:
SystemIcons.cs

지정된 Windows 셸 스톡 아이콘을 가져옵니다.

public static System.Drawing.Icon GetStockIcon(System.Drawing.StockIconId stockIcon, System.Drawing.StockIconOptions options = System.Drawing.StockIconOptions.Default);
static member GetStockIcon : System.Drawing.StockIconId * System.Drawing.StockIconOptions -> System.Drawing.Icon
Public Shared Function GetStockIcon (stockIcon As StockIconId, Optional options As StockIconOptions = System.Drawing.StockIconOptions.Default) As Icon

매개 변수

stockIcon
StockIconId

검색할 주식 아이콘입니다.

options
StockIconOptions

아이콘 검색 옵션을 지정하는 열거형 값의 비트 조합입니다.

반품

요청된 Icon.

예외

stockIcon 가 잘못되었습니다 StockIconId.

설명

SystemIcons 정적 아이콘 속성과 달리 이 API는 실행 중인 Windows 테마로 지정된 아이콘을 반환합니다. 또한 반환 Icon 된 값은 캐시되지 않으며 더 이상 필요하지 않은 경우 삭제해야 합니다.

적용 대상

GetStockIcon(StockIconId, Int32)

Source:
SystemIcons.cs
Source:
SystemIcons.cs
Source:
SystemIcons.cs
Source:
SystemIcons.cs
Source:
SystemIcons.cs
Source:
SystemIcons.cs

지정된 Windows 셸 스톡 아이콘을 가져옵니다.

public:
 static System::Drawing::Icon ^ GetStockIcon(System::Drawing::StockIconId stockIcon, int size);
public static System.Drawing.Icon GetStockIcon(System.Drawing.StockIconId stockIcon, int size);
static member GetStockIcon : System.Drawing.StockIconId * int -> System.Drawing.Icon
Public Shared Function GetStockIcon (stockIcon As StockIconId, size As Integer) As Icon

매개 변수

stockIcon
StockIconId

검색할 주식 아이콘입니다.

size
Int32

원하는 크기입니다. 지정된 크기가 없으면 요청된 크기를 제공하기 위해 기존 크기가 다시 샘플링됩니다.

반품

요청된 Icon.

적용 대상