45 references to Length
PresentationFramework (45)
MS\Internal\Text\LineMetrics.cs (1)
81Length,
System\Windows\Controls\TextBlock.cs (44)
1417Format(line, lineMetrics.Length, dcp, wrappingWidth, GetLineProperties(dcp == 0, lineProperties), lineMetrics.TextLineBreak, _textBlockCache._textRunCache, ellipsis); 1441dcp += lineMetrics.Length; 1548Format(line, lineMetrics.Length, dcp, wrappingWidth, GetLineProperties(dcp == 0, showParagraphEllipsis, lineProperties), lineMetrics.TextLineBreak, _textBlockCache._textRunCache, showParagraphEllipsis); 1573dcp += lineMetrics.Length; 1685Format(line, lineMetrics.Length, dcp, wrappingWidth, GetLineProperties(dcp == 0, lineProperties), lineMetrics.TextLineBreak, textRunCache, ellipsis); 1707dcp += lineMetrics.Length; 1775while (startOffset >= (lineOffset + GetLine(lineIndex).Length) && lineIndex < lineCount) 1778lineOffset += GetLine(lineIndex).Length; 1806Format(line, lineMetrics.Length, lineStart, wrappingWidth, GetLineProperties(lineIndex == 0, lineProperties), lineMetrics.TextLineBreak, textRunCache, ellipsis); 1810if (lineMetrics.Length == line.Length) 1816int boundEnd = (endOffset < lineStart + lineMetrics.Length) ? endOffset : lineStart + lineMetrics.Length; 1826lineStart += lineMetrics.Length; 2046lines.Add(new TextLineResult(this, dcp, lineMetrics.Length, layoutBox, lineMetrics.Baseline, lineIndex)); 2049dcp += lineMetrics.Length; 2080Format(line, lineMetrics.Length, dcp, wrappingWidth, GetLineProperties(dcp == 0, lineProperties), textLineBreak, textRunCache, ellipsis); 2082MS.Internal.Invariant.Assert(lineMetrics.Length == line.Length, "Line length is out of sync"); 2128Format(line, lineMetrics.Length, dcp, wrappingWidth, GetLineProperties(dcp == 0, lineProperties), textLineBreak, textRunCache, ellipsis); 2130MS.Internal.Invariant.Assert(lineMetrics.Length == line.Length, "Line length is out of sync"); 2194if (dcp + lineMetrics.Length > characterIndex || 2195((dcp + lineMetrics.Length == characterIndex) && (i == lineCount - 1))) 2200Format(line, lineMetrics.Length, dcp, wrappingWidth, GetLineProperties(dcp == 0, lineProperties), lineMetrics.TextLineBreak, textRunCache, ellipsis); 2203MS.Internal.Invariant.Assert(lineMetrics.Length == line.Length, "Line length is out of sync"); 2211dcp += lineMetrics.Length; 2294int dcpLineEnd = dcpLineStart + lineMetrics.Length; 2295endOfLineTextPointer.MoveByOffset(lineMetrics.Length); 2302Format(line, lineMetrics.Length, dcpLineStart, wrappingWidth, GetLineProperties(dcpLineStart == 0, lineProperties), lineMetrics.TextLineBreak, textRunCache, ellipsis); 2307MS.Internal.Invariant.Assert(GetLine(i).Length == line.Length, "Line length is out of sync"); 2342dcpLineStart += lineMetrics.Length; 2406Format(line, lineMetrics.Length, dcp, wrappingWidth, GetLineProperties(lineIndex == 0, lineProperties), lineMetrics.TextLineBreak, textRunCache, false); 2409MS.Internal.Invariant.Assert(lineMetrics.Length == line.Length, "Line length is out of sync"); 2459dcp -= GetLine(lineIndex).Length; 2463else if (characterIndex == (dcp + GetLine(lineIndex).Length) && direction == LogicalDirection.Forward) 2476dcp += GetLine(lineIndex).Length; 2494Format(line, lineMetrics.Length, dcp, wrappingWidth, GetLineProperties(lineIndex == 0, lineProperties), lineMetrics.TextLineBreak, textRunCache, false); 2497MS.Internal.Invariant.Assert(lineMetrics.Length == line.Length, "Line length is out of sync"); 2513if ((nextCharacterHit.FirstCharacterIndex + nextCharacterHit.TrailingLength == (dcp + GetLine(lineIndex).Length)) && direction == LogicalDirection.Forward) 2587dcp -= GetLine(lineIndex).Length; 2603Format(line, lineMetrics.Length, dcp, wrappingWidth, GetLineProperties(lineIndex == 0, lineProperties), lineMetrics.TextLineBreak, textRunCache, false); 2606MS.Internal.Invariant.Assert(lineMetrics.Length == line.Length, "Line length is out of sync"); 3422Format(line, lineMetrics.Length, dcp, wrappingWidth, GetLineProperties(dcp == 0, lineProperties), lineMetrics.TextLineBreak, textRunCache, ellipsis); 3426MS.Internal.Invariant.Assert(lineMetrics.Length == line.Length, "Line length is out of sync"); 3435dcp += lineMetrics.Length; 3598lineStartOffset += GetLine(lineIndex).Length;