1 instantiation of TextParagraphResult
PresentationFramework (1)
MS\Internal\PtsHost\TextParaClient.cs (1)
331
return new
TextParagraphResult
(this);
32 references to TextParagraphResult
PresentationFramework (32)
MS\Internal\Documents\TextDocumentView.cs (27)
773
else if (paragraph is
TextParagraphResult
)
776
ReadOnlyCollection<LineResult> lines = ((
TextParagraphResult
)paragraph).Lines;
778
if (!((
TextParagraphResult
)paragraph).HasTextContent)
1170
else if (paragraph is
TextParagraphResult
)
1172
rect = ((
TextParagraphResult
)paragraph).GetRectangleFromTextPosition(position);
1316
else if (paragraphs[i] is
TextParagraphResult
)
1318
paragraphGeometry = ((
TextParagraphResult
)paragraphs[i]).GetTightBoundingGeometryFromTextPositions(startPosition, endPosition, paragraphTopSpace, visibleRect);
1499
else if (paragraph is
TextParagraphResult
)
1502
isAtCaretUnitBoundary = ((
TextParagraphResult
)paragraph).IsAtCaretUnitBoundary(position);
1626
else if (paragraph is
TextParagraphResult
)
1629
nextCaretPosition = ((
TextParagraphResult
)paragraph).GetNextCaretUnitPosition(position, direction);
1749
else if (paragraph is
TextParagraphResult
)
1752
backspaceCaretPosition = ((
TextParagraphResult
)paragraph).GetBackspaceCaretUnitPosition(position);
2325
else if (paragraph is
TextParagraphResult
)
2329
ReadOnlyCollection<LineResult> lines = ((
TextParagraphResult
)paragraph).Lines;
2331
if (!((
TextParagraphResult
)paragraph).HasTextContent)
2337
lineRange = new TextSegment(((
TextParagraphResult
)paragraph).EndPosition, ((
TextParagraphResult
)paragraph).EndPosition, true);
2473
else if (paragraphs[paragraphIndex] is
TextParagraphResult
)
2481
ReadOnlyCollection<LineResult> lines = ((
TextParagraphResult
)paragraphs[paragraphIndex]).Lines;
2483
if (!((
TextParagraphResult
)paragraphs[paragraphIndex]).HasTextContent)
2818
else if (paragraphs[paragraphIndex] is
TextParagraphResult
)
2824
positionOut = GetPositionAtNextLineFromSiblingTextPara((
TextParagraphResult
)paragraphs[paragraphIndex], suggestedX, ref count);
2946
private ITextPointer GetPositionAtNextLineFromSiblingTextPara(
TextParagraphResult
paragraph, double suggestedX, ref int count)
3136
if (paragraph is
TextParagraphResult
)
3138
TextParagraphResult
tpr = (
TextParagraphResult
)paragraph;
MS\Internal\LayoutDump.cs (3)
696
if (paragraph is
TextParagraphResult
)
698
DumpTextParagraphResult(writer, (
TextParagraphResult
)paragraph, visualParent);
732
private static void DumpTextParagraphResult(XmlTextWriter writer,
TextParagraphResult
paragraph, Visual visualParent)
System\Windows\Controls\Primitives\BulletDecorator.cs (2)
354
TextParagraphResult
textParagraphResult = cpr.Paragraphs[0] as
TextParagraphResult
;