Partager via


IVsHiddenRegion.SetState Method

Sets the state of the hidden region.

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

Syntax

'Déclaration
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.

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

See Also

Reference

IVsHiddenRegion Interface

Microsoft.VisualStudio.TextManager.Interop Namespace