Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Sets the state of the hidden region.
Namespace: Microsoft.VisualStudio.TextManager.Interop
Assembly: Microsoft.VisualStudio.TextManager.Interop (in Microsoft.VisualStudio.TextManager.Interop.dll)
Syntax
'Declaration
Function SetState ( _
dwState As UInteger, _
dwUpdate As UInteger _
) As Integer
int SetState(
uint dwState,
uint dwUpdate
)
int SetState(
[InAttribute] unsigned int dwState,
[InAttribute] unsigned int dwUpdate
)
abstract SetState :
dwState:uint32 *
dwUpdate:uint32 -> int
function SetState(
dwState : uint,
dwUpdate : uint
) : int
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.
Remarks
COM Signature
From textmgr.idl:
HRESULT IVsHiddenRegion::SetState(
[in] DWORD dwState,
[in] DWORD dwUpdate
);
.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.