IVsObjectList2.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:

[C++]

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

此方法返回给定树列表项的状态。 项目可能具有多个状态。 这些状态取自 _VSTREESTATECHANGEREFRESH 枚举。

适用于