42 references to RunType
PresentationFramework (42)
src\Framework\System\Windows\Documents\Speller.cs (6)
125_statusTable.IsRunType(position.CreateStaticPointer(), direction, SpellerStatusTable.RunType.Dirty)) 156SpellerStatusTable.RunType runType; 160if (runType == SpellerStatusTable.RunType.Error) 163if (runType == SpellerStatusTable.RunType.Dirty) 168Invariant.Assert(runType != SpellerStatusTable.RunType.Dirty); 170if (runType == SpellerStatusTable.RunType.Error)
src\Framework\System\Windows\Documents\SpellerHighlightLayer.cs (1)
74return _speller.StatusTable.IsRunType(textPosition, direction, SpellerStatusTable.RunType.Error);
src\Framework\System\Windows\Documents\SpellerStatusTable.cs (35)
44_runList.Add(new Run(textContainerStart, RunType.Dirty)); 97if (run.RunType == RunType.Dirty) 111MarkRange(start, end, RunType.Clean); 118MarkRange(start, end, RunType.Dirty); 134Invariant.Assert(run.RunType == RunType.Clean); 142run.RunType = RunType.Error; 148_runList.Insert(runIndex + 1, new Run(start, RunType.Error)); 155_runList.Insert(runIndex + 1, new Run(end, RunType.Clean)); 165internal bool IsRunType(StaticTextPointer textPosition, LogicalDirection direction, RunType runType) 265internal bool GetRun(StaticTextPointer position, LogicalDirection direction, out RunType runType, out StaticTextPointer end) 269runType = RunType.Clean; 321if (run.RunType == RunType.Clean || run.RunType == RunType.Dirty) 381private void MarkRange(ITextPointer start, ITextPointer end, RunType runType) 391Invariant.Assert(runType == RunType.Clean || runType == RunType.Dirty); 437private void AddRun(int index, ITextPointer start, ITextPointer end, RunType runType) 441RunType oppositeRunType; 444Invariant.Assert(runType == RunType.Clean || runType == RunType.Dirty); 448oppositeRunType = (runType == RunType.Clean) ? RunType.Dirty : RunType.Clean; 582MarkRange(start, end, RunType.Dirty); 605if (run.RunType != RunType.Dirty) 609run.RunType = RunType.Dirty; // 611if (index > 0 && GetRun(index - 1).RunType == RunType.Dirty) 645if (index < _runList.Count && GetRun(index).RunType == RunType.Dirty) 677RunType previousRunType; 683previousRunType = RunType.Clean; 784return run.RunType != RunType.Clean && run.RunType != RunType.Dirty; 800internal Run(ITextPointer position, RunType runType) 812internal RunType RunType 820private RunType _runType;