PackageUtilities.GetImageList Method (Assembly, [])

Creates a list of bitmaps from the specified assembly and resource names.

Namespace:  Microsoft.VisualStudio.Shell
Assembly:  Microsoft.VisualStudio.Shell (in Microsoft.VisualStudio.Shell.dll)

Syntax

'宣言
Public Shared Function GetImageList ( _
    assembly As Assembly, _
    resourceNames As String() _
) As ImageList
'使用
Dim assembly As Assembly
Dim resourceNames As String()
Dim returnValue As ImageList

returnValue = PackageUtilities.GetImageList(assembly, _
    resourceNames)
public static ImageList GetImageList(
    Assembly assembly,
    string[] resourceNames
)
public:
static ImageList^ GetImageList(
    Assembly^ assembly, 
    array<String^>^ resourceNames
)
public static function GetImageList(
    assembly : Assembly, 
    resourceNames : String[]
) : ImageList

Parameters

  • resourceNames
    Type: []

    An array of resource names (representing bitmaps) in the assembly.

Return Value

Type: System.Windows.Forms.ImageList

An ImageList containing a series of 16 by 16 pixel bitmaps.

Permissions

See Also

Reference

PackageUtilities Class

PackageUtilities Members

GetImageList Overload

Microsoft.VisualStudio.Shell Namespace