C# Класс ICSharpCode.TextEditor.Document.DefaultHighlightingStrategy

Наследование: IHighlightingStrategy
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
activeRuleSet ICSharpCode.TextEditor.Document.HighlightRuleSet
activeSpan ICSharpCode.TextEditor.Document.Span
currentLength int
currentLine LineSegment
currentLineNumber int
currentOffset int
currentSpanStack SpanStack
inSpan bool

Открытые методы

Метод Описание
AddRuleSet ( ICSharpCode.TextEditor.Document.HighlightRuleSet aRuleSet ) : void
DefaultHighlightingStrategy ( ) : System
DefaultHighlightingStrategy ( string name ) : System
FindHighlightRuleSet ( string name ) : ICSharpCode.TextEditor.Document.HighlightRuleSet
GetColor ( IDocument document, LineSegment currentSegment, int currentOffset, int currentLength ) : HighlightColor
GetColorFor ( string name ) : HighlightColor
GetRuleSet ( ICSharpCode.TextEditor.Document.Span aSpan ) : ICSharpCode.TextEditor.Document.HighlightRuleSet
MarkTokens ( IDocument document ) : void
MarkTokens ( IDocument document, List inputLines ) : void
ResolveReferences ( ) : void
SetColorFor ( string name, HighlightColor color ) : void

Защищенные методы

Метод Описание
GetColor ( ICSharpCode.TextEditor.Document.HighlightRuleSet ruleSet, IDocument document, LineSegment currentSegment, int currentOffset, int currentLength ) : HighlightColor
ImportSettingsFrom ( DefaultHighlightingStrategy source ) : void
OnParsedLine ( IDocument document, LineSegment currentLine, List words ) : void
OverrideSpan ( string spanBegin, IDocument document, List words, ICSharpCode.TextEditor.Document.Span span, int &lineOffset ) : bool

Приватные методы

Метод Описание
GetRegString ( LineSegment lineSegment, char expr, int index, IDocument document ) : string

get the string, which matches the regular expression expr, in string s2 at index

MarkTokensInLine ( IDocument document, int lineNumber, bool &spanChanged ) : bool
MatchExpr ( LineSegment lineSegment, char expr, int index, IDocument document, bool ignoreCase ) : bool

returns true, if the get the string s2 at index matches the expression expr

ParseLine ( IDocument document ) : List
PushCurWord ( IDocument document, HighlightColor &markNext, List words ) : void

pushes the curWord string on the word list, with the correct color.

ResolveExternalReferences ( ) : void
ResolveRuleSetReferences ( ) : void
UpdateSpanStateVariables ( ) : void

Описание методов

AddRuleSet() публичный Метод

public AddRuleSet ( ICSharpCode.TextEditor.Document.HighlightRuleSet aRuleSet ) : void
aRuleSet ICSharpCode.TextEditor.Document.HighlightRuleSet
Результат void

DefaultHighlightingStrategy() публичный Метод

public DefaultHighlightingStrategy ( ) : System
Результат System

DefaultHighlightingStrategy() публичный Метод

public DefaultHighlightingStrategy ( string name ) : System
name string
Результат System

FindHighlightRuleSet() публичный Метод

public FindHighlightRuleSet ( string name ) : ICSharpCode.TextEditor.Document.HighlightRuleSet
name string
Результат ICSharpCode.TextEditor.Document.HighlightRuleSet

GetColor() защищенный Метод

protected GetColor ( ICSharpCode.TextEditor.Document.HighlightRuleSet ruleSet, IDocument document, LineSegment currentSegment, int currentOffset, int currentLength ) : HighlightColor
ruleSet ICSharpCode.TextEditor.Document.HighlightRuleSet
document IDocument
currentSegment LineSegment
currentOffset int
currentLength int
Результат HighlightColor

GetColor() публичный Метод

public GetColor ( IDocument document, LineSegment currentSegment, int currentOffset, int currentLength ) : HighlightColor
document IDocument
currentSegment LineSegment
currentOffset int
currentLength int
Результат HighlightColor

GetColorFor() публичный Метод

public GetColorFor ( string name ) : HighlightColor
name string
Результат HighlightColor

GetRuleSet() публичный Метод

public GetRuleSet ( ICSharpCode.TextEditor.Document.Span aSpan ) : ICSharpCode.TextEditor.Document.HighlightRuleSet
aSpan ICSharpCode.TextEditor.Document.Span
Результат ICSharpCode.TextEditor.Document.HighlightRuleSet

ImportSettingsFrom() защищенный Метод

protected ImportSettingsFrom ( DefaultHighlightingStrategy source ) : void
source DefaultHighlightingStrategy
Результат void

MarkTokens() публичный Метод

public MarkTokens ( IDocument document ) : void
document IDocument
Результат void

MarkTokens() публичный Метод

public MarkTokens ( IDocument document, List inputLines ) : void
document IDocument
inputLines List
Результат void

OnParsedLine() защищенный Метод

protected OnParsedLine ( IDocument document, LineSegment currentLine, List words ) : void
document IDocument
currentLine LineSegment
words List
Результат void

OverrideSpan() защищенный Метод

protected OverrideSpan ( string spanBegin, IDocument document, List words, ICSharpCode.TextEditor.Document.Span span, int &lineOffset ) : bool
spanBegin string
document IDocument
words List
span ICSharpCode.TextEditor.Document.Span
lineOffset int
Результат bool

ResolveReferences() публичный Метод

public ResolveReferences ( ) : void
Результат void

SetColorFor() публичный Метод

public SetColorFor ( string name, HighlightColor color ) : void
name string
color HighlightColor
Результат void

Описание свойств

activeRuleSet защищенное свойство

protected HighlightRuleSet,ICSharpCode.TextEditor.Document activeRuleSet
Результат ICSharpCode.TextEditor.Document.HighlightRuleSet

activeSpan защищенное свойство

protected Span,ICSharpCode.TextEditor.Document activeSpan
Результат ICSharpCode.TextEditor.Document.Span

currentLength защищенное свойство

protected int currentLength
Результат int

currentLine защищенное свойство

protected LineSegment,ICSharpCode.TextEditor.Document currentLine
Результат LineSegment

currentLineNumber защищенное свойство

protected int currentLineNumber
Результат int

currentOffset защищенное свойство

protected int currentOffset
Результат int

currentSpanStack защищенное свойство

protected SpanStack currentSpanStack
Результат SpanStack

inSpan защищенное свойство

protected bool inSpan
Результат bool