IVsLiteTreeEvents.OnToggleExpansion Method
Called when an item enters or leaves the expanded state.
Namespace: Microsoft.VisualStudio.Shell.Interop
Assembly: Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)
Syntax
'Declaration
Function OnToggleExpansion ( _
AbsIndex As UInteger, _
cChange As Integer _
) As Integer
'Usage
Dim instance As IVsLiteTreeEvents
Dim AbsIndex As UInteger
Dim cChange As Integer
Dim returnValue As Integer
returnValue = instance.OnToggleExpansion(AbsIndex, _
cChange)
int OnToggleExpansion(
uint AbsIndex,
int cChange
)
int OnToggleExpansion(
[InAttribute] unsigned int AbsIndex,
[InAttribute] int cChange
)
abstract OnToggleExpansion :
AbsIndex:uint32 *
cChange:int -> int
function OnToggleExpansion(
AbsIndex : uint,
cChange : int
) : int
Parameters
- AbsIndex
Type: System.UInt32
[In] An unsigned integer containing the Absolute Index of the Item.
- cChange
Type: System.Int32
[In] An integer indicating the state change of the specified item.
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::OnToggleExpansion(
[in] ULONG AbsIndex,
[in] long cChange
);
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.