ImageList.ColorDepth プロパティ
アセンブリ: System.Windows.Forms (system.windows.forms.dll 内)

Dim instance As ImageList Dim value As ColorDepth value = instance.ColorDepth instance.ColorDepth = value
public ColorDepth ColorDepth { get; set; }
public: property ColorDepth ColorDepth { ColorDepth get (); void set (ColorDepth value); }
/** @property */ public ColorDepth get_ColorDepth () /** @property */ public void set_ColorDepth (ColorDepth value)
イメージに対して使用できる色の数。.NET Framework Version 1.0 の場合、既定値は Depth4Bit です。.NET Framework Version 1.1 以降の場合、既定値は Depth8Bit です。


色深度を新しい値に設定すると、そのイメージ リストに対する Handle が再び作成されます。
ColorDepth プロパティを設定するとハンドルが再作成されるため、Images プロパティを設定する前に ColorDepth を設定する必要があります。コード内で Images プロパティを設定した後、ColorDepth プロパティまたは ImageSize プロパティを設定すると、Images プロパティに設定されているイメージ セットのコレクションが削除されます。

Windows 98, Windows 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


Weblioに収録されているすべての辞書からImageList.ColorDepth プロパティを検索する場合は、下記のリンクをクリックしてください。

- ImageList.ColorDepth プロパティのページへのリンク