44 references to RunType
PresentationFramework (44)
System\Windows\Documents\Speller.cs (6)
116_statusTable.IsRunType(position.CreateStaticPointer(), direction, SpellerStatusTable.RunType.Dirty)) 147SpellerStatusTable.RunType runType; 151if (runType == SpellerStatusTable.RunType.Error) 154if (runType == SpellerStatusTable.RunType.Dirty) 159Invariant.Assert(runType != SpellerStatusTable.RunType.Dirty); 161if (runType == SpellerStatusTable.RunType.Error)
System\Windows\Documents\SpellerHighlightLayer.cs (1)
71return _speller.StatusTable.IsRunType(textPosition, direction, SpellerStatusTable.RunType.Error);
System\Windows\Documents\SpellerStatusTable.cs (37)
42_runList.Add(new Run(textContainerStart, RunType.Dirty)); 95if (run.RunType == RunType.Dirty) 109MarkRange(start, end, RunType.Clean); 116MarkRange(start, end, RunType.Dirty); 132Invariant.Assert(run.RunType == RunType.Clean); 140run.RunType = RunType.Error; 146_runList.Insert(runIndex + 1, new Run(start, RunType.Error)); 153_runList.Insert(runIndex + 1, new Run(end, RunType.Clean)); 163internal bool IsRunType(StaticTextPointer textPosition, LogicalDirection direction, RunType runType) 263internal bool GetRun(StaticTextPointer position, LogicalDirection direction, out RunType runType, out StaticTextPointer end) 267runType = RunType.Clean; 319if (run.RunType == RunType.Clean || run.RunType == RunType.Dirty) 379private void MarkRange(ITextPointer start, ITextPointer end, RunType runType) 389Invariant.Assert(runType == RunType.Clean || runType == RunType.Dirty); 435private void AddRun(int index, ITextPointer start, ITextPointer end, RunType runType) 439RunType oppositeRunType; 442Invariant.Assert(runType == RunType.Clean || runType == RunType.Dirty); 446oppositeRunType = (runType == RunType.Clean) ? RunType.Dirty : RunType.Clean; 580MarkRange(start, end, RunType.Dirty); 603if (run.RunType != RunType.Dirty) 607run.RunType = RunType.Dirty; // Should just be one char, unless its an error. 609if (index > 0 && GetRun(index - 1).RunType == RunType.Dirty) 643if (index < _runList.Count && GetRun(index).RunType == RunType.Dirty) 675RunType previousRunType; 681previousRunType = RunType.Clean; 724if (run.RunType == RunType.Clean) 728else if (run.RunType == RunType.Dirty) 781return run.RunType != RunType.Clean && run.RunType != RunType.Dirty; 797internal Run(ITextPointer position, RunType runType) 809internal RunType RunType 817private RunType _runType;