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