223 references to Paragraph
PresentationFramework (223)
MS\Internal\Documents\ParagraphResult.cs (8)
41_element = paraClient.Paragraph.Element; 525TextParagraph textParagraph = _paraClient.Paragraph as TextParagraph; 942MbpInfo mbp = MbpInfo.FromElement(_paraClient.Paragraph.Element, _paraClient.Paragraph.StructuralCache.TextFormatterHost.PixelsPerDip); 1057MbpInfo mbp = MbpInfo.FromElement(_paraClient.Paragraph.Element, _paraClient.Paragraph.StructuralCache.TextFormatterHost.PixelsPerDip); 1229MbpInfo mbp = MbpInfo.FromElement(_paraClient.Paragraph.Element, _paraClient.Paragraph.StructuralCache.TextFormatterHost.PixelsPerDip);
MS\Internal\PtsHost\BaseParaClient.cs (4)
76_pageContext = Paragraph.StructuralCache.CurrentArrangeContext.PageContext; 80_flowDirection = (FlowDirection)Paragraph.Element.GetValue(FrameworkElement.FlowDirectionProperty); 215internal FlowDirection PageFlowDirection { get { return Paragraph.StructuralCache.PageFlowDirection; } } 232Paragraph.UpdateLastFormatPositions();
MS\Internal\PtsHost\CellParaClient.cs (1)
113_flowDirection = (FlowDirection)Paragraph.Element.GetValue(FrameworkElement.FlowDirectionProperty);
MS\Internal\PtsHost\ContainerParaClient.cs (9)
51MbpInfo mbp = MbpInfo.FromElement(Paragraph.Element, Paragraph.StructuralCache.TextFormatterHost.PixelsPerDip); 109ie = Paragraph.Element as IInputElement; 132if (this.Paragraph.Element as ContentElement == e) 183MbpInfo mbp = MbpInfo.FromElement(Paragraph.Element, Paragraph.StructuralCache.TextFormatterHost.PixelsPerDip); 190Brush backgroundBrush = (Brush)Paragraph.Element.GetValue(TextElement.BackgroundProperty); 263TextElement elementOwner = this.Paragraph.Element as TextElement; 290paraClient = Paragraph.StructuralCache.PtsContext.HandleToObject(arrayParaDesc[i].pfsparaclient) as BaseParaClient;
MS\Internal\PtsHost\FigureParaClient.cs (20)
62((FigureParagraph)Paragraph).UpdateSegmentLastFormatPositions(); 70MbpInfo mbp = MbpInfo.FromElement(Paragraph.Element, Paragraph.StructuralCache.TextFormatterHost.PixelsPerDip); 98Paragraph.StructuralCache.CurrentArrangeContext.PushNewPageData(_pageContextOfThisPage, subpageDetails.u.simple.trackdescr.fsrc, 99Paragraph.StructuralCache.CurrentArrangeContext.FinitePage); 103Paragraph.StructuralCache.CurrentArrangeContext.PopPageData(); 121Paragraph.StructuralCache.CurrentArrangeContext.PushNewPageData(_pageContextOfThisPage, arrayColumnDesc[index].fsrc, 122Paragraph.StructuralCache.CurrentArrangeContext.FinitePage); 126Paragraph.StructuralCache.CurrentArrangeContext.PopPageData(); 193MbpInfo mbp = MbpInfo.FromElement(Paragraph.Element, Paragraph.StructuralCache.TextFormatterHost.PixelsPerDip); 203_flowDirection = (FlowDirection)Paragraph.Element.GetValue(FrameworkElement.FlowDirectionProperty); 269ie = Paragraph.Element as IInputElement; 287if (Paragraph.Element as ContentElement == e) 353MbpInfo mbp = MbpInfo.FromElement(Paragraph.Element, Paragraph.StructuralCache.TextFormatterHost.PixelsPerDip); 360Brush backgroundBrush = (Brush)Paragraph.Element.GetValue(TextElement.BackgroundProperty); 441ColumnPropertiesGroup columnProperties = new ColumnPropertiesGroup(Paragraph.Element); 534Paragraph.Element as TextElement, ElementEdge.BeforeStart)); 542Paragraph.Element as TextElement, ElementEdge.AfterEnd));
MS\Internal\PtsHost\FloaterParaClient.cs (19)
65((FloaterParagraph)Paragraph).UpdateSegmentLastFormatPositions(); 83Paragraph.StructuralCache.CurrentArrangeContext.PushNewPageData(_pageContextOfThisPage, subpageDetails.u.simple.trackdescr.fsrc, 84Paragraph.StructuralCache.CurrentArrangeContext.FinitePage); 88Paragraph.StructuralCache.CurrentArrangeContext.PopPageData(); 106Paragraph.StructuralCache.CurrentArrangeContext.PushNewPageData(_pageContextOfThisPage, arrayColumnDesc[index].fsrc, 107Paragraph.StructuralCache.CurrentArrangeContext.FinitePage); 111Paragraph.StructuralCache.CurrentArrangeContext.PopPageData(); 185MbpInfo mbp = MbpInfo.FromElement(Paragraph.Element, Paragraph.StructuralCache.TextFormatterHost.PixelsPerDip); 192_flowDirection = (FlowDirection)Paragraph.Element.GetValue(FrameworkElement.FlowDirectionProperty); 274ie = Paragraph.Element as IInputElement; 292if (Paragraph.Element as ContentElement == e) 360MbpInfo mbp = MbpInfo.FromElement(Paragraph.Element, Paragraph.StructuralCache.TextFormatterHost.PixelsPerDip); 367Brush backgroundBrush = (Brush)Paragraph.Element.GetValue(TextElement.BackgroundProperty); 448ColumnPropertiesGroup columnProperties = new ColumnPropertiesGroup(Paragraph.Element); 542Paragraph.Element as TextElement, ElementEdge.BeforeStart)); 550Paragraph.Element as TextElement, ElementEdge.AfterEnd)); 805Floater floater = Paragraph.Element as Floater;
MS\Internal\PtsHost\Line.cs (12)
116int cpFigure = TextContainerHelper.GetCPFromElement(_paraClient.Paragraph.StructuralCache.TextContainer, paraFigure.Element, ElementEdge.BeforeStart); 141ITextContainer textContainer = _paraClient.Paragraph.StructuralCache.TextContainer; 190ITextPointer startPosition = TextContainerHelper.GetTextPointerFromCP(_paraClient.Paragraph.StructuralCache.TextContainer, _cpPara, LogicalDirection.Forward); 191ITextPointer position = TextContainerHelper.GetTextPointerFromCP(_paraClient.Paragraph.StructuralCache.TextContainer, _cpPara + dcp, LogicalDirection.Forward); 207DependencyObject element = pointer.Parent ?? _paraClient.Paragraph.Element; 297inlineObjects.Add(new InlineObject(dcpRun, ((InlineObjectRun)run).UIElementIsland, (TextParagraph)_paraClient.Paragraph)); 351double pageHeight = _paraClient.Paragraph.StructuralCache.CurrentFormatContext.DocumentPageSize.Height; 352if (!_paraClient.Paragraph.StructuralCache.CurrentFormatContext.FinitePage) 394DependencyObject paragraphElement = _paraClient.Paragraph.Element; 592cp = _paraClient.Paragraph.ParagraphStartCharacterPosition + charIndex.FirstCharacterIndex + charIndex.TrailingLength; 593position = TextContainerHelper.GetTextPointerFromCP(_paraClient.Paragraph.StructuralCache.TextContainer, cp, LogicalDirection.Forward) as TextPointer; 1214return _paraClient.Paragraph as TextParagraph;
MS\Internal\PtsHost\LineBase.cs (8)
90element = _paraClient.Paragraph.Element; 97_paraClient.Paragraph.StructuralCache.TextFormatterHost.PixelsPerDip); 144int cch = TextContainerHelper.GetElementLength(_paraClient.Paragraph.StructuralCache.TextContainer, element); 158int cch = TextContainerHelper.GetElementLength(_paraClient.Paragraph.StructuralCache.TextContainer, element); 167_paraClient.Paragraph.StructuralCache.TextFormatterHost.PixelsPerDip); 249if (position.Parent == _paraClient.Paragraph.Element) 308_paraClient.Paragraph.StructuralCache.TextFormatterHost.PixelsPerDip); 311run = new InlineObjectRun(TextContainerHelper.EmbeddedObjectLength, (UIElement)embeddedObject, textProps, _paraClient.Paragraph as TextParagraph);
MS\Internal\PtsHost\ListParaClient.cs (11)
50MbpInfo mbp = MbpInfo.FromElement(Paragraph.Element, Paragraph.StructuralCache.TextFormatterHost.PixelsPerDip); 56uint fswdir = PTS.FlowDirectionToFswdir((FlowDirection)Paragraph.Element.GetValue(FrameworkElement.FlowDirectionProperty)); 58Brush backgroundBrush = (Brush)Paragraph.Element.GetValue(TextElement.BackgroundProperty); 62TextProperties textProperties = new TextProperties(Paragraph.Element, StaticTextPointer.Null, false /* inline objects */, false /* get background */, 63Paragraph.StructuralCache.TextFormatterHost.PixelsPerDip); 76ListMarkerLine listMarkerLine = new ListMarkerLine(Paragraph.StructuralCache.TextFormatterHost, this); 81List list = Paragraph.Element as List; 88indexFirstParaInSubtrack = list.GetListItemIndex(listItemParaClient.Paragraph.Element as ListItem); 109LineProperties lineProps = new LineProperties(Paragraph.Element, Paragraph.StructuralCache.FormattingOwner, textProperties, new MarkerProperties(list, adjustedIndex));
MS\Internal\PtsHost\OptimalTextSource.cs (7)
88ITextContainer textContainer = _paraClient.Paragraph.StructuralCache.TextContainer; 138ITextPointer startPosition = TextContainerHelper.GetTextPointerFromCP(_paraClient.Paragraph.StructuralCache.TextContainer, _cpPara, LogicalDirection.Forward); 139ITextPointer position = TextContainerHelper.GetTextPointerFromCP(_paraClient.Paragraph.StructuralCache.TextContainer, _cpPara + dcp, LogicalDirection.Forward); 156DependencyObject element = pointer.Parent ?? _paraClient.Paragraph.Element; 177ITextPointer position = TextContainerHelper.GetTextPointerFromCP(_paraClient.Paragraph.StructuralCache.TextContainer, _cpPara + dcp, LogicalDirection.Forward); 225double pageHeight = _paraClient.Paragraph.StructuralCache.CurrentFormatContext.DocumentPageSize.Height; 226if (!_paraClient.Paragraph.StructuralCache.CurrentFormatContext.FinitePage)
MS\Internal\PtsHost\PtsHelper.cs (2)
169PTS.FSRECT pageRect = paraClient.Paragraph.StructuralCache.CurrentArrangeContext.PageContext.PageRect; 492if (start < paraClient.Paragraph.ParagraphEndCharacterPosition)
MS\Internal\PtsHost\PtsHost.cs (2)
2506if (((BlockUIContainer)paraClient.Paragraph.Element).Child != null) 2509UIElement uiElement = ((BlockUIContainer)paraClient.Paragraph.Element).Child;
MS\Internal\PtsHost\SubpageParaClient.cs (16)
65((SubpageParagraph)Paragraph).UpdateSegmentLastFormatPositions(); 71MbpInfo mbp = MbpInfo.FromElement(Paragraph.Element, Paragraph.StructuralCache.TextFormatterHost.PixelsPerDip); 112Paragraph.StructuralCache.CurrentArrangeContext.PushNewPageData(_pageContextOfThisPage, subpageDetails.u.simple.trackdescr.fsrc, 113Paragraph.StructuralCache.CurrentArrangeContext.FinitePage); 117Paragraph.StructuralCache.CurrentArrangeContext.PopPageData(); 135Paragraph.StructuralCache.CurrentArrangeContext.PushNewPageData(_pageContextOfThisPage, arrayColumnDesc[index].fsrc, 136Paragraph.StructuralCache.CurrentArrangeContext.FinitePage); 140Paragraph.StructuralCache.CurrentArrangeContext.PopPageData(); 205ie = Paragraph.Element as IInputElement; 222if (Paragraph.Element as ContentElement == e) 286MbpInfo mbpInfo = MbpInfo.FromElement(Paragraph.Element, Paragraph.StructuralCache.TextFormatterHost.PixelsPerDip); 293Brush backgroundBrush = (Brush)Paragraph.Element.GetValue(TextElement.BackgroundProperty); 374ColumnPropertiesGroup columnProperties = new ColumnPropertiesGroup(Paragraph.Element); 509TextElement elementOwner = this.Paragraph.Element as TextElement;
MS\Internal\PtsHost\TableParaClient.cs (8)
64_columnRect = Paragraph.StructuralCache.CurrentArrangeContext.ColumnRect; 221Brush backgroundBrush = (Brush)Paragraph.Element.GetValue(TextElement.BackgroundProperty); 470if (start < cellParaClient.Paragraph.ParagraphEndCharacterPosition) 516TextElement elementOwner = this.Paragraph.Element as TextElement; 1981MbpInfo mbpInfo = MbpInfo.FromElement(Paragraph.Element, Paragraph.StructuralCache.TextFormatterHost.PixelsPerDip); 2014MbpInfo mbpInfo = MbpInfo.FromElement(Paragraph.Element, Paragraph.StructuralCache.TextFormatterHost.PixelsPerDip);
MS\Internal\PtsHost\TextParaClient.cs (83)
158Debug.Assert(!((TextParagraph) Paragraph).HasFiguresFloatersOrInlineObjects()); 236ie = Paragraph.Element as IInputElement; 251Debug.Assert(Paragraph.Element as ContentElement != e); 275if (start < paraClient.Paragraph.ParagraphEndCharacterPosition) 472if (HasEOP && dcpLast > Paragraph.Cch) 474ErrorHandler.Assert(dcpLast == Paragraph.Cch + Line.SyntheticCharacterLength, ErrorHandler.ParagraphCharacterCountMismatch); 479int dcp = Paragraph.ParagraphStartCharacterPosition; 501textContentRange = new TextContentRange(dcp + dcpFirst, dcp + dcpLast, Paragraph.StructuralCache.TextContainer); 608Line line = new Line(Paragraph.StructuralCache.TextFormatterHost, this, Paragraph.ParagraphStartCharacterPosition); 662return TextContainerHelper.GetTextPointerFromCP(Paragraph.StructuralCache.TextContainer, dcp + Paragraph.ParagraphStartCharacterPosition, direction); 676int cp = Paragraph.StructuralCache.TextContainer.Start.GetOffsetToPosition((TextPointer)position); 677int dcp = cp - Paragraph.ParagraphStartCharacterPosition; 738int cpParagraphStart = Paragraph.ParagraphStartCharacterPosition; 742int cpParagraphEnd = Paragraph.ParagraphEndCharacterPosition; 827int cp = Paragraph.StructuralCache.TextContainer.Start.GetOffsetToPosition(position as TextPointer); 828int dcp = cp - Paragraph.ParagraphStartCharacterPosition; 877int cp = Paragraph.StructuralCache.TextContainer.Start.GetOffsetToPosition(position as TextPointer); 878int dcp = cp - Paragraph.ParagraphStartCharacterPosition; 920int cp = Paragraph.StructuralCache.TextContainer.Start.GetOffsetToPosition(position as TextPointer); 921int dcp = cp - Paragraph.ParagraphStartCharacterPosition; 1070Line line = new Line(Paragraph.StructuralCache.TextFormatterHost, this, Paragraph.ParagraphStartCharacterPosition); 1090StaticTextPointer pos = TextContainerHelper.GetStaticTextPointerFromCP(Paragraph.StructuralCache.TextContainer, cpPosition + Paragraph.ParagraphStartCharacterPosition); 1117int dcpStart = Paragraph.StructuralCache.TextContainer.Start.GetOffsetToPosition((TextPointer)start) - Paragraph.ParagraphStartCharacterPosition; 1118int dcpEnd = Paragraph.StructuralCache.TextContainer.Start.GetOffsetToPosition((TextPointer)end) - Paragraph.ParagraphStartCharacterPosition; 1198if (Paragraph.Cch > 0) 1200lastChunk = (textDetails.u.full.dcpLim >= Paragraph.Cch); 1472ContainerVisual lineVisual = CreateLineVisual(ref arrayLineDesc[index], Paragraph.ParagraphStartCharacterPosition); 1554if (HasEOP && lastLineResult.DcpLast > Paragraph.Cch) 1556ErrorHandler.Assert(lastLineResult.DcpLast - Line.SyntheticCharacterLength == Paragraph.Cch, ErrorHandler.ParagraphCharacterCountMismatch); 1616if (HasEOP && lastLineResult.DcpLast > Paragraph.Cch) 1618ErrorHandler.Assert(lastLineResult.DcpLast - Line.SyntheticCharacterLength == Paragraph.Cch, ErrorHandler.ParagraphCharacterCountMismatch); 1660Line line = new Line(Paragraph.StructuralCache.TextFormatterHost, this, Paragraph.ParagraphStartCharacterPosition); 1757Line line = new Line(Paragraph.StructuralCache.TextFormatterHost, this, Paragraph.ParagraphStartCharacterPosition); 2034ITextPointer position = Paragraph.StructuralCache.TextContainer.CreatePointerAtOffset(Paragraph.ParagraphStartCharacterPosition + dcp, LogicalDirection.Forward); 2102Line line = new Line(Paragraph.StructuralCache.TextFormatterHost, this, Paragraph.ParagraphStartCharacterPosition); 2213Line line = new Line(Paragraph.StructuralCache.TextFormatterHost, this, Paragraph.ParagraphStartCharacterPosition); 2341BaseParagraph objectPara = objectParaClient.Paragraph; 2430Line line = new Line(Paragraph.StructuralCache.TextFormatterHost, this, Paragraph.ParagraphStartCharacterPosition); 2554Line line = new Line(Paragraph.StructuralCache.TextFormatterHost, this, Paragraph.ParagraphStartCharacterPosition); 2633Line line = new Line(Paragraph.StructuralCache.TextFormatterHost, this, Paragraph.ParagraphStartCharacterPosition); 2799Line line = new Line(Paragraph.StructuralCache.TextFormatterHost, this, Paragraph.ParagraphStartCharacterPosition); 2915Line line = new Line(Paragraph.StructuralCache.TextFormatterHost, this, Paragraph.ParagraphStartCharacterPosition); 3041Line line = new Line(Paragraph.StructuralCache.TextFormatterHost, this, Paragraph.ParagraphStartCharacterPosition); 3113Line line = new Line(Paragraph.StructuralCache.TextFormatterHost, this, Paragraph.ParagraphStartCharacterPosition); 3175Line line = new Line(Paragraph.StructuralCache.TextFormatterHost, this, Paragraph.ParagraphStartCharacterPosition); 3210int cpTextParaStart = Paragraph.ParagraphStartCharacterPosition; 3234Line line = new Line(Paragraph.StructuralCache.TextFormatterHost, this, cpTextParaStart); 3279Line line = new Line(Paragraph.StructuralCache.TextFormatterHost, this, cpTextParaStart); 3336Line line = new Line(Paragraph.StructuralCache.TextFormatterHost, this, cpTextParaStart); 3387int cpTextParaStart = Paragraph.ParagraphStartCharacterPosition; 3586int cpTextParaStart = Paragraph.ParagraphStartCharacterPosition; 3628Line line = new Line(Paragraph.StructuralCache.TextFormatterHost, this, cpTextParaStart); 3697Line line = new Line(Paragraph.StructuralCache.TextFormatterHost, this, cpTextParaStart); 3786int cpTextParaStart = Paragraph.ParagraphStartCharacterPosition; 3801Line line = new Line(Paragraph.StructuralCache.TextFormatterHost, this, cpTextParaStart); 3840if(!Paragraph.StructuralCache.IsDeferredVisualCreationSupported) 3868int localStart = start - Paragraph.ParagraphStartCharacterPosition; 3927Line line = new Line(Paragraph.StructuralCache.TextFormatterHost, this, Paragraph.ParagraphStartCharacterPosition); 3966int cpTextParaStart = Paragraph.ParagraphStartCharacterPosition; 3992Line line = new Line(Paragraph.StructuralCache.TextFormatterHost, this, cpTextParaStart); 4045int localStart = start - Paragraph.ParagraphStartCharacterPosition; 4126Line line = new Line(Paragraph.StructuralCache.TextFormatterHost, this, Paragraph.ParagraphStartCharacterPosition);
MS\Internal\PtsHost\TextParaLineResult.cs (2)
201return _dcp + _owner.Paragraph.ParagraphStartCharacterPosition; 212return _dcp + _cch + _owner.Paragraph.ParagraphStartCharacterPosition;
MS\Internal\PtsHost\UIElementParaClient.cs (11)
65MbpInfo mbp = MbpInfo.FromElement(Paragraph.Element, Paragraph.StructuralCache.TextFormatterHost.PixelsPerDip); 87if (Paragraph.Element == e) 101MbpInfo mbp = MbpInfo.FromElement(Paragraph.Element, Paragraph.StructuralCache.TextFormatterHost.PixelsPerDip); 108UIElementIsland uiElementIsland = ((UIElementParagraph)Paragraph).UIElementIsland; 133Brush backgroundBrush = (Brush)Paragraph.Element.GetValue(TextElement.BackgroundProperty); 142if (startPosition.CompareTo(((BlockUIContainer)Paragraph.Element).ContentEnd) < 0 && 143endPosition.CompareTo(((BlockUIContainer)Paragraph.Element).ContentStart) > 0) 167return Paragraph.Element as IInputElement; 177BlockUIContainer elementOwner = (BlockUIContainer)Paragraph.Element;