223 references to Paragraph
PresentationFramework (223)
MS\Internal\Documents\ParagraphResult.cs (8)
44_element = paraClient.Paragraph.Element; 528TextParagraph textParagraph = _paraClient.Paragraph as TextParagraph; 945MbpInfo mbp = MbpInfo.FromElement(_paraClient.Paragraph.Element, _paraClient.Paragraph.StructuralCache.TextFormatterHost.PixelsPerDip); 1060MbpInfo mbp = MbpInfo.FromElement(_paraClient.Paragraph.Element, _paraClient.Paragraph.StructuralCache.TextFormatterHost.PixelsPerDip); 1232MbpInfo mbp = MbpInfo.FromElement(_paraClient.Paragraph.Element, _paraClient.Paragraph.StructuralCache.TextFormatterHost.PixelsPerDip);
MS\Internal\PtsHost\BaseParaClient.cs (4)
84_pageContext = Paragraph.StructuralCache.CurrentArrangeContext.PageContext; 88_flowDirection = (FlowDirection)Paragraph.Element.GetValue(FrameworkElement.FlowDirectionProperty); 223internal FlowDirection PageFlowDirection { get { return Paragraph.StructuralCache.PageFlowDirection; } } 240Paragraph.UpdateLastFormatPositions();
MS\Internal\PtsHost\CellParaClient.cs (1)
118_flowDirection = (FlowDirection)Paragraph.Element.GetValue(FrameworkElement.FlowDirectionProperty);
MS\Internal\PtsHost\ContainerParaClient.cs (9)
56MbpInfo mbp = MbpInfo.FromElement(Paragraph.Element, Paragraph.StructuralCache.TextFormatterHost.PixelsPerDip); 114ie = Paragraph.Element as IInputElement; 137if (this.Paragraph.Element as ContentElement == e) 188MbpInfo mbp = MbpInfo.FromElement(Paragraph.Element, Paragraph.StructuralCache.TextFormatterHost.PixelsPerDip); 195Brush backgroundBrush = (Brush)Paragraph.Element.GetValue(TextElement.BackgroundProperty); 268TextElement elementOwner = this.Paragraph.Element as TextElement; 295paraClient = Paragraph.StructuralCache.PtsContext.HandleToObject(arrayParaDesc[i].pfsparaclient) as BaseParaClient;
MS\Internal\PtsHost\FigureParaClient.cs (20)
68((FigureParagraph)Paragraph).UpdateSegmentLastFormatPositions(); 76MbpInfo mbp = MbpInfo.FromElement(Paragraph.Element, Paragraph.StructuralCache.TextFormatterHost.PixelsPerDip); 104Paragraph.StructuralCache.CurrentArrangeContext.PushNewPageData(_pageContextOfThisPage, subpageDetails.u.simple.trackdescr.fsrc, 105Paragraph.StructuralCache.CurrentArrangeContext.FinitePage); 109Paragraph.StructuralCache.CurrentArrangeContext.PopPageData(); 127Paragraph.StructuralCache.CurrentArrangeContext.PushNewPageData(_pageContextOfThisPage, arrayColumnDesc[index].fsrc, 128Paragraph.StructuralCache.CurrentArrangeContext.FinitePage); 132Paragraph.StructuralCache.CurrentArrangeContext.PopPageData(); 198MbpInfo mbp = MbpInfo.FromElement(Paragraph.Element, Paragraph.StructuralCache.TextFormatterHost.PixelsPerDip); 208_flowDirection = (FlowDirection)Paragraph.Element.GetValue(FrameworkElement.FlowDirectionProperty); 274ie = Paragraph.Element as IInputElement; 292if (Paragraph.Element as ContentElement == e) 358MbpInfo mbp = MbpInfo.FromElement(Paragraph.Element, Paragraph.StructuralCache.TextFormatterHost.PixelsPerDip); 365Brush backgroundBrush = (Brush)Paragraph.Element.GetValue(TextElement.BackgroundProperty); 446ColumnPropertiesGroup columnProperties = new ColumnPropertiesGroup(Paragraph.Element); 539Paragraph.Element as TextElement, ElementEdge.BeforeStart)); 547Paragraph.Element as TextElement, ElementEdge.AfterEnd));
MS\Internal\PtsHost\FloaterParaClient.cs (19)
70((FloaterParagraph)Paragraph).UpdateSegmentLastFormatPositions(); 88Paragraph.StructuralCache.CurrentArrangeContext.PushNewPageData(_pageContextOfThisPage, subpageDetails.u.simple.trackdescr.fsrc, 89Paragraph.StructuralCache.CurrentArrangeContext.FinitePage); 93Paragraph.StructuralCache.CurrentArrangeContext.PopPageData(); 111Paragraph.StructuralCache.CurrentArrangeContext.PushNewPageData(_pageContextOfThisPage, arrayColumnDesc[index].fsrc, 112Paragraph.StructuralCache.CurrentArrangeContext.FinitePage); 116Paragraph.StructuralCache.CurrentArrangeContext.PopPageData(); 189MbpInfo mbp = MbpInfo.FromElement(Paragraph.Element, Paragraph.StructuralCache.TextFormatterHost.PixelsPerDip); 196_flowDirection = (FlowDirection)Paragraph.Element.GetValue(FrameworkElement.FlowDirectionProperty); 278ie = Paragraph.Element as IInputElement; 296if (Paragraph.Element as ContentElement == e) 364MbpInfo mbp = MbpInfo.FromElement(Paragraph.Element, Paragraph.StructuralCache.TextFormatterHost.PixelsPerDip); 371Brush backgroundBrush = (Brush)Paragraph.Element.GetValue(TextElement.BackgroundProperty); 452ColumnPropertiesGroup columnProperties = new ColumnPropertiesGroup(Paragraph.Element); 546Paragraph.Element as TextElement, ElementEdge.BeforeStart)); 554Paragraph.Element as TextElement, ElementEdge.AfterEnd)); 809Floater floater = Paragraph.Element as Floater;
MS\Internal\PtsHost\Line.cs (12)
130int cpFigure = TextContainerHelper.GetCPFromElement(_paraClient.Paragraph.StructuralCache.TextContainer, paraFigure.Element, ElementEdge.BeforeStart); 155ITextContainer textContainer = _paraClient.Paragraph.StructuralCache.TextContainer; 204ITextPointer startPosition = TextContainerHelper.GetTextPointerFromCP(_paraClient.Paragraph.StructuralCache.TextContainer, _cpPara, LogicalDirection.Forward); 205ITextPointer position = TextContainerHelper.GetTextPointerFromCP(_paraClient.Paragraph.StructuralCache.TextContainer, _cpPara + dcp, LogicalDirection.Forward); 221DependencyObject element = (pointer.Parent != null) ? pointer.Parent : _paraClient.Paragraph.Element; 311inlineObjects.Add(new InlineObject(dcpRun, ((InlineObjectRun)run).UIElementIsland, (TextParagraph)_paraClient.Paragraph)); 365double pageHeight = _paraClient.Paragraph.StructuralCache.CurrentFormatContext.DocumentPageSize.Height; 366if (!_paraClient.Paragraph.StructuralCache.CurrentFormatContext.FinitePage) 408DependencyObject paragraphElement = _paraClient.Paragraph.Element; 607cp = _paraClient.Paragraph.ParagraphStartCharacterPosition + charIndex.FirstCharacterIndex + charIndex.TrailingLength; 608position = TextContainerHelper.GetTextPointerFromCP(_paraClient.Paragraph.StructuralCache.TextContainer, cp, LogicalDirection.Forward) as TextPointer; 1229return _paraClient.Paragraph as TextParagraph;
MS\Internal\PtsHost\LineBase.cs (8)
100element = _paraClient.Paragraph.Element; 107_paraClient.Paragraph.StructuralCache.TextFormatterHost.PixelsPerDip); 154int cch = TextContainerHelper.GetElementLength(_paraClient.Paragraph.StructuralCache.TextContainer, element); 168int cch = TextContainerHelper.GetElementLength(_paraClient.Paragraph.StructuralCache.TextContainer, element); 177_paraClient.Paragraph.StructuralCache.TextFormatterHost.PixelsPerDip); 259if (position.Parent == _paraClient.Paragraph.Element) 318_paraClient.Paragraph.StructuralCache.TextFormatterHost.PixelsPerDip); 321run = new InlineObjectRun(TextContainerHelper.EmbeddedObjectLength, (UIElement)embeddedObject, textProps, _paraClient.Paragraph as TextParagraph);
MS\Internal\PtsHost\ListParaClient.cs (11)
54MbpInfo mbp = MbpInfo.FromElement(Paragraph.Element, Paragraph.StructuralCache.TextFormatterHost.PixelsPerDip); 60uint fswdir = PTS.FlowDirectionToFswdir((FlowDirection)Paragraph.Element.GetValue(FrameworkElement.FlowDirectionProperty)); 62Brush backgroundBrush = (Brush)Paragraph.Element.GetValue(TextElement.BackgroundProperty); 66TextProperties textProperties = new TextProperties(Paragraph.Element, StaticTextPointer.Null, false /* inline objects */, false /* get background */, 67Paragraph.StructuralCache.TextFormatterHost.PixelsPerDip); 80ListMarkerLine listMarkerLine = new ListMarkerLine(Paragraph.StructuralCache.TextFormatterHost, this); 85List list = Paragraph.Element as List; 92indexFirstParaInSubtrack = list.GetListItemIndex(listItemParaClient.Paragraph.Element as ListItem); 113LineProperties lineProps = new LineProperties(Paragraph.Element, Paragraph.StructuralCache.FormattingOwner, textProperties, new MarkerProperties(list, adjustedIndex));
MS\Internal\PtsHost\OptimalTextSource.cs (7)
103ITextContainer textContainer = _paraClient.Paragraph.StructuralCache.TextContainer; 153ITextPointer startPosition = TextContainerHelper.GetTextPointerFromCP(_paraClient.Paragraph.StructuralCache.TextContainer, _cpPara, LogicalDirection.Forward); 154ITextPointer position = TextContainerHelper.GetTextPointerFromCP(_paraClient.Paragraph.StructuralCache.TextContainer, _cpPara + dcp, LogicalDirection.Forward); 171DependencyObject element = (pointer.Parent != null) ? pointer.Parent : _paraClient.Paragraph.Element; 192ITextPointer position = TextContainerHelper.GetTextPointerFromCP(_paraClient.Paragraph.StructuralCache.TextContainer, _cpPara + dcp, LogicalDirection.Forward); 240double pageHeight = _paraClient.Paragraph.StructuralCache.CurrentFormatContext.DocumentPageSize.Height; 241if (!_paraClient.Paragraph.StructuralCache.CurrentFormatContext.FinitePage)
MS\Internal\PtsHost\PtsHelper.cs (2)
174PTS.FSRECT pageRect = paraClient.Paragraph.StructuralCache.CurrentArrangeContext.PageContext.PageRect; 497if (start < paraClient.Paragraph.ParagraphEndCharacterPosition)
MS\Internal\PtsHost\PtsHost.cs (2)
2528if (((BlockUIContainer)paraClient.Paragraph.Element).Child != null) 2531UIElement uiElement = ((BlockUIContainer)paraClient.Paragraph.Element).Child;
MS\Internal\PtsHost\SubpageParaClient.cs (16)
70((SubpageParagraph)Paragraph).UpdateSegmentLastFormatPositions(); 76MbpInfo mbp = MbpInfo.FromElement(Paragraph.Element, Paragraph.StructuralCache.TextFormatterHost.PixelsPerDip); 117Paragraph.StructuralCache.CurrentArrangeContext.PushNewPageData(_pageContextOfThisPage, subpageDetails.u.simple.trackdescr.fsrc, 118Paragraph.StructuralCache.CurrentArrangeContext.FinitePage); 122Paragraph.StructuralCache.CurrentArrangeContext.PopPageData(); 140Paragraph.StructuralCache.CurrentArrangeContext.PushNewPageData(_pageContextOfThisPage, arrayColumnDesc[index].fsrc, 141Paragraph.StructuralCache.CurrentArrangeContext.FinitePage); 145Paragraph.StructuralCache.CurrentArrangeContext.PopPageData(); 210ie = Paragraph.Element as IInputElement; 227if (Paragraph.Element as ContentElement == e) 291MbpInfo mbpInfo = MbpInfo.FromElement(Paragraph.Element, Paragraph.StructuralCache.TextFormatterHost.PixelsPerDip); 298Brush backgroundBrush = (Brush)Paragraph.Element.GetValue(TextElement.BackgroundProperty); 379ColumnPropertiesGroup columnProperties = new ColumnPropertiesGroup(Paragraph.Element); 513TextElement elementOwner = this.Paragraph.Element as TextElement;
MS\Internal\PtsHost\TableParaClient.cs (8)
70_columnRect = Paragraph.StructuralCache.CurrentArrangeContext.ColumnRect; 227Brush backgroundBrush = (Brush)Paragraph.Element.GetValue(TextElement.BackgroundProperty); 476if (start < cellParaClient.Paragraph.ParagraphEndCharacterPosition) 522TextElement elementOwner = this.Paragraph.Element as TextElement; 1987MbpInfo mbpInfo = MbpInfo.FromElement(Paragraph.Element, Paragraph.StructuralCache.TextFormatterHost.PixelsPerDip); 2020MbpInfo mbpInfo = MbpInfo.FromElement(Paragraph.Element, Paragraph.StructuralCache.TextFormatterHost.PixelsPerDip);
MS\Internal\PtsHost\TextParaClient.cs (83)
164Debug.Assert(!((TextParagraph) Paragraph).HasFiguresFloatersOrInlineObjects()); 242ie = Paragraph.Element as IInputElement; 257Debug.Assert(Paragraph.Element as ContentElement != e); 281if (start < paraClient.Paragraph.ParagraphEndCharacterPosition) 478if (HasEOP && dcpLast > Paragraph.Cch) 480ErrorHandler.Assert(dcpLast == Paragraph.Cch + Line.SyntheticCharacterLength, ErrorHandler.ParagraphCharacterCountMismatch); 485int dcp = Paragraph.ParagraphStartCharacterPosition; 507textContentRange = new TextContentRange(dcp + dcpFirst, dcp + dcpLast, Paragraph.StructuralCache.TextContainer); 614Line line = new Line(Paragraph.StructuralCache.TextFormatterHost, this, Paragraph.ParagraphStartCharacterPosition); 668return TextContainerHelper.GetTextPointerFromCP(Paragraph.StructuralCache.TextContainer, dcp + Paragraph.ParagraphStartCharacterPosition, direction); 682int cp = Paragraph.StructuralCache.TextContainer.Start.GetOffsetToPosition((TextPointer)position); 683int dcp = cp - Paragraph.ParagraphStartCharacterPosition; 744int cpParagraphStart = Paragraph.ParagraphStartCharacterPosition; 748int cpParagraphEnd = Paragraph.ParagraphEndCharacterPosition; 833int cp = Paragraph.StructuralCache.TextContainer.Start.GetOffsetToPosition(position as TextPointer); 834int dcp = cp - Paragraph.ParagraphStartCharacterPosition; 883int cp = Paragraph.StructuralCache.TextContainer.Start.GetOffsetToPosition(position as TextPointer); 884int dcp = cp - Paragraph.ParagraphStartCharacterPosition; 926int cp = Paragraph.StructuralCache.TextContainer.Start.GetOffsetToPosition(position as TextPointer); 927int dcp = cp - Paragraph.ParagraphStartCharacterPosition; 1076Line line = new Line(Paragraph.StructuralCache.TextFormatterHost, this, Paragraph.ParagraphStartCharacterPosition); 1096StaticTextPointer pos = TextContainerHelper.GetStaticTextPointerFromCP(Paragraph.StructuralCache.TextContainer, cpPosition + Paragraph.ParagraphStartCharacterPosition); 1123int dcpStart = Paragraph.StructuralCache.TextContainer.Start.GetOffsetToPosition((TextPointer)start) - Paragraph.ParagraphStartCharacterPosition; 1124int dcpEnd = Paragraph.StructuralCache.TextContainer.Start.GetOffsetToPosition((TextPointer)end) - Paragraph.ParagraphStartCharacterPosition; 1204if (Paragraph.Cch > 0) 1206lastChunk = (textDetails.u.full.dcpLim >= Paragraph.Cch); 1478ContainerVisual lineVisual = CreateLineVisual(ref arrayLineDesc[index], Paragraph.ParagraphStartCharacterPosition); 1560if (HasEOP && lastLineResult.DcpLast > Paragraph.Cch) 1562ErrorHandler.Assert(lastLineResult.DcpLast - Line.SyntheticCharacterLength == Paragraph.Cch, ErrorHandler.ParagraphCharacterCountMismatch); 1622if (HasEOP && lastLineResult.DcpLast > Paragraph.Cch) 1624ErrorHandler.Assert(lastLineResult.DcpLast - Line.SyntheticCharacterLength == Paragraph.Cch, ErrorHandler.ParagraphCharacterCountMismatch); 1666Line line = new Line(Paragraph.StructuralCache.TextFormatterHost, this, Paragraph.ParagraphStartCharacterPosition); 1763Line line = new Line(Paragraph.StructuralCache.TextFormatterHost, this, Paragraph.ParagraphStartCharacterPosition); 2040ITextPointer position = Paragraph.StructuralCache.TextContainer.CreatePointerAtOffset(Paragraph.ParagraphStartCharacterPosition + dcp, LogicalDirection.Forward); 2108Line line = new Line(Paragraph.StructuralCache.TextFormatterHost, this, Paragraph.ParagraphStartCharacterPosition); 2219Line line = new Line(Paragraph.StructuralCache.TextFormatterHost, this, Paragraph.ParagraphStartCharacterPosition); 2347BaseParagraph objectPara = objectParaClient.Paragraph; 2436Line line = new Line(Paragraph.StructuralCache.TextFormatterHost, this, Paragraph.ParagraphStartCharacterPosition); 2560Line line = new Line(Paragraph.StructuralCache.TextFormatterHost, this, Paragraph.ParagraphStartCharacterPosition); 2639Line line = new Line(Paragraph.StructuralCache.TextFormatterHost, this, Paragraph.ParagraphStartCharacterPosition); 2805Line line = new Line(Paragraph.StructuralCache.TextFormatterHost, this, Paragraph.ParagraphStartCharacterPosition); 2921Line line = new Line(Paragraph.StructuralCache.TextFormatterHost, this, Paragraph.ParagraphStartCharacterPosition); 3047Line line = new Line(Paragraph.StructuralCache.TextFormatterHost, this, Paragraph.ParagraphStartCharacterPosition); 3119Line line = new Line(Paragraph.StructuralCache.TextFormatterHost, this, Paragraph.ParagraphStartCharacterPosition); 3181Line line = new Line(Paragraph.StructuralCache.TextFormatterHost, this, Paragraph.ParagraphStartCharacterPosition); 3216int cpTextParaStart = Paragraph.ParagraphStartCharacterPosition; 3240Line line = new Line(Paragraph.StructuralCache.TextFormatterHost, this, cpTextParaStart); 3285Line line = new Line(Paragraph.StructuralCache.TextFormatterHost, this, cpTextParaStart); 3342Line line = new Line(Paragraph.StructuralCache.TextFormatterHost, this, cpTextParaStart); 3393int cpTextParaStart = Paragraph.ParagraphStartCharacterPosition; 3592int cpTextParaStart = Paragraph.ParagraphStartCharacterPosition; 3634Line line = new Line(Paragraph.StructuralCache.TextFormatterHost, this, cpTextParaStart); 3703Line line = new Line(Paragraph.StructuralCache.TextFormatterHost, this, cpTextParaStart); 3792int cpTextParaStart = Paragraph.ParagraphStartCharacterPosition; 3807Line line = new Line(Paragraph.StructuralCache.TextFormatterHost, this, cpTextParaStart); 3846if(!Paragraph.StructuralCache.IsDeferredVisualCreationSupported) 3874int localStart = start - Paragraph.ParagraphStartCharacterPosition; 3933Line line = new Line(Paragraph.StructuralCache.TextFormatterHost, this, Paragraph.ParagraphStartCharacterPosition); 3972int cpTextParaStart = Paragraph.ParagraphStartCharacterPosition; 3998Line line = new Line(Paragraph.StructuralCache.TextFormatterHost, this, cpTextParaStart); 4051int localStart = start - Paragraph.ParagraphStartCharacterPosition; 4132Line line = new Line(Paragraph.StructuralCache.TextFormatterHost, this, Paragraph.ParagraphStartCharacterPosition);
MS\Internal\PtsHost\TextParaLineResult.cs (2)
204return _dcp + _owner.Paragraph.ParagraphStartCharacterPosition; 215return _dcp + _cch + _owner.Paragraph.ParagraphStartCharacterPosition;
MS\Internal\PtsHost\UIElementParaClient.cs (11)
69MbpInfo mbp = MbpInfo.FromElement(Paragraph.Element, Paragraph.StructuralCache.TextFormatterHost.PixelsPerDip); 91if (Paragraph.Element == e) 105MbpInfo mbp = MbpInfo.FromElement(Paragraph.Element, Paragraph.StructuralCache.TextFormatterHost.PixelsPerDip); 112UIElementIsland uiElementIsland = ((UIElementParagraph)Paragraph).UIElementIsland; 137Brush backgroundBrush = (Brush)Paragraph.Element.GetValue(TextElement.BackgroundProperty); 146if (startPosition.CompareTo(((BlockUIContainer)Paragraph.Element).ContentEnd) < 0 && 147endPosition.CompareTo(((BlockUIContainer)Paragraph.Element).ContentStart) > 0) 171return Paragraph.Element as IInputElement; 181BlockUIContainer elementOwner = (BlockUIContainer)Paragraph.Element;