Freigeben über


Window2.SetTabPicture Method

Loads a bitmap into a tabbed picture on a tab-linked tool window.

Namespace:  EnvDTE80
Assembly:  EnvDTE80 (in EnvDTE80.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: Object

    A path to a bitmap.

Remarks

SetTabPicture now takes a path to a bitmap as a possible value for the Picture argument. When a file path is supplied, the SetTabPicture method loads the bitmap and uses that as the tabbed picture on a tab-linked tool window.

SetTabPicture also takes a handle to a bitmap (HBITMAP) for the value of Picture, allowing the Add-in writer to pass a bitmap that has been loaded from resources. This form of passing a HBITMAP does not work if being called from within a Macro because HBITMAPs cannot be passed across process boundaries.

.NET Framework Security

See Also

Reference

Window2 Interface

EnvDTE80 Namespace