2 writes to Length
PresentationCore (2)
MS\Internal\TextFormatting\SimpleTextLine.cs (2)
1678out run.Length 1717Length = length;
39 references to Length
PresentationCore (39)
MS\Internal\TextFormatting\SimpleTextLine.cs (39)
131cp += run.Length; 183cp += run.Length; 279if(run.Length > 0) 284trailing += run.Length; 285_cpLengthEOT += run.Length; 294_cpLength += run.Length; 340t -= run.Length; 428if(run.Length > 0) 435nonHiddenLength += run.Length; 456if(dcp <= run.Length) 461dcp -= run.Length; 833&& ich + run.Length > dcp) 839int afterLast = Math.Min(ich + run.Length, dcp + textLength) + _cpFirst; 859ich += run.Length; 887textRunSpans[i] = new TextSpan<TextRun>(_runs[i].Length, _runs[i].TextRun); 907if (run.Length > 0 && !run.Ghost) 938new CharacterBufferRange(run.CharBufferReference, run.Length), 954run.Length, 961currentCp += run.Length; 1210cpRunStart += _runs[runIndex++].Length; 1231cpRunEnd += _runs[runIndex].Length - 1; 1246cpVisible = cpRunEnd - _runs[runIndex].Length + 1; 1250cpRunEnd -= _runs[runIndex--].Length; 1267while (runIndex < _runs.Length && cpRunStart + _runs[runIndex].Length <= cp) 1269cpRunStart += _runs[runIndex++].Length; 1688new CharacterBufferRange(run.CharBufferReference, run.Length), 1736if (Length <= 0 || this.Ghost) 1776CharacterBufferRange charBufferRange = new CharacterBufferRange(CharBufferReference, Length); 1824int underlineLength = Length; 1906trailing += Length; 1919int dcp = Length; 1963if (dcp > Length) 1965dcp = Length; 1983return (EOT || idealDistance <= 0) ? new CharacterHit() : new CharacterHit(Length, 0); 1986if (Length <= 0) 1999while (dcp < Length && idealDistance >= (Tab ? (currentIdealAdvance = IdealWidth / Length) 2006if (dcp < Length) 2013return new CharacterHit(Length - 1, 1);