IVsToolbox6.IsTabVisible Method

Indicates whether the specified tab is visible (for example, has any enabled items) in the current context.

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

Syntax

'Declaration
Function IsTabVisible ( _
    szID As String, _
    fRefresh As Boolean _
) As Boolean
bool IsTabVisible(
    string szID,
    bool fRefresh
)
bool IsTabVisible(
    [InAttribute] String^ szID, 
    [InAttribute] bool fRefresh
)
abstract IsTabVisible : 
        szID:string * 
        fRefresh:bool -> bool
function IsTabVisible(
    szID : String, 
    fRefresh : boolean
) : boolean

Parameters

  • szID
    Type: String

    [in] The identifier of the tab to check for visibility.

  • fRefresh
    Type: Boolean

    [in] Specifies how to handle the tab’s state. If this parameter is false, the last-known visible state of the tab will be returned, which should match what is shown in the UI. If this parameter is true, the tab's visibility will be re-evaluated based on its items, so the most up-to-date status will be returned; but that may not match what is shown in the UI yet.

Return Value

Type: Boolean
true if the tab is visible, or false if the tab is invisible.

.NET Framework Security

See Also

Reference

IVsToolbox6 Interface

Microsoft.VisualStudio.Shell.Interop Namespace