This topic has not yet been rated - Rate this topic

TaskProvider.ToolbarId Property

Gets or sets this provider's toolbar ID.

Namespace:  Microsoft.VisualStudio.Shell
Assembly:  Microsoft.VisualStudio.Shell.10.0 (in Microsoft.VisualStudio.Shell.10.0.dll)
public int ToolbarId { get; set; }

Property Value

Type: System.Int32
The toolbar ID.

Set the ToolbarGroup to null and ToolbarId to 0 to indicate that this provider has no toolbar. If you do provide a toolbar, you must include the provider dropdown as the first group, by including this line in your CTC file:

guidSHLMainMenu:IDG_VS_TASKLIST_PROVIDERLIST, <your toolbar's group>:<your toolbar menu ID>, 0x0100;

For examples of this use, see ShellCmdPlace.ctc in the Common\Inc directory of the Visual Studio SDK.

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.