1 instantiation of TextParagraphResult
PresentationFramework (1)
MS\Internal\PtsHost\TextParaClient.cs (1)
337
return new
TextParagraphResult
(this);
32 references to TextParagraphResult
PresentationFramework (32)
MS\Internal\Documents\TextDocumentView.cs (27)
775
else if (paragraph is
TextParagraphResult
)
778
ReadOnlyCollection<LineResult> lines = ((
TextParagraphResult
)paragraph).Lines;
780
if (!((
TextParagraphResult
)paragraph).HasTextContent)
1172
else if (paragraph is
TextParagraphResult
)
1174
rect = ((
TextParagraphResult
)paragraph).GetRectangleFromTextPosition(position);
1318
else if (paragraphs[i] is
TextParagraphResult
)
1320
paragraphGeometry = ((
TextParagraphResult
)paragraphs[i]).GetTightBoundingGeometryFromTextPositions(startPosition, endPosition, paragraphTopSpace, visibleRect);
1501
else if (paragraph is
TextParagraphResult
)
1504
isAtCaretUnitBoundary = ((
TextParagraphResult
)paragraph).IsAtCaretUnitBoundary(position);
1628
else if (paragraph is
TextParagraphResult
)
1631
nextCaretPosition = ((
TextParagraphResult
)paragraph).GetNextCaretUnitPosition(position, direction);
1751
else if (paragraph is
TextParagraphResult
)
1754
backspaceCaretPosition = ((
TextParagraphResult
)paragraph).GetBackspaceCaretUnitPosition(position);
2327
else if (paragraph is
TextParagraphResult
)
2331
ReadOnlyCollection<LineResult> lines = ((
TextParagraphResult
)paragraph).Lines;
2333
if (!((
TextParagraphResult
)paragraph).HasTextContent)
2339
lineRange = new TextSegment(((
TextParagraphResult
)paragraph).EndPosition, ((
TextParagraphResult
)paragraph).EndPosition, true);
2475
else if (paragraphs[paragraphIndex] is
TextParagraphResult
)
2483
ReadOnlyCollection<LineResult> lines = ((
TextParagraphResult
)paragraphs[paragraphIndex]).Lines;
2485
if (!((
TextParagraphResult
)paragraphs[paragraphIndex]).HasTextContent)
2820
else if (paragraphs[paragraphIndex] is
TextParagraphResult
)
2826
positionOut = GetPositionAtNextLineFromSiblingTextPara((
TextParagraphResult
)paragraphs[paragraphIndex], suggestedX, ref count);
2948
private ITextPointer GetPositionAtNextLineFromSiblingTextPara(
TextParagraphResult
paragraph, double suggestedX, ref int count)
3138
if (paragraph is
TextParagraphResult
)
3140
TextParagraphResult
tpr = (
TextParagraphResult
)paragraph;
MS\Internal\LayoutDump.cs (3)
699
if (paragraph is
TextParagraphResult
)
701
DumpTextParagraphResult(writer, (
TextParagraphResult
)paragraph, visualParent);
735
private static void DumpTextParagraphResult(XmlTextWriter writer,
TextParagraphResult
paragraph, Visual visualParent)
System\Windows\Controls\Primitives\BulletDecorator.cs (2)
360
TextParagraphResult
textParagraphResult = cpr.Paragraphs[0] as
TextParagraphResult
;