IVsContainedLanguageColorizer.ColorizeLineFragment 메서드
기록 될 수 있습니다.
네임스페이스: Microsoft.VisualStudio.TextManager.Interop
어셈블리: Microsoft.VisualStudio.TextManager.Interop.8.0(Microsoft.VisualStudio.TextManager.Interop.8.0.dll)
구문
‘선언
Function ColorizeLineFragment ( _
iLine As Integer, _
iIndex As Integer, _
iLength As Integer, _
pszText As String, _
iState As Integer, _
<OutAttribute> ByRef pAttributes As UInteger, _
<OutAttribute> ByRef piNewState As Integer _
) As Integer
int ColorizeLineFragment(
int iLine,
int iIndex,
int iLength,
string pszText,
int iState,
out uint pAttributes,
out int piNewState
)
int ColorizeLineFragment(
[InAttribute] int iLine,
[InAttribute] int iIndex,
[InAttribute] int iLength,
[InAttribute] String^ pszText,
[InAttribute] int iState,
[OutAttribute] unsigned int% pAttributes,
[OutAttribute] int% piNewState
)
abstract ColorizeLineFragment :
iLine:int *
iIndex:int *
iLength:int *
pszText:string *
iState:int *
pAttributes:uint32 byref *
piNewState:int byref -> int
function ColorizeLineFragment(
iLine : int,
iIndex : int,
iLength : int,
pszText : String,
iState : int,
pAttributes : uint,
piNewState : int
) : int
매개 변수
iLine
형식: Int32[in] 조정 하 게 하는 줄 번호입니다.
iIndex
형식: Int32[in] 시작 문자 줄 조각에 대 한 인덱스입니다.
iLength
형식: Int32[in] 색을 지정 하는 문자 수입니다.
pszText
형식: String[in] 색을 지정 하는 실제 텍스트입니다. iLength 매개 변수는 색을 지정 하려면이 문자열의 문자 수를 지정 합니다.
iState
형식: Int32[in] 줄 시작 부분에 구문 분석의 상태를 나타내는 colorizer로 사용 되는 상태 값입니다. 구문 분석 상태에 각 colorizer 사용자 지정입니다.
pAttributes
형식: UInt32%[out] 텍스트의 색입니다.
piNewState
형식: Int32%[out] 지정 된 텍스트의 끝에 구문 분석 된 상태입니다.
반환 값
형식: Int32
성공 하면 반환 S_OK. 그렇지 않으면 오류 코드를 반환 합니다.
설명
COM 시그니처
Singlefileeditor.idl에서:
long IVsContainedLanguageColorizer::ColorizeLineFragment(
[in] long iLine,
[in] long iIndex,
[in] long iLength,
[in] const WCHAR *pszText,
[in] long iState,
[out] ULONG * pAttributes
);
.NET Framework 보안
- 직접 실행 호출자의 경우 완전히 신뢰합니다. 이 멤버는 부분적으로 신뢰할 수 있는 코드에서 사용할 수 없습니다. 자세한 내용은 부분 신뢰 코드에서 라이브러리 사용를 참조하세요.