2 writes to Length
PresentationCore (2)
MS\Internal\TextFormatting\SimpleTextLine.cs (2)
1689out run.Length 1728Length = length;
39 references to Length
PresentationCore (39)
MS\Internal\TextFormatting\SimpleTextLine.cs (39)
140cp += run.Length; 192cp += run.Length; 288if(run.Length > 0) 293trailing += run.Length; 294_cpLengthEOT += run.Length; 303_cpLength += run.Length; 349t -= run.Length; 437if(run.Length > 0) 444nonHiddenLength += run.Length; 465if(dcp <= run.Length) 470dcp -= run.Length; 848&& ich + run.Length > dcp) 854int afterLast = Math.Min(ich + run.Length, dcp + textLength) + _cpFirst; 874ich += run.Length; 902textRunSpans[i] = new TextSpan<TextRun>(_runs[i].Length, _runs[i].TextRun); 922if (run.Length > 0 && !run.Ghost) 953new CharacterBufferRange(run.CharBufferReference, run.Length), 969run.Length, 976currentCp += run.Length; 1225cpRunStart += _runs[runIndex++].Length; 1246cpRunEnd += _runs[runIndex].Length - 1; 1261cpVisible = cpRunEnd - _runs[runIndex].Length + 1; 1265cpRunEnd -= _runs[runIndex--].Length; 1282while (runIndex < _runs.Length && cpRunStart + _runs[runIndex].Length <= cp) 1284cpRunStart += _runs[runIndex++].Length; 1699new CharacterBufferRange(run.CharBufferReference, run.Length), 1747if (Length <= 0 || this.Ghost) 1787CharacterBufferRange charBufferRange = new CharacterBufferRange(CharBufferReference, Length); 1835int underlineLength = Length; 1917trailing += Length; 1930int dcp = Length; 1974if (dcp > Length) 1976dcp = Length; 1994return (EOT || idealDistance <= 0) ? new CharacterHit() : new CharacterHit(Length, 0); 1997if (Length <= 0) 2010while (dcp < Length && idealDistance >= (Tab ? (currentIdealAdvance = IdealWidth / Length) 2017if (dcp < Length) 2024return new CharacterHit(Length - 1, 1);