共用方式為


IVsSimplePreviewChangesList.ToggleState(UInt32, UInt32) Method

Definition

Toggles the checked state of the specified item in the preview list.

public:
 int ToggleState(System::UInt32 index, [Runtime::InteropServices::Out] System::UInt32 % ptscr);
int ToggleState(unsigned int index, [Runtime::InteropServices::Out] unsigned int & ptscr);
public int ToggleState (uint index, out uint ptscr);
abstract member ToggleState : uint32 * uint32 -> int
Public Function ToggleState (index As UInteger, ByRef ptscr As UInteger) As Integer

Parameters

index
UInt32

[in] The index of the item for which to change the checked state.

ptscr
UInt32

[out] Returns a value from the _VSTREESTATECHANGEREFRESH enumeration indicating whether any children of this item also need to be refreshed in the display.

Returns

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

Remarks

COM Signature

From vsshell80.idl:

HRESULT IVsSimplePreviewChangesList::ToggleState(  
   [in] ULONG                      Index,   
   [out] VSTREESTATECHANGEREFRESH *ptscr  
);  

Applies to