2 writes to Length
PresentationCore (2)
Core\CSharp\MS\Internal\TextFormatting\SimpleTextLine.cs (2)
1704out run.Length 1743Length = length;
39 references to Length
PresentationCore (39)
Core\CSharp\MS\Internal\TextFormatting\SimpleTextLine.cs (39)
143cp += run.Length; 195cp += run.Length; 292if(run.Length > 0) 297trailing += run.Length; 298_cpLengthEOT += run.Length; 307_cpLength += run.Length; 353t -= run.Length; 441if(run.Length > 0) 448nonHiddenLength += run.Length; 469if(dcp <= run.Length) 474dcp -= run.Length; 858&& ich + run.Length > dcp) 864int afterLast = Math.Min(ich + run.Length, dcp + textLength) + _cpFirst; 884ich += run.Length; 912textRunSpans[i] = new TextSpan<TextRun>(_runs[i].Length, _runs[i].TextRun); 936if (run.Length > 0 && !run.Ghost) 967new CharacterBufferRange(run.CharBufferReference, run.Length), 983run.Length, 990currentCp += run.Length; 1239cpRunStart += _runs[runIndex++].Length; 1260cpRunEnd += _runs[runIndex].Length - 1; 1275cpVisible = cpRunEnd - _runs[runIndex].Length + 1; 1279cpRunEnd -= _runs[runIndex--].Length; 1296while (runIndex < _runs.Length && cpRunStart + _runs[runIndex].Length <= cp) 1298cpRunStart += _runs[runIndex++].Length; 1714new CharacterBufferRange(run.CharBufferReference, run.Length), 1767if (Length <= 0 || this.Ghost) 1807CharacterBufferRange charBufferRange = new CharacterBufferRange(CharBufferReference, Length); 1855int underlineLength = Length; 1937trailing += Length; 1950int dcp = Length; 1994if (dcp > Length) 1996dcp = Length; 2014return (EOT || idealDistance <= 0) ? new CharacterHit() : new CharacterHit(Length, 0); 2017if (Length <= 0) 2030while (dcp < Length && idealDistance >= (Tab ? (currentIdealAdvance = IdealWidth / Length) 2037if (dcp < Length) 2044return new CharacterHit(Length - 1, 1);