33 references to Length
PresentationFramework (33)
src\Framework\MS\Internal\Text\LineMetrics.cs (1)
88Length,
src\Framework\System\Windows\Controls\TextBlock.cs (32)
1537dcp += lineMetrics.Length; 1672dcp += lineMetrics.Length; 1810dcp += lineMetrics.Length; 1881while (startOffset >= (lineOffset + GetLine(lineIndex).Length) && lineIndex < lineCount) 1884lineOffset += GetLine(lineIndex).Length; 1916if (lineMetrics.Length == line.Length) 1922int boundEnd = (endOffset < lineStart + lineMetrics.Length) ? endOffset : lineStart + lineMetrics.Length; 1932lineStart += lineMetrics.Length; 2156lines.Add(new TextLineResult(this, dcp, lineMetrics.Length, layoutBox, lineMetrics.Baseline, lineIndex)); 2159dcp += lineMetrics.Length; 2191MS.Internal.Invariant.Assert(GetLine(index).Length == line.Length, "Line length is out of sync"); 2238MS.Internal.Invariant.Assert(GetLine(index).Length == line.Length, "Line length is out of sync"); 2302if (dcp + lineMetrics.Length > characterIndex || 2303((dcp + lineMetrics.Length == characterIndex) && (i == lineCount - 1))) 2312MS.Internal.Invariant.Assert(lineMetrics.Length == line.Length, "Line length is out of sync"); 2320dcp += lineMetrics.Length; 2403int dcpLineEnd = dcpLineStart + lineMetrics.Length; 2404endOfLineTextPointer.MoveByOffset(lineMetrics.Length); 2416MS.Internal.Invariant.Assert(GetLine(i).Length == line.Length, "Line length is out of sync"); 2451dcpLineStart += lineMetrics.Length; 2518MS.Internal.Invariant.Assert(lineMetrics.Length == line.Length, "Line length is out of sync"); 2569dcp -= GetLine(lineIndex).Length; 2573else if (characterIndex == (dcp + GetLine(lineIndex).Length) && direction == LogicalDirection.Forward) 2586dcp += GetLine(lineIndex).Length; 2607MS.Internal.Invariant.Assert(lineMetrics.Length == line.Length, "Line length is out of sync"); 2623if ((nextCharacterHit.FirstCharacterIndex + nextCharacterHit.TrailingLength == (dcp + GetLine(lineIndex).Length)) && direction == LogicalDirection.Forward) 2697dcp -= GetLine(lineIndex).Length; 2716MS.Internal.Invariant.Assert(lineMetrics.Length == line.Length, "Line length is out of sync"); 3434MS.Internal.Invariant.Assert(lineMetrics.Length == line.Length, "Line length is out of sync"); 3443dcp += lineMetrics.Length; 3606lineStartOffset += GetLine(lineIndex).Length;