2 writes to Length
PresentationCore (2)
MS\Internal\TextFormatting\SimpleTextLine.cs (2)
1684out run.Length 1723Length = 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; 839&& ich + run.Length > dcp) 845int afterLast = Math.Min(ich + run.Length, dcp + textLength) + _cpFirst; 865ich += run.Length; 893textRunSpans[i] = new TextSpan<TextRun>(_runs[i].Length, _runs[i].TextRun); 913if (run.Length > 0 && !run.Ghost) 944new CharacterBufferRange(run.CharBufferReference, run.Length), 960run.Length, 967currentCp += run.Length; 1216cpRunStart += _runs[runIndex++].Length; 1237cpRunEnd += _runs[runIndex].Length - 1; 1252cpVisible = cpRunEnd - _runs[runIndex].Length + 1; 1256cpRunEnd -= _runs[runIndex--].Length; 1273while (runIndex < _runs.Length && cpRunStart + _runs[runIndex].Length <= cp) 1275cpRunStart += _runs[runIndex++].Length; 1694new CharacterBufferRange(run.CharBufferReference, run.Length), 1742if (Length <= 0 || this.Ghost) 1782CharacterBufferRange charBufferRange = new CharacterBufferRange(CharBufferReference, Length); 1830int underlineLength = Length; 1912trailing += Length; 1925int dcp = Length; 1969if (dcp > Length) 1971dcp = Length; 1989return (EOT || idealDistance <= 0) ? new CharacterHit() : new CharacterHit(Length, 0); 1992if (Length <= 0) 2005while (dcp < Length && idealDistance >= (Tab ? (currentIdealAdvance = IdealWidth / Length) 2012if (dcp < Length) 2019return new CharacterHit(Length - 1, 1);