45 references to Length
PresentationFramework (45)
MS\Internal\Text\LineMetrics.cs (1)
80Length,
System\Windows\Controls\TextBlock.cs (44)
1416Format(line, lineMetrics.Length, dcp, wrappingWidth, GetLineProperties(dcp == 0, lineProperties), lineMetrics.TextLineBreak, _textBlockCache._textRunCache, ellipsis); 1440dcp += lineMetrics.Length; 1547Format(line, lineMetrics.Length, dcp, wrappingWidth, GetLineProperties(dcp == 0, showParagraphEllipsis, lineProperties), lineMetrics.TextLineBreak, _textBlockCache._textRunCache, showParagraphEllipsis); 1572dcp += lineMetrics.Length; 1684Format(line, lineMetrics.Length, dcp, wrappingWidth, GetLineProperties(dcp == 0, lineProperties), lineMetrics.TextLineBreak, textRunCache, ellipsis); 1706dcp += lineMetrics.Length; 1774while (startOffset >= (lineOffset + GetLine(lineIndex).Length) && lineIndex < lineCount) 1777lineOffset += GetLine(lineIndex).Length; 1805Format(line, lineMetrics.Length, lineStart, wrappingWidth, GetLineProperties(lineIndex == 0, lineProperties), lineMetrics.TextLineBreak, textRunCache, ellipsis); 1809if (lineMetrics.Length == line.Length) 1815int boundEnd = (endOffset < lineStart + lineMetrics.Length) ? endOffset : lineStart + lineMetrics.Length; 1825lineStart += lineMetrics.Length; 2045lines.Add(new TextLineResult(this, dcp, lineMetrics.Length, layoutBox, lineMetrics.Baseline, lineIndex)); 2048dcp += lineMetrics.Length; 2079Format(line, lineMetrics.Length, dcp, wrappingWidth, GetLineProperties(dcp == 0, lineProperties), textLineBreak, textRunCache, ellipsis); 2081MS.Internal.Invariant.Assert(lineMetrics.Length == line.Length, "Line length is out of sync"); 2127Format(line, lineMetrics.Length, dcp, wrappingWidth, GetLineProperties(dcp == 0, lineProperties), textLineBreak, textRunCache, ellipsis); 2129MS.Internal.Invariant.Assert(lineMetrics.Length == line.Length, "Line length is out of sync"); 2193if (dcp + lineMetrics.Length > characterIndex || 2194((dcp + lineMetrics.Length == characterIndex) && (i == lineCount - 1))) 2199Format(line, lineMetrics.Length, dcp, wrappingWidth, GetLineProperties(dcp == 0, lineProperties), lineMetrics.TextLineBreak, textRunCache, ellipsis); 2202MS.Internal.Invariant.Assert(lineMetrics.Length == line.Length, "Line length is out of sync"); 2210dcp += lineMetrics.Length; 2293int dcpLineEnd = dcpLineStart + lineMetrics.Length; 2294endOfLineTextPointer.MoveByOffset(lineMetrics.Length); 2301Format(line, lineMetrics.Length, dcpLineStart, wrappingWidth, GetLineProperties(dcpLineStart == 0, lineProperties), lineMetrics.TextLineBreak, textRunCache, ellipsis); 2306MS.Internal.Invariant.Assert(GetLine(i).Length == line.Length, "Line length is out of sync"); 2341dcpLineStart += lineMetrics.Length; 2405Format(line, lineMetrics.Length, dcp, wrappingWidth, GetLineProperties(lineIndex == 0, lineProperties), lineMetrics.TextLineBreak, textRunCache, false); 2408MS.Internal.Invariant.Assert(lineMetrics.Length == line.Length, "Line length is out of sync"); 2458dcp -= GetLine(lineIndex).Length; 2462else if (characterIndex == (dcp + GetLine(lineIndex).Length) && direction == LogicalDirection.Forward) 2475dcp += GetLine(lineIndex).Length; 2493Format(line, lineMetrics.Length, dcp, wrappingWidth, GetLineProperties(lineIndex == 0, lineProperties), lineMetrics.TextLineBreak, textRunCache, false); 2496MS.Internal.Invariant.Assert(lineMetrics.Length == line.Length, "Line length is out of sync"); 2512if ((nextCharacterHit.FirstCharacterIndex + nextCharacterHit.TrailingLength == (dcp + GetLine(lineIndex).Length)) && direction == LogicalDirection.Forward) 2586dcp -= GetLine(lineIndex).Length; 2602Format(line, lineMetrics.Length, dcp, wrappingWidth, GetLineProperties(lineIndex == 0, lineProperties), lineMetrics.TextLineBreak, textRunCache, false); 2605MS.Internal.Invariant.Assert(lineMetrics.Length == line.Length, "Line length is out of sync"); 3421Format(line, lineMetrics.Length, dcp, wrappingWidth, GetLineProperties(dcp == 0, lineProperties), lineMetrics.TextLineBreak, textRunCache, ellipsis); 3425MS.Internal.Invariant.Assert(lineMetrics.Length == line.Length, "Line length is out of sync"); 3434dcp += lineMetrics.Length; 3597lineStartOffset += GetLine(lineIndex).Length;