IVsPreviewChangesList.ToggleState(UInt32, UInt32) 方法

定义

切换预览列表中指定项的选中状态。

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

参数

index
UInt32

中要更改其选中状态的项的索引。

ptscr
UInt32

弄从枚举返回一个值 _VSTREESTATECHANGEREFRESH ,该值指示是否还需要在显示中刷新此项的任何子级。

返回

Int32

如果该方法成功,则它会返回 S_OK。 如果该方法失败,则会返回错误代码。

注解

COM 签名

从 vsshell80:

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

适用于