45 references to Length
PresentationFramework (45)
MS\Internal\Text\LineMetrics.cs (1)
85Length,
System\Windows\Controls\TextBlock.cs (44)
1435Format(line, lineMetrics.Length, dcp, wrappingWidth, GetLineProperties(dcp == 0, lineProperties), lineMetrics.TextLineBreak, _textBlockCache._textRunCache, ellipsis); 1459dcp += lineMetrics.Length; 1566Format(line, lineMetrics.Length, dcp, wrappingWidth, GetLineProperties(dcp == 0, showParagraphEllipsis, lineProperties), lineMetrics.TextLineBreak, _textBlockCache._textRunCache, showParagraphEllipsis); 1591dcp += lineMetrics.Length; 1703Format(line, lineMetrics.Length, dcp, wrappingWidth, GetLineProperties(dcp == 0, lineProperties), lineMetrics.TextLineBreak, textRunCache, ellipsis); 1725dcp += lineMetrics.Length; 1793while (startOffset >= (lineOffset + GetLine(lineIndex).Length) && lineIndex < lineCount) 1796lineOffset += GetLine(lineIndex).Length; 1824Format(line, lineMetrics.Length, lineStart, wrappingWidth, GetLineProperties(lineIndex == 0, lineProperties), lineMetrics.TextLineBreak, textRunCache, ellipsis); 1828if (lineMetrics.Length == line.Length) 1834int boundEnd = (endOffset < lineStart + lineMetrics.Length) ? endOffset : lineStart + lineMetrics.Length; 1844lineStart += lineMetrics.Length; 2067lines.Add(new TextLineResult(this, dcp, lineMetrics.Length, layoutBox, lineMetrics.Baseline, lineIndex)); 2070dcp += lineMetrics.Length; 2101Format(line, lineMetrics.Length, dcp, wrappingWidth, GetLineProperties(dcp == 0, lineProperties), textLineBreak, textRunCache, ellipsis); 2103MS.Internal.Invariant.Assert(lineMetrics.Length == line.Length, "Line length is out of sync"); 2149Format(line, lineMetrics.Length, dcp, wrappingWidth, GetLineProperties(dcp == 0, lineProperties), textLineBreak, textRunCache, ellipsis); 2151MS.Internal.Invariant.Assert(lineMetrics.Length == line.Length, "Line length is out of sync"); 2215if (dcp + lineMetrics.Length > characterIndex || 2216((dcp + lineMetrics.Length == characterIndex) && (i == lineCount - 1))) 2221Format(line, lineMetrics.Length, dcp, wrappingWidth, GetLineProperties(dcp == 0, lineProperties), lineMetrics.TextLineBreak, textRunCache, ellipsis); 2224MS.Internal.Invariant.Assert(lineMetrics.Length == line.Length, "Line length is out of sync"); 2232dcp += lineMetrics.Length; 2315int dcpLineEnd = dcpLineStart + lineMetrics.Length; 2316endOfLineTextPointer.MoveByOffset(lineMetrics.Length); 2323Format(line, lineMetrics.Length, dcpLineStart, wrappingWidth, GetLineProperties(dcpLineStart == 0, lineProperties), lineMetrics.TextLineBreak, textRunCache, ellipsis); 2328MS.Internal.Invariant.Assert(GetLine(i).Length == line.Length, "Line length is out of sync"); 2363dcpLineStart += lineMetrics.Length; 2427Format(line, lineMetrics.Length, dcp, wrappingWidth, GetLineProperties(lineIndex == 0, lineProperties), lineMetrics.TextLineBreak, textRunCache, false); 2430MS.Internal.Invariant.Assert(lineMetrics.Length == line.Length, "Line length is out of sync"); 2480dcp -= GetLine(lineIndex).Length; 2484else if (characterIndex == (dcp + GetLine(lineIndex).Length) && direction == LogicalDirection.Forward) 2497dcp += GetLine(lineIndex).Length; 2515Format(line, lineMetrics.Length, dcp, wrappingWidth, GetLineProperties(lineIndex == 0, lineProperties), lineMetrics.TextLineBreak, textRunCache, false); 2518MS.Internal.Invariant.Assert(lineMetrics.Length == line.Length, "Line length is out of sync"); 2534if ((nextCharacterHit.FirstCharacterIndex + nextCharacterHit.TrailingLength == (dcp + GetLine(lineIndex).Length)) && direction == LogicalDirection.Forward) 2608dcp -= GetLine(lineIndex).Length; 2624Format(line, lineMetrics.Length, dcp, wrappingWidth, GetLineProperties(lineIndex == 0, lineProperties), lineMetrics.TextLineBreak, textRunCache, false); 2627MS.Internal.Invariant.Assert(lineMetrics.Length == line.Length, "Line length is out of sync"); 3441Format(line, lineMetrics.Length, dcp, wrappingWidth, GetLineProperties(dcp == 0, lineProperties), lineMetrics.TextLineBreak, textRunCache, ellipsis); 3445MS.Internal.Invariant.Assert(lineMetrics.Length == line.Length, "Line length is out of sync"); 3454dcp += lineMetrics.Length; 3617lineStartOffset += GetLine(lineIndex).Length;