SystemIcons.GetStockIcon メソッド

定義

オーバーロード

名前 説明
GetStockIcon(StockIconId, StockIconOptions)

指定したWindowsシェルストックアイコンを取得します。

GetStockIcon(StockIconId, Int32)

指定したWindowsシェルストックアイコンを取得します。

GetStockIcon(StockIconId, StockIconOptions)

ソース:
SystemIcons.cs
ソース:
SystemIcons.cs
ソース:
SystemIcons.cs
ソース:
SystemIcons.cs
ソース:
SystemIcons.cs
ソース:
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)

ソース:
SystemIcons.cs
ソース:
SystemIcons.cs
ソース:
SystemIcons.cs
ソース:
SystemIcons.cs
ソース:
SystemIcons.cs
ソース:
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

適用対象