1 instantiation of TextParagraphResult
PresentationFramework (1)
MS\Internal\PtsHost\TextParaClient.cs (1)
330return new TextParagraphResult(this);
30 references to TextParagraphResult
PresentationFramework (30)
MS\Internal\Documents\TextDocumentView.cs (25)
771else if (paragraph is TextParagraphResult) 774ReadOnlyCollection<LineResult> lines = ((TextParagraphResult)paragraph).Lines; 776if (!((TextParagraphResult)paragraph).HasTextContent) 1150else if (paragraph is TextParagraphResult) 1152rect = ((TextParagraphResult)paragraph).GetRectangleFromTextPosition(position); 1292else if (paragraphs[i] is TextParagraphResult) 1294paragraphGeometry = ((TextParagraphResult)paragraphs[i]).GetTightBoundingGeometryFromTextPositions(startPosition, endPosition, paragraphTopSpace, visibleRect); 1472else if (paragraph is TextParagraphResult) 1475isAtCaretUnitBoundary = ((TextParagraphResult)paragraph).IsAtCaretUnitBoundary(position); 1596else if (paragraph is TextParagraphResult) 1599nextCaretPosition = ((TextParagraphResult)paragraph).GetNextCaretUnitPosition(position, direction); 1716else if (paragraph is TextParagraphResult) 1719backspaceCaretPosition = ((TextParagraphResult)paragraph).GetBackspaceCaretUnitPosition(position); 2289else if (paragraph is TextParagraphResult) 2293ReadOnlyCollection<LineResult> lines = ((TextParagraphResult)paragraph).Lines; 2295if (!((TextParagraphResult)paragraph).HasTextContent) 2301lineRange = new TextSegment(((TextParagraphResult)paragraph).EndPosition, ((TextParagraphResult)paragraph).EndPosition, true); 2434else if (paragraphs[paragraphIndex] is TextParagraphResult) 2442ReadOnlyCollection<LineResult> lines = ((TextParagraphResult)paragraphs[paragraphIndex]).Lines; 2444if (!((TextParagraphResult)paragraphs[paragraphIndex]).HasTextContent) 2777else if (paragraphs[paragraphIndex] is TextParagraphResult) 2783positionOut = GetPositionAtNextLineFromSiblingTextPara((TextParagraphResult)paragraphs[paragraphIndex], suggestedX, ref count); 2904private ITextPointer GetPositionAtNextLineFromSiblingTextPara(TextParagraphResult paragraph, double suggestedX, ref int count) 3094if (paragraph is TextParagraphResult tpr)
MS\Internal\LayoutDump.cs (3)
697if (paragraph is TextParagraphResult) 699DumpTextParagraphResult(writer, (TextParagraphResult)paragraph, visualParent); 733private static void DumpTextParagraphResult(XmlTextWriter writer, TextParagraphResult paragraph, Visual visualParent)
System\Windows\Controls\Primitives\BulletDecorator.cs (2)
353TextParagraphResult textParagraphResult = cpr.Paragraphs[0] as TextParagraphResult;