다음을 통해 공유


IVsColorizer.GetStartState Method

Determines the state in which colorization of the first line of the buffer should begin.

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

Syntax

‘선언
Function GetStartState ( _
    <OutAttribute> ByRef piStartState As Integer _
) As Integer
‘사용 방법
Dim instance As IVsColorizer
Dim piStartState As Integer
Dim returnValue As Integer

returnValue = instance.GetStartState(piStartState)
int GetStartState(
    out int piStartState
)
int GetStartState(
    [OutAttribute] int% piStartState
)
abstract GetStartState : 
        piStartState:int byref -> int 
function GetStartState(
    piStartState : int
) : int

Parameters

  • piStartState
    Type: System.Int32%
    [out] Pointer to a long integer that represents the start state of the colorizer.

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 IVsColorizer::GetStartState(
   [out] long *piStartState
);

This method is called only if the colorizer needs state maintenance, that is, when the GetStateMaintenanceFlag method returns true.

GetStartState indicates the state in which colorization of the first line of the buffer should start.

.NET Framework Security

See Also

Reference

IVsColorizer Interface

IVsColorizer Members

Microsoft.VisualStudio.TextManager.Interop Namespace