Compartilhar via


IVsUIShell.SetToolbarVisibleInFullScreen Method

Sets the toolbar to visible when the window is in full-screen mode.

Namespace:  Microsoft.VisualStudio.Shell.Interop
Assembly:  Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)

Syntax

'Declaration
Function SetToolbarVisibleInFullScreen ( _
    pguidCmdGroup As Guid(), _
    dwToolbarId As UInteger, _
    fVisibleInFullScreen As Integer _
) As Integer
int SetToolbarVisibleInFullScreen(
    Guid[] pguidCmdGroup,
    uint dwToolbarId,
    int fVisibleInFullScreen
)
int SetToolbarVisibleInFullScreen(
    [InAttribute] array<Guid>^ pguidCmdGroup, 
    [InAttribute] unsigned int dwToolbarId, 
    [InAttribute] int fVisibleInFullScreen
)
abstract SetToolbarVisibleInFullScreen : 
        pguidCmdGroup:Guid[] * 
        dwToolbarId:uint32 * 
        fVisibleInFullScreen:int -> int
function SetToolbarVisibleInFullScreen(
    pguidCmdGroup : Guid[], 
    dwToolbarId : uint, 
    fVisibleInFullScreen : int
) : int

Parameters

  • pguidCmdGroup
    Type: array<Guid[]

    [in] Unique identifier of the toolbar group; can be nulla null reference (Nothing in Visual Basic) to specify the standard group.

  • dwToolbarId
    Type: UInt32

    [in] Double word containing the toolbar id.

  • fVisibleInFullScreen
    Type: Int32

    [in] true indicates that the toolbar is visible in full-screen mode. The default value is false.

Return Value

Type: Int32
If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Remarks

COM Signature

From vsshell.idl:

HRESULT IVsUIShell::SetToolbarVisibleInFullScreen(
   [in] const GUID *pguidCmdGroup,
   [in] DWORD dwToolbarId,
   [in] BOOL fVisibleInFullScreen
);

To access full-screen mode, choose Full Screen from the View menu, or press Shift+ALT+ENTER. The list of toolbar enumerations is provided in ShellCmdPlace.ctc and SharedCmdPlace.ctc. All toolbar groups begin the constant "IDM_VS_TOOL_".

.NET Framework Security

See Also

Reference

IVsUIShell Interface

Microsoft.VisualStudio.Shell.Interop Namespace