Bagikan melalui


IVsLiteTreeEvents.OnQueryItemVisible Method

Checks whether specified item is visible.

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

Syntax

'Declaration
Function OnQueryItemVisible ( _
    AbsIndex As UInteger, _
    <OutAttribute> ByRef pfVisible As Integer _
) As Integer
int OnQueryItemVisible(
    uint AbsIndex,
    out int pfVisible
)
int OnQueryItemVisible(
    [InAttribute] unsigned int AbsIndex, 
    [OutAttribute] int% pfVisible
)
abstract OnQueryItemVisible : 
        AbsIndex:uint32 * 
        pfVisible:int byref -> int 
function OnQueryItemVisible(
    AbsIndex : uint, 
    pfVisible : int
) : int

Parameters

  • AbsIndex
    Type: System.UInt32
    [In] An integer containing the Absolute Item Index to query.
  • pfVisible
    Type: System.Int32%
    [Out] A pointer to a Boolean value that return TRUE if the Item is visible, FALSE if not visible.

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 IVsLiteTreeEvents::OnQueryItemVisible(
   [in] ULONG AbsIndex, 
   [out] BOOL *pfVisible
);

.NET Framework Security

See Also

Reference

IVsLiteTreeEvents Interface

Microsoft.VisualStudio.Shell.Interop Namespace