223 references to Paragraph
PresentationFramework (223)
MS\Internal\Documents\ParagraphResult.cs (8)
40_element = paraClient.Paragraph.Element; 524TextParagraph textParagraph = _paraClient.Paragraph as TextParagraph; 941MbpInfo mbp = MbpInfo.FromElement(_paraClient.Paragraph.Element, _paraClient.Paragraph.StructuralCache.TextFormatterHost.PixelsPerDip); 1056MbpInfo mbp = MbpInfo.FromElement(_paraClient.Paragraph.Element, _paraClient.Paragraph.StructuralCache.TextFormatterHost.PixelsPerDip); 1228MbpInfo mbp = MbpInfo.FromElement(_paraClient.Paragraph.Element, _paraClient.Paragraph.StructuralCache.TextFormatterHost.PixelsPerDip);
MS\Internal\PtsHost\BaseParaClient.cs (4)
75_pageContext = Paragraph.StructuralCache.CurrentArrangeContext.PageContext; 79_flowDirection = (FlowDirection)Paragraph.Element.GetValue(FrameworkElement.FlowDirectionProperty); 214internal FlowDirection PageFlowDirection { get { return Paragraph.StructuralCache.PageFlowDirection; } } 231Paragraph.UpdateLastFormatPositions();
MS\Internal\PtsHost\CellParaClient.cs (1)
112_flowDirection = (FlowDirection)Paragraph.Element.GetValue(FrameworkElement.FlowDirectionProperty);
MS\Internal\PtsHost\ContainerParaClient.cs (9)
50MbpInfo mbp = MbpInfo.FromElement(Paragraph.Element, Paragraph.StructuralCache.TextFormatterHost.PixelsPerDip); 108ie = Paragraph.Element as IInputElement; 131if (this.Paragraph.Element as ContentElement == e) 182MbpInfo mbp = MbpInfo.FromElement(Paragraph.Element, Paragraph.StructuralCache.TextFormatterHost.PixelsPerDip); 189Brush backgroundBrush = (Brush)Paragraph.Element.GetValue(TextElement.BackgroundProperty); 262TextElement elementOwner = this.Paragraph.Element as TextElement; 289paraClient = Paragraph.StructuralCache.PtsContext.HandleToObject(arrayParaDesc[i].pfsparaclient) as BaseParaClient;
MS\Internal\PtsHost\FigureParaClient.cs (20)
58((FigureParagraph)Paragraph).UpdateSegmentLastFormatPositions(); 66MbpInfo mbp = MbpInfo.FromElement(Paragraph.Element, Paragraph.StructuralCache.TextFormatterHost.PixelsPerDip); 94Paragraph.StructuralCache.CurrentArrangeContext.PushNewPageData(_pageContextOfThisPage, subpageDetails.u.simple.trackdescr.fsrc, 95Paragraph.StructuralCache.CurrentArrangeContext.FinitePage); 99Paragraph.StructuralCache.CurrentArrangeContext.PopPageData(); 117Paragraph.StructuralCache.CurrentArrangeContext.PushNewPageData(_pageContextOfThisPage, arrayColumnDesc[index].fsrc, 118Paragraph.StructuralCache.CurrentArrangeContext.FinitePage); 122Paragraph.StructuralCache.CurrentArrangeContext.PopPageData(); 189MbpInfo mbp = MbpInfo.FromElement(Paragraph.Element, Paragraph.StructuralCache.TextFormatterHost.PixelsPerDip); 199_flowDirection = (FlowDirection)Paragraph.Element.GetValue(FrameworkElement.FlowDirectionProperty); 265ie = Paragraph.Element as IInputElement; 283if (Paragraph.Element as ContentElement == e) 349MbpInfo mbp = MbpInfo.FromElement(Paragraph.Element, Paragraph.StructuralCache.TextFormatterHost.PixelsPerDip); 356Brush backgroundBrush = (Brush)Paragraph.Element.GetValue(TextElement.BackgroundProperty); 437ColumnPropertiesGroup columnProperties = new ColumnPropertiesGroup(Paragraph.Element); 530Paragraph.Element as TextElement, ElementEdge.BeforeStart)); 538Paragraph.Element as TextElement, ElementEdge.AfterEnd));
MS\Internal\PtsHost\FloaterParaClient.cs (19)
61((FloaterParagraph)Paragraph).UpdateSegmentLastFormatPositions(); 79Paragraph.StructuralCache.CurrentArrangeContext.PushNewPageData(_pageContextOfThisPage, subpageDetails.u.simple.trackdescr.fsrc, 80Paragraph.StructuralCache.CurrentArrangeContext.FinitePage); 84Paragraph.StructuralCache.CurrentArrangeContext.PopPageData(); 102Paragraph.StructuralCache.CurrentArrangeContext.PushNewPageData(_pageContextOfThisPage, arrayColumnDesc[index].fsrc, 103Paragraph.StructuralCache.CurrentArrangeContext.FinitePage); 107Paragraph.StructuralCache.CurrentArrangeContext.PopPageData(); 181MbpInfo mbp = MbpInfo.FromElement(Paragraph.Element, Paragraph.StructuralCache.TextFormatterHost.PixelsPerDip); 188_flowDirection = (FlowDirection)Paragraph.Element.GetValue(FrameworkElement.FlowDirectionProperty); 270ie = Paragraph.Element as IInputElement; 288if (Paragraph.Element as ContentElement == e) 356MbpInfo mbp = MbpInfo.FromElement(Paragraph.Element, Paragraph.StructuralCache.TextFormatterHost.PixelsPerDip); 363Brush backgroundBrush = (Brush)Paragraph.Element.GetValue(TextElement.BackgroundProperty); 444ColumnPropertiesGroup columnProperties = new ColumnPropertiesGroup(Paragraph.Element); 538Paragraph.Element as TextElement, ElementEdge.BeforeStart)); 546Paragraph.Element as TextElement, ElementEdge.AfterEnd)); 801Floater floater = Paragraph.Element as Floater;
MS\Internal\PtsHost\Line.cs (12)
112int cpFigure = TextContainerHelper.GetCPFromElement(_paraClient.Paragraph.StructuralCache.TextContainer, paraFigure.Element, ElementEdge.BeforeStart); 137ITextContainer textContainer = _paraClient.Paragraph.StructuralCache.TextContainer; 186ITextPointer startPosition = TextContainerHelper.GetTextPointerFromCP(_paraClient.Paragraph.StructuralCache.TextContainer, _cpPara, LogicalDirection.Forward); 187ITextPointer position = TextContainerHelper.GetTextPointerFromCP(_paraClient.Paragraph.StructuralCache.TextContainer, _cpPara + dcp, LogicalDirection.Forward); 203DependencyObject element = pointer.Parent ?? _paraClient.Paragraph.Element; 293inlineObjects.Add(new InlineObject(dcpRun, ((InlineObjectRun)run).UIElementIsland, (TextParagraph)_paraClient.Paragraph)); 347double pageHeight = _paraClient.Paragraph.StructuralCache.CurrentFormatContext.DocumentPageSize.Height; 348if (!_paraClient.Paragraph.StructuralCache.CurrentFormatContext.FinitePage) 390DependencyObject paragraphElement = _paraClient.Paragraph.Element; 588cp = _paraClient.Paragraph.ParagraphStartCharacterPosition + charIndex.FirstCharacterIndex + charIndex.TrailingLength; 589position = TextContainerHelper.GetTextPointerFromCP(_paraClient.Paragraph.StructuralCache.TextContainer, cp, LogicalDirection.Forward) as TextPointer; 1210return _paraClient.Paragraph as TextParagraph;
MS\Internal\PtsHost\LineBase.cs (8)
89element = _paraClient.Paragraph.Element; 96_paraClient.Paragraph.StructuralCache.TextFormatterHost.PixelsPerDip); 143int cch = TextContainerHelper.GetElementLength(_paraClient.Paragraph.StructuralCache.TextContainer, element); 157int cch = TextContainerHelper.GetElementLength(_paraClient.Paragraph.StructuralCache.TextContainer, element); 166_paraClient.Paragraph.StructuralCache.TextFormatterHost.PixelsPerDip); 248if (position.Parent == _paraClient.Paragraph.Element) 307_paraClient.Paragraph.StructuralCache.TextFormatterHost.PixelsPerDip); 310run = new InlineObjectRun(TextContainerHelper.EmbeddedObjectLength, (UIElement)embeddedObject, textProps, _paraClient.Paragraph as TextParagraph);
MS\Internal\PtsHost\ListParaClient.cs (11)
49MbpInfo mbp = MbpInfo.FromElement(Paragraph.Element, Paragraph.StructuralCache.TextFormatterHost.PixelsPerDip); 55uint fswdir = PTS.FlowDirectionToFswdir((FlowDirection)Paragraph.Element.GetValue(FrameworkElement.FlowDirectionProperty)); 57Brush backgroundBrush = (Brush)Paragraph.Element.GetValue(TextElement.BackgroundProperty); 61TextProperties textProperties = new TextProperties(Paragraph.Element, StaticTextPointer.Null, false /* inline objects */, false /* get background */, 62Paragraph.StructuralCache.TextFormatterHost.PixelsPerDip); 75ListMarkerLine listMarkerLine = new ListMarkerLine(Paragraph.StructuralCache.TextFormatterHost, this); 80List list = Paragraph.Element as List; 87indexFirstParaInSubtrack = list.GetListItemIndex(listItemParaClient.Paragraph.Element as ListItem); 108LineProperties lineProps = new LineProperties(Paragraph.Element, Paragraph.StructuralCache.FormattingOwner, textProperties, new MarkerProperties(list, adjustedIndex));
MS\Internal\PtsHost\OptimalTextSource.cs (7)
87ITextContainer textContainer = _paraClient.Paragraph.StructuralCache.TextContainer; 137ITextPointer startPosition = TextContainerHelper.GetTextPointerFromCP(_paraClient.Paragraph.StructuralCache.TextContainer, _cpPara, LogicalDirection.Forward); 138ITextPointer position = TextContainerHelper.GetTextPointerFromCP(_paraClient.Paragraph.StructuralCache.TextContainer, _cpPara + dcp, LogicalDirection.Forward); 155DependencyObject element = pointer.Parent ?? _paraClient.Paragraph.Element; 176ITextPointer position = TextContainerHelper.GetTextPointerFromCP(_paraClient.Paragraph.StructuralCache.TextContainer, _cpPara + dcp, LogicalDirection.Forward); 224double pageHeight = _paraClient.Paragraph.StructuralCache.CurrentFormatContext.DocumentPageSize.Height; 225if (!_paraClient.Paragraph.StructuralCache.CurrentFormatContext.FinitePage)
MS\Internal\PtsHost\PtsHelper.cs (2)
168PTS.FSRECT pageRect = paraClient.Paragraph.StructuralCache.CurrentArrangeContext.PageContext.PageRect; 491if (start < paraClient.Paragraph.ParagraphEndCharacterPosition)
MS\Internal\PtsHost\PtsHost.cs (2)
2505if (((BlockUIContainer)paraClient.Paragraph.Element).Child != null) 2508UIElement uiElement = ((BlockUIContainer)paraClient.Paragraph.Element).Child;
MS\Internal\PtsHost\SubpageParaClient.cs (16)
64((SubpageParagraph)Paragraph).UpdateSegmentLastFormatPositions(); 70MbpInfo mbp = MbpInfo.FromElement(Paragraph.Element, Paragraph.StructuralCache.TextFormatterHost.PixelsPerDip); 111Paragraph.StructuralCache.CurrentArrangeContext.PushNewPageData(_pageContextOfThisPage, subpageDetails.u.simple.trackdescr.fsrc, 112Paragraph.StructuralCache.CurrentArrangeContext.FinitePage); 116Paragraph.StructuralCache.CurrentArrangeContext.PopPageData(); 134Paragraph.StructuralCache.CurrentArrangeContext.PushNewPageData(_pageContextOfThisPage, arrayColumnDesc[index].fsrc, 135Paragraph.StructuralCache.CurrentArrangeContext.FinitePage); 139Paragraph.StructuralCache.CurrentArrangeContext.PopPageData(); 204ie = Paragraph.Element as IInputElement; 221if (Paragraph.Element as ContentElement == e) 285MbpInfo mbpInfo = MbpInfo.FromElement(Paragraph.Element, Paragraph.StructuralCache.TextFormatterHost.PixelsPerDip); 292Brush backgroundBrush = (Brush)Paragraph.Element.GetValue(TextElement.BackgroundProperty); 373ColumnPropertiesGroup columnProperties = new ColumnPropertiesGroup(Paragraph.Element); 508TextElement elementOwner = this.Paragraph.Element as TextElement;
MS\Internal\PtsHost\TableParaClient.cs (8)
63_columnRect = Paragraph.StructuralCache.CurrentArrangeContext.ColumnRect; 220Brush backgroundBrush = (Brush)Paragraph.Element.GetValue(TextElement.BackgroundProperty); 469if (start < cellParaClient.Paragraph.ParagraphEndCharacterPosition) 515TextElement elementOwner = this.Paragraph.Element as TextElement; 1980MbpInfo mbpInfo = MbpInfo.FromElement(Paragraph.Element, Paragraph.StructuralCache.TextFormatterHost.PixelsPerDip); 2013MbpInfo mbpInfo = MbpInfo.FromElement(Paragraph.Element, Paragraph.StructuralCache.TextFormatterHost.PixelsPerDip);
MS\Internal\PtsHost\TextParaClient.cs (83)
157Debug.Assert(!((TextParagraph) Paragraph).HasFiguresFloatersOrInlineObjects()); 235ie = Paragraph.Element as IInputElement; 250Debug.Assert(Paragraph.Element as ContentElement != e); 274if (start < paraClient.Paragraph.ParagraphEndCharacterPosition) 471if (HasEOP && dcpLast > Paragraph.Cch) 473ErrorHandler.Assert(dcpLast == Paragraph.Cch + Line.SyntheticCharacterLength, ErrorHandler.ParagraphCharacterCountMismatch); 478int dcp = Paragraph.ParagraphStartCharacterPosition; 500textContentRange = new TextContentRange(dcp + dcpFirst, dcp + dcpLast, Paragraph.StructuralCache.TextContainer); 607Line line = new Line(Paragraph.StructuralCache.TextFormatterHost, this, Paragraph.ParagraphStartCharacterPosition); 661return TextContainerHelper.GetTextPointerFromCP(Paragraph.StructuralCache.TextContainer, dcp + Paragraph.ParagraphStartCharacterPosition, direction); 675int cp = Paragraph.StructuralCache.TextContainer.Start.GetOffsetToPosition((TextPointer)position); 676int dcp = cp - Paragraph.ParagraphStartCharacterPosition; 737int cpParagraphStart = Paragraph.ParagraphStartCharacterPosition; 741int cpParagraphEnd = Paragraph.ParagraphEndCharacterPosition; 826int cp = Paragraph.StructuralCache.TextContainer.Start.GetOffsetToPosition(position as TextPointer); 827int dcp = cp - Paragraph.ParagraphStartCharacterPosition; 876int cp = Paragraph.StructuralCache.TextContainer.Start.GetOffsetToPosition(position as TextPointer); 877int dcp = cp - Paragraph.ParagraphStartCharacterPosition; 919int cp = Paragraph.StructuralCache.TextContainer.Start.GetOffsetToPosition(position as TextPointer); 920int dcp = cp - Paragraph.ParagraphStartCharacterPosition; 1069Line line = new Line(Paragraph.StructuralCache.TextFormatterHost, this, Paragraph.ParagraphStartCharacterPosition); 1089StaticTextPointer pos = TextContainerHelper.GetStaticTextPointerFromCP(Paragraph.StructuralCache.TextContainer, cpPosition + Paragraph.ParagraphStartCharacterPosition); 1116int dcpStart = Paragraph.StructuralCache.TextContainer.Start.GetOffsetToPosition((TextPointer)start) - Paragraph.ParagraphStartCharacterPosition; 1117int dcpEnd = Paragraph.StructuralCache.TextContainer.Start.GetOffsetToPosition((TextPointer)end) - Paragraph.ParagraphStartCharacterPosition; 1197if (Paragraph.Cch > 0) 1199lastChunk = (textDetails.u.full.dcpLim >= Paragraph.Cch); 1471ContainerVisual lineVisual = CreateLineVisual(ref arrayLineDesc[index], Paragraph.ParagraphStartCharacterPosition); 1553if (HasEOP && lastLineResult.DcpLast > Paragraph.Cch) 1555ErrorHandler.Assert(lastLineResult.DcpLast - Line.SyntheticCharacterLength == Paragraph.Cch, ErrorHandler.ParagraphCharacterCountMismatch); 1615if (HasEOP && lastLineResult.DcpLast > Paragraph.Cch) 1617ErrorHandler.Assert(lastLineResult.DcpLast - Line.SyntheticCharacterLength == Paragraph.Cch, ErrorHandler.ParagraphCharacterCountMismatch); 1659Line line = new Line(Paragraph.StructuralCache.TextFormatterHost, this, Paragraph.ParagraphStartCharacterPosition); 1756Line line = new Line(Paragraph.StructuralCache.TextFormatterHost, this, Paragraph.ParagraphStartCharacterPosition); 2033ITextPointer position = Paragraph.StructuralCache.TextContainer.CreatePointerAtOffset(Paragraph.ParagraphStartCharacterPosition + dcp, LogicalDirection.Forward); 2101Line line = new Line(Paragraph.StructuralCache.TextFormatterHost, this, Paragraph.ParagraphStartCharacterPosition); 2212Line line = new Line(Paragraph.StructuralCache.TextFormatterHost, this, Paragraph.ParagraphStartCharacterPosition); 2340BaseParagraph objectPara = objectParaClient.Paragraph; 2429Line line = new Line(Paragraph.StructuralCache.TextFormatterHost, this, Paragraph.ParagraphStartCharacterPosition); 2553Line line = new Line(Paragraph.StructuralCache.TextFormatterHost, this, Paragraph.ParagraphStartCharacterPosition); 2632Line line = new Line(Paragraph.StructuralCache.TextFormatterHost, this, Paragraph.ParagraphStartCharacterPosition); 2798Line line = new Line(Paragraph.StructuralCache.TextFormatterHost, this, Paragraph.ParagraphStartCharacterPosition); 2914Line line = new Line(Paragraph.StructuralCache.TextFormatterHost, this, Paragraph.ParagraphStartCharacterPosition); 3040Line line = new Line(Paragraph.StructuralCache.TextFormatterHost, this, Paragraph.ParagraphStartCharacterPosition); 3112Line line = new Line(Paragraph.StructuralCache.TextFormatterHost, this, Paragraph.ParagraphStartCharacterPosition); 3174Line line = new Line(Paragraph.StructuralCache.TextFormatterHost, this, Paragraph.ParagraphStartCharacterPosition); 3209int cpTextParaStart = Paragraph.ParagraphStartCharacterPosition; 3233Line line = new Line(Paragraph.StructuralCache.TextFormatterHost, this, cpTextParaStart); 3278Line line = new Line(Paragraph.StructuralCache.TextFormatterHost, this, cpTextParaStart); 3335Line line = new Line(Paragraph.StructuralCache.TextFormatterHost, this, cpTextParaStart); 3386int cpTextParaStart = Paragraph.ParagraphStartCharacterPosition; 3585int cpTextParaStart = Paragraph.ParagraphStartCharacterPosition; 3627Line line = new Line(Paragraph.StructuralCache.TextFormatterHost, this, cpTextParaStart); 3696Line line = new Line(Paragraph.StructuralCache.TextFormatterHost, this, cpTextParaStart); 3785int cpTextParaStart = Paragraph.ParagraphStartCharacterPosition; 3800Line line = new Line(Paragraph.StructuralCache.TextFormatterHost, this, cpTextParaStart); 3839if(!Paragraph.StructuralCache.IsDeferredVisualCreationSupported) 3867int localStart = start - Paragraph.ParagraphStartCharacterPosition; 3926Line line = new Line(Paragraph.StructuralCache.TextFormatterHost, this, Paragraph.ParagraphStartCharacterPosition); 3965int cpTextParaStart = Paragraph.ParagraphStartCharacterPosition; 3991Line line = new Line(Paragraph.StructuralCache.TextFormatterHost, this, cpTextParaStart); 4044int localStart = start - Paragraph.ParagraphStartCharacterPosition; 4125Line line = new Line(Paragraph.StructuralCache.TextFormatterHost, this, Paragraph.ParagraphStartCharacterPosition);
MS\Internal\PtsHost\TextParaLineResult.cs (2)
200return _dcp + _owner.Paragraph.ParagraphStartCharacterPosition; 211return _dcp + _cch + _owner.Paragraph.ParagraphStartCharacterPosition;
MS\Internal\PtsHost\UIElementParaClient.cs (11)
64MbpInfo mbp = MbpInfo.FromElement(Paragraph.Element, Paragraph.StructuralCache.TextFormatterHost.PixelsPerDip); 86if (Paragraph.Element == e) 100MbpInfo mbp = MbpInfo.FromElement(Paragraph.Element, Paragraph.StructuralCache.TextFormatterHost.PixelsPerDip); 107UIElementIsland uiElementIsland = ((UIElementParagraph)Paragraph).UIElementIsland; 132Brush backgroundBrush = (Brush)Paragraph.Element.GetValue(TextElement.BackgroundProperty); 141if (startPosition.CompareTo(((BlockUIContainer)Paragraph.Element).ContentEnd) < 0 && 142endPosition.CompareTo(((BlockUIContainer)Paragraph.Element).ContentStart) > 0) 166return Paragraph.Element as IInputElement; 176BlockUIContainer elementOwner = (BlockUIContainer)Paragraph.Element;