IVsHiddenRegion::SetState Method (UInt32, UInt32)

 

Sets the state of the hidden region.

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

int SetState(
	unsigned int dwState,
	unsigned int dwUpdate
)

Parameters

dwState
Type: System::UInt32

[in] State of the hidden region in regards to whether the region is expanded or collapsed. For more information, see HIDDEN_REGION_STATE.

dwUpdate
Type: System::UInt32

[in] State of the hidden region in regards to whether the region is added to the Undo/Redo stack. For more information, see CHANGE_HIDDEN_REGION_FLAGS.

Return Value

Type: System::Int32

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

From textmgr.idl:

HRESULT IVsHiddenRegion::SetState(
   [in] DWORD dwState, 
   [in] DWORD dwUpdate
);
Return to top
Show: