次の方法で共有


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

'宣言
Function SetToolbarVisibleInFullScreen ( _
    pguidCmdGroup As Guid(), _
    dwToolbarId As UInteger, _
    fVisibleInFullScreen As Integer _
) As Integer
'使用
Dim instance As IVsUIShell
Dim pguidCmdGroup As Guid()
Dim dwToolbarId As UInteger
Dim fVisibleInFullScreen As Integer
Dim returnValue As Integer

returnValue = instance.SetToolbarVisibleInFullScreen(pguidCmdGroup, _
    dwToolbarId, fVisibleInFullScreen)
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<System.Guid[]
    [in] Unique identifier of the toolbar group; can be nulla null reference (Nothing in Visual Basic) to specify the standard group.
  • dwToolbarId
    Type: System.UInt32
    [in] Double word containing the toolbar id.
  • fVisibleInFullScreen
    Type: System.Int32
    [in] true indicates that the toolbar is visible in full-screen mode. The default value is false.

Return Value

Type: System.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

IVsUIShell Members

Microsoft.VisualStudio.Shell.Interop Namespace