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