44 references to RunType
PresentationFramework (44)
System\Windows\Documents\Speller.cs (6)
115
_statusTable.IsRunType(position.CreateStaticPointer(), direction, SpellerStatusTable.
RunType
.Dirty))
146
SpellerStatusTable.
RunType
runType;
150
if (runType == SpellerStatusTable.
RunType
.Error)
153
if (runType == SpellerStatusTable.
RunType
.Dirty)
158
Invariant.Assert(runType != SpellerStatusTable.
RunType
.Dirty);
160
if (runType == SpellerStatusTable.
RunType
.Error)
System\Windows\Documents\SpellerHighlightLayer.cs (1)
70
return _speller.StatusTable.IsRunType(textPosition, direction, SpellerStatusTable.
RunType
.Error);
System\Windows\Documents\SpellerStatusTable.cs (37)
41
_runList.Add(new Run(textContainerStart,
RunType
.Dirty));
94
if (run.RunType ==
RunType
.Dirty)
108
MarkRange(start, end,
RunType
.Clean);
115
MarkRange(start, end,
RunType
.Dirty);
131
Invariant.Assert(run.RunType ==
RunType
.Clean);
139
run.RunType =
RunType
.Error;
145
_runList.Insert(runIndex + 1, new Run(start,
RunType
.Error));
152
_runList.Insert(runIndex + 1, new Run(end,
RunType
.Clean));
162
internal bool IsRunType(StaticTextPointer textPosition, LogicalDirection direction,
RunType
runType)
262
internal bool GetRun(StaticTextPointer position, LogicalDirection direction, out
RunType
runType, out StaticTextPointer end)
266
runType =
RunType
.Clean;
318
if (run.RunType ==
RunType
.Clean || run.RunType ==
RunType
.Dirty)
378
private void MarkRange(ITextPointer start, ITextPointer end,
RunType
runType)
388
Invariant.Assert(runType ==
RunType
.Clean || runType ==
RunType
.Dirty);
434
private void AddRun(int index, ITextPointer start, ITextPointer end,
RunType
runType)
438
RunType
oppositeRunType;
441
Invariant.Assert(runType ==
RunType
.Clean || runType ==
RunType
.Dirty);
445
oppositeRunType = (runType ==
RunType
.Clean) ?
RunType
.Dirty :
RunType
.Clean;
579
MarkRange(start, end,
RunType
.Dirty);
602
if (run.RunType !=
RunType
.Dirty)
606
run.RunType =
RunType
.Dirty; // Should just be one char, unless its an error.
608
if (index > 0 && GetRun(index - 1).RunType ==
RunType
.Dirty)
642
if (index < _runList.Count && GetRun(index).RunType ==
RunType
.Dirty)
674
RunType
previousRunType;
680
previousRunType =
RunType
.Clean;
723
if (run.RunType ==
RunType
.Clean)
727
else if (run.RunType ==
RunType
.Dirty)
780
return run.RunType !=
RunType
.Clean && run.RunType !=
RunType
.Dirty;
796
internal Run(ITextPointer position,
RunType
runType)
808
internal
RunType
RunType
816
private
RunType
_runType;