44 references to RunType
PresentationFramework (44)
System\Windows\Documents\Speller.cs (6)
120_statusTable.IsRunType(position.CreateStaticPointer(), direction, SpellerStatusTable.RunType.Dirty)) 151SpellerStatusTable.RunType runType; 155if (runType == SpellerStatusTable.RunType.Error) 158if (runType == SpellerStatusTable.RunType.Dirty) 163Invariant.Assert(runType != SpellerStatusTable.RunType.Dirty); 165if (runType == SpellerStatusTable.RunType.Error)
System\Windows\Documents\SpellerHighlightLayer.cs (1)
74return _speller.StatusTable.IsRunType(textPosition, direction, SpellerStatusTable.RunType.Error);
System\Windows\Documents\SpellerStatusTable.cs (37)
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; // Should just be one char, unless its an error. 611if (index > 0 && GetRun(index - 1).RunType == RunType.Dirty) 645if (index < _runList.Count && GetRun(index).RunType == RunType.Dirty) 677RunType previousRunType; 683previousRunType = RunType.Clean; 726if (run.RunType == RunType.Clean) 730else if (run.RunType == RunType.Dirty) 783return run.RunType != RunType.Clean && run.RunType != RunType.Dirty; 799internal Run(ITextPointer position, RunType runType) 811internal RunType RunType 819private RunType _runType;