33 references to Length
PresentationFramework (33)
src\Framework\MS\Internal\Text\LineMetrics.cs (1)
88
Length
,
src\Framework\System\Windows\Controls\TextBlock.cs (32)
1537
dcp += lineMetrics.
Length
;
1672
dcp += lineMetrics.
Length
;
1810
dcp += lineMetrics.
Length
;
1881
while (startOffset >= (lineOffset + GetLine(lineIndex).
Length
) && lineIndex < lineCount)
1884
lineOffset += GetLine(lineIndex).
Length
;
1916
if (lineMetrics.
Length
== line.Length)
1922
int boundEnd = (endOffset < lineStart + lineMetrics.
Length
) ? endOffset : lineStart + lineMetrics.
Length
;
1932
lineStart += lineMetrics.
Length
;
2156
lines.Add(new TextLineResult(this, dcp, lineMetrics.
Length
, layoutBox, lineMetrics.Baseline, lineIndex));
2159
dcp += lineMetrics.
Length
;
2191
MS.Internal.Invariant.Assert(GetLine(index).
Length
== line.Length, "Line length is out of sync");
2238
MS.Internal.Invariant.Assert(GetLine(index).
Length
== line.Length, "Line length is out of sync");
2302
if (dcp + lineMetrics.
Length
> characterIndex ||
2303
((dcp + lineMetrics.
Length
== characterIndex) && (i == lineCount - 1)))
2312
MS.Internal.Invariant.Assert(lineMetrics.
Length
== line.Length, "Line length is out of sync");
2320
dcp += lineMetrics.
Length
;
2403
int dcpLineEnd = dcpLineStart + lineMetrics.
Length
;
2404
endOfLineTextPointer.MoveByOffset(lineMetrics.
Length
);
2416
MS.Internal.Invariant.Assert(GetLine(i).
Length
== line.Length, "Line length is out of sync");
2451
dcpLineStart += lineMetrics.
Length
;
2518
MS.Internal.Invariant.Assert(lineMetrics.
Length
== line.Length, "Line length is out of sync");
2569
dcp -= GetLine(lineIndex).
Length
;
2573
else if (characterIndex == (dcp + GetLine(lineIndex).
Length
) && direction == LogicalDirection.Forward)
2586
dcp += GetLine(lineIndex).
Length
;
2607
MS.Internal.Invariant.Assert(lineMetrics.
Length
== line.Length, "Line length is out of sync");
2623
if ((nextCharacterHit.FirstCharacterIndex + nextCharacterHit.TrailingLength == (dcp + GetLine(lineIndex).
Length
)) && direction == LogicalDirection.Forward)
2697
dcp -= GetLine(lineIndex).
Length
;
2716
MS.Internal.Invariant.Assert(lineMetrics.
Length
== line.Length, "Line length is out of sync");
3434
MS.Internal.Invariant.Assert(lineMetrics.
Length
== line.Length, "Line length is out of sync");
3443
dcp += lineMetrics.
Length
;
3606
lineStartOffset += GetLine(lineIndex).
Length
;