Window.SetTabPicture(Object) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Sets the picture to display in a tool window.
public:
void SetTabPicture(System::Object ^ Picture);
public:
void SetTabPicture(Platform::Object ^ Picture);
void SetTabPicture(winrt::Windows::Foundation::IInspectable const & Picture);
[System.Runtime.InteropServices.DispId(138)]
public void SetTabPicture (object Picture);
[<System.Runtime.InteropServices.DispId(138)>]
abstract member SetTabPicture : obj -> unit
Public Sub SetTabPicture (Picture As Object)
Parameters
- Picture
- Object
The picture to place into the tool window.
- Attributes
Examples
SetTabPicture requires a 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.