Window.SetTabPicture Method
Sets the picture to display in a tool window.
Namespace: EnvDTE
Assembly: EnvDTE (in EnvDTE.dll)
Syntax
'Declaration
Sub SetTabPicture ( _
Picture As Object _
)
void SetTabPicture(
Object Picture
)
void SetTabPicture(
Object^ Picture
)
abstract SetTabPicture :
Picture:Object -> unit
function SetTabPicture(
Picture : Object
)
Parameters
- Picture
Type: System.Object
The picture to place into the tool window.
Remarks
SetTabPicture adds an icon to the tab of an automation-created tool window so that when it is tab-linked, the tab displays an icon like other tool windows. The variant holds an IPictureDisp. The Picture must be either an icon (.ico) or bitmap (.bmp), and its dimensions must be 16x16 pixels.
The transparent color is 0x0000ff00 (pure green), so the background color can show through.
Examples
SetTabPicture requires a tool window. For an example of how to use this method, see the ToolWindow sample on the Visual Studio Automation Samples webpage.
.NET Framework Security
- 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.