Gets the handle to an icon.
Namespace: Microsoft.VisualStudio.Package
Assembly: MPF.Project.NonShipping (in MPF.Project.NonShipping.dll)
Syntax
'宣言
Public Function GetIconHandle ( _
iconIndex As Integer _
) As IntPtr
'使用
Dim instance As ImageHandler
Dim iconIndex As Integer
Dim returnValue As IntPtr
returnValue = instance.GetIconHandle(iconIndex)
public IntPtr GetIconHandle(
int iconIndex
)
public:
IntPtr GetIconHandle(
int iconIndex
)
public function GetIconHandle(
iconIndex : int
) : IntPtr
Parameters
iconIndex
Type: System.Int32The position of the icon in the ImageHandler.
Return Value
Type: System.IntPtr
A handle to the specified icon.
Permissions
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.