Compartilhar via


IVsTextStorageColorState.GetColorStateAtStartOfLine Method

Gets the color state at the start of the specified line.

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

Syntax

'Declaration
Function GetColorStateAtStartOfLine ( _
    iLine As Integer, _
    <OutAttribute> ByRef piState As Integer _
) As Integer
int GetColorStateAtStartOfLine(
    int iLine,
    out int piState
)
int GetColorStateAtStartOfLine(
    [InAttribute] int iLine, 
    [OutAttribute] int% piState
)
abstract GetColorStateAtStartOfLine : 
        iLine:int * 
        piState:int byref -> int
function GetColorStateAtStartOfLine(
    iLine : int, 
    piState : int
) : int

Parameters

  • iLine
    Type: System.Int32

    [in] The number of the line of interest.

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 IVsTextStorageColorState::GetColorStateAtStartOfLine(
   [in] long iLine, 
   [out] long *piState
);

.NET Framework Security

See Also

Reference

IVsTextStorageColorState Interface

Microsoft.VisualStudio.TextManager.Interop Namespace