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