1 instantiation of TextParagraphResult
PresentationFramework (1)
src\Framework\MS\Internal\PtsHost\TextParaClient.cs (1)
379
return new
TextParagraphResult
(this);
32 references to TextParagraphResult
PresentationFramework (32)
src\Framework\MS\Internal\Documents\TextDocumentView.cs (27)
783
else if (paragraph is
TextParagraphResult
)
786
ReadOnlyCollection<LineResult> lines = ((
TextParagraphResult
)paragraph).Lines;
788
if (!((
TextParagraphResult
)paragraph).HasTextContent)
1180
else if (paragraph is
TextParagraphResult
)
1182
rect = ((
TextParagraphResult
)paragraph).GetRectangleFromTextPosition(position);
1326
else if (paragraphs[i] is
TextParagraphResult
)
1328
paragraphGeometry = ((
TextParagraphResult
)paragraphs[i]).GetTightBoundingGeometryFromTextPositions(startPosition, endPosition, paragraphTopSpace, visibleRect);
1509
else if (paragraph is
TextParagraphResult
)
1512
isAtCaretUnitBoundary = ((
TextParagraphResult
)paragraph).IsAtCaretUnitBoundary(position);
1636
else if (paragraph is
TextParagraphResult
)
1639
nextCaretPosition = ((
TextParagraphResult
)paragraph).GetNextCaretUnitPosition(position, direction);
1759
else if (paragraph is
TextParagraphResult
)
1762
backspaceCaretPosition = ((
TextParagraphResult
)paragraph).GetBackspaceCaretUnitPosition(position);
2335
else if (paragraph is
TextParagraphResult
)
2339
ReadOnlyCollection<LineResult> lines = ((
TextParagraphResult
)paragraph).Lines;
2341
if (!((
TextParagraphResult
)paragraph).HasTextContent)
2347
lineRange = new TextSegment(((
TextParagraphResult
)paragraph).EndPosition, ((
TextParagraphResult
)paragraph).EndPosition, true);
2483
else if (paragraphs[paragraphIndex] is
TextParagraphResult
)
2491
ReadOnlyCollection<LineResult> lines = ((
TextParagraphResult
)paragraphs[paragraphIndex]).Lines;
2493
if (!((
TextParagraphResult
)paragraphs[paragraphIndex]).HasTextContent)
2829
else if (paragraphs[paragraphIndex] is
TextParagraphResult
)
2835
positionOut = GetPositionAtNextLineFromSiblingTextPara((
TextParagraphResult
)paragraphs[paragraphIndex], suggestedX, ref count);
2957
private ITextPointer GetPositionAtNextLineFromSiblingTextPara(
TextParagraphResult
paragraph, double suggestedX, ref int count)
3147
if (paragraph is
TextParagraphResult
)
3149
TextParagraphResult
tpr = (
TextParagraphResult
)paragraph;
src\Framework\MS\Internal\LayoutDump.cs (3)
702
if (paragraph is
TextParagraphResult
)
704
DumpTextParagraphResult(writer, (
TextParagraphResult
)paragraph, visualParent);
738
private static void DumpTextParagraphResult(XmlTextWriter writer,
TextParagraphResult
paragraph, Visual visualParent)
src\Framework\System\Windows\Controls\Primitives\BulletDecorator.cs (2)
361
TextParagraphResult
textParagraphResult = cpr.Paragraphs[0] as
TextParagraphResult
;