2 writes to Length
PresentationCore (2)
MS\Internal\TextFormatting\SimpleTextLine.cs (2)
1677out run.Length 1716Length = length;
39 references to Length
PresentationCore (39)
MS\Internal\TextFormatting\SimpleTextLine.cs (39)
130cp += run.Length; 182cp += run.Length; 278if(run.Length > 0) 283trailing += run.Length; 284_cpLengthEOT += run.Length; 293_cpLength += run.Length; 339t -= run.Length; 427if(run.Length > 0) 434nonHiddenLength += run.Length; 455if(dcp <= run.Length) 460dcp -= run.Length; 832&& ich + run.Length > dcp) 838int afterLast = Math.Min(ich + run.Length, dcp + textLength) + _cpFirst; 858ich += run.Length; 886textRunSpans[i] = new TextSpan<TextRun>(_runs[i].Length, _runs[i].TextRun); 906if (run.Length > 0 && !run.Ghost) 937new CharacterBufferRange(run.CharBufferReference, run.Length), 953run.Length, 960currentCp += run.Length; 1209cpRunStart += _runs[runIndex++].Length; 1230cpRunEnd += _runs[runIndex].Length - 1; 1245cpVisible = cpRunEnd - _runs[runIndex].Length + 1; 1249cpRunEnd -= _runs[runIndex--].Length; 1266while (runIndex < _runs.Length && cpRunStart + _runs[runIndex].Length <= cp) 1268cpRunStart += _runs[runIndex++].Length; 1687new CharacterBufferRange(run.CharBufferReference, run.Length), 1735if (Length <= 0 || this.Ghost) 1775CharacterBufferRange charBufferRange = new CharacterBufferRange(CharBufferReference, Length); 1823int underlineLength = Length; 1905trailing += Length; 1918int dcp = Length; 1962if (dcp > Length) 1964dcp = Length; 1982return (EOT || idealDistance <= 0) ? new CharacterHit() : new CharacterHit(Length, 0); 1985if (Length <= 0) 1998while (dcp < Length && idealDistance >= (Tab ? (currentIdealAdvance = IdealWidth / Length) 2005if (dcp < Length) 2012return new CharacterHit(Length - 1, 1);