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