要写入。
命名空间: 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] colorized 的行的编号。
iIndex
类型:Int32[in] 行片段的起始字符的索引。
iLength
类型:Int32[in] colorize 的字符数。
pszText
类型:String[in] colorize 的实际文本。 iLength 参数指定字符数目。此字符串的 colorize。
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 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关详细信息,请参阅通过部分受信任的代码使用库。