223 references to Paragraph
PresentationFramework (223)
src\Framework\MS\Internal\Documents\ParagraphResult.cs (8)
50_element = paraClient.Paragraph.Element; 534TextParagraph textParagraph = _paraClient.Paragraph as TextParagraph; 953MbpInfo mbp = MbpInfo.FromElement(_paraClient.Paragraph.Element, _paraClient.Paragraph.StructuralCache.TextFormatterHost.PixelsPerDip); 1068MbpInfo mbp = MbpInfo.FromElement(_paraClient.Paragraph.Element, _paraClient.Paragraph.StructuralCache.TextFormatterHost.PixelsPerDip); 1241MbpInfo mbp = MbpInfo.FromElement(_paraClient.Paragraph.Element, _paraClient.Paragraph.StructuralCache.TextFormatterHost.PixelsPerDip);
src\Framework\MS\Internal\PtsHost\BaseParaClient.cs (4)
99_pageContext = Paragraph.StructuralCache.CurrentArrangeContext.PageContext; 103_flowDirection = (FlowDirection)Paragraph.Element.GetValue(FrameworkElement.FlowDirectionProperty); 238internal FlowDirection PageFlowDirection { get { return Paragraph.StructuralCache.PageFlowDirection; } } 255Paragraph.UpdateLastFormatPositions();
src\Framework\MS\Internal\PtsHost\CellParaClient.cs (1)
130_flowDirection = (FlowDirection)Paragraph.Element.GetValue(FrameworkElement.FlowDirectionProperty);
src\Framework\MS\Internal\PtsHost\ContainerParaClient.cs (9)
67MbpInfo mbp = MbpInfo.FromElement(Paragraph.Element, Paragraph.StructuralCache.TextFormatterHost.PixelsPerDip); 133ie = Paragraph.Element as IInputElement; 163if (this.Paragraph.Element as ContentElement == e) 221MbpInfo mbp = MbpInfo.FromElement(Paragraph.Element, Paragraph.StructuralCache.TextFormatterHost.PixelsPerDip); 228Brush backgroundBrush = (Brush)Paragraph.Element.GetValue(TextElement.BackgroundProperty); 316TextElement elementOwner = this.Paragraph.Element as TextElement; 343paraClient = Paragraph.StructuralCache.PtsContext.HandleToObject(arrayParaDesc[i].pfsparaclient) as BaseParaClient;
src\Framework\MS\Internal\PtsHost\FigureParaClient.cs (20)
88((FigureParagraph)Paragraph).UpdateSegmentLastFormatPositions(); 96MbpInfo mbp = MbpInfo.FromElement(Paragraph.Element, Paragraph.StructuralCache.TextFormatterHost.PixelsPerDip); 124Paragraph.StructuralCache.CurrentArrangeContext.PushNewPageData(_pageContextOfThisPage, subpageDetails.u.simple.trackdescr.fsrc, 125Paragraph.StructuralCache.CurrentArrangeContext.FinitePage); 129Paragraph.StructuralCache.CurrentArrangeContext.PopPageData(); 147Paragraph.StructuralCache.CurrentArrangeContext.PushNewPageData(_pageContextOfThisPage, arrayColumnDesc[index].fsrc, 148Paragraph.StructuralCache.CurrentArrangeContext.FinitePage); 152Paragraph.StructuralCache.CurrentArrangeContext.PopPageData(); 225MbpInfo mbp = MbpInfo.FromElement(Paragraph.Element, Paragraph.StructuralCache.TextFormatterHost.PixelsPerDip); 235_flowDirection = (FlowDirection)Paragraph.Element.GetValue(FrameworkElement.FlowDirectionProperty); 309ie = Paragraph.Element as IInputElement; 335if (Paragraph.Element as ContentElement == e) 409MbpInfo mbp = MbpInfo.FromElement(Paragraph.Element, Paragraph.StructuralCache.TextFormatterHost.PixelsPerDip); 416Brush backgroundBrush = (Brush)Paragraph.Element.GetValue(TextElement.BackgroundProperty); 497ColumnPropertiesGroup columnProperties = new ColumnPropertiesGroup(Paragraph.Element); 598Paragraph.Element as TextElement, ElementEdge.BeforeStart)); 606Paragraph.Element as TextElement, ElementEdge.AfterEnd));
src\Framework\MS\Internal\PtsHost\FloaterParaClient.cs (19)
87((FloaterParagraph)Paragraph).UpdateSegmentLastFormatPositions(); 105Paragraph.StructuralCache.CurrentArrangeContext.PushNewPageData(_pageContextOfThisPage, subpageDetails.u.simple.trackdescr.fsrc, 106Paragraph.StructuralCache.CurrentArrangeContext.FinitePage); 110Paragraph.StructuralCache.CurrentArrangeContext.PopPageData(); 128Paragraph.StructuralCache.CurrentArrangeContext.PushNewPageData(_pageContextOfThisPage, arrayColumnDesc[index].fsrc, 129Paragraph.StructuralCache.CurrentArrangeContext.FinitePage); 133Paragraph.StructuralCache.CurrentArrangeContext.PopPageData(); 214MbpInfo mbp = MbpInfo.FromElement(Paragraph.Element, Paragraph.StructuralCache.TextFormatterHost.PixelsPerDip); 221_flowDirection = (FlowDirection)Paragraph.Element.GetValue(FrameworkElement.FlowDirectionProperty); 311ie = Paragraph.Element as IInputElement; 337if (Paragraph.Element as ContentElement == e) 413MbpInfo mbp = MbpInfo.FromElement(Paragraph.Element, Paragraph.StructuralCache.TextFormatterHost.PixelsPerDip); 420Brush backgroundBrush = (Brush)Paragraph.Element.GetValue(TextElement.BackgroundProperty); 501ColumnPropertiesGroup columnProperties = new ColumnPropertiesGroup(Paragraph.Element); 603Paragraph.Element as TextElement, ElementEdge.BeforeStart)); 611Paragraph.Element as TextElement, ElementEdge.AfterEnd)); 886Floater floater = Paragraph.Element as Floater;
src\Framework\MS\Internal\PtsHost\Line.cs (12)
133int cpFigure = TextContainerHelper.GetCPFromElement(_paraClient.Paragraph.StructuralCache.TextContainer, paraFigure.Element, ElementEdge.BeforeStart); 158ITextContainer textContainer = _paraClient.Paragraph.StructuralCache.TextContainer; 207ITextPointer startPosition = TextContainerHelper.GetTextPointerFromCP(_paraClient.Paragraph.StructuralCache.TextContainer, _cpPara, LogicalDirection.Forward); 208ITextPointer position = TextContainerHelper.GetTextPointerFromCP(_paraClient.Paragraph.StructuralCache.TextContainer, _cpPara + dcp, LogicalDirection.Forward); 224DependencyObject element = (pointer.Parent != null) ? pointer.Parent : _paraClient.Paragraph.Element; 314inlineObjects.Add(new InlineObject(dcpRun, ((InlineObjectRun)run).UIElementIsland, (TextParagraph)_paraClient.Paragraph)); 368double pageHeight = _paraClient.Paragraph.StructuralCache.CurrentFormatContext.DocumentPageSize.Height; 369if (!_paraClient.Paragraph.StructuralCache.CurrentFormatContext.FinitePage) 411DependencyObject paragraphElement = _paraClient.Paragraph.Element; 610cp = _paraClient.Paragraph.ParagraphStartCharacterPosition + charIndex.FirstCharacterIndex + charIndex.TrailingLength; 611position = TextContainerHelper.GetTextPointerFromCP(_paraClient.Paragraph.StructuralCache.TextContainer, cp, LogicalDirection.Forward) as TextPointer; 1237return _paraClient.Paragraph as TextParagraph;
src\Framework\MS\Internal\PtsHost\LineBase.cs (8)
103element = _paraClient.Paragraph.Element; 111_paraClient.Paragraph.StructuralCache.TextFormatterHost.PixelsPerDip); 159int cch = TextContainerHelper.GetElementLength(_paraClient.Paragraph.StructuralCache.TextContainer, element); 173int cch = TextContainerHelper.GetElementLength(_paraClient.Paragraph.StructuralCache.TextContainer, element); 182_paraClient.Paragraph.StructuralCache.TextFormatterHost.PixelsPerDip); 264if (position.Parent == _paraClient.Paragraph.Element) 323_paraClient.Paragraph.StructuralCache.TextFormatterHost.PixelsPerDip); 326run = new InlineObjectRun(TextContainerHelper.EmbeddedObjectLength, (UIElement)embeddedObject, textProps, _paraClient.Paragraph as TextParagraph);
src\Framework\MS\Internal\PtsHost\ListParaClient.cs (11)
64MbpInfo mbp = MbpInfo.FromElement(Paragraph.Element, Paragraph.StructuralCache.TextFormatterHost.PixelsPerDip); 70uint fswdir = PTS.FlowDirectionToFswdir((FlowDirection)Paragraph.Element.GetValue(FrameworkElement.FlowDirectionProperty)); 72Brush backgroundBrush = (Brush)Paragraph.Element.GetValue(TextElement.BackgroundProperty); 76TextProperties textProperties = new TextProperties(Paragraph.Element, StaticTextPointer.Null, false /* inline objects */, false /* get background */, 77Paragraph.StructuralCache.TextFormatterHost.PixelsPerDip); 90ListMarkerLine listMarkerLine = new ListMarkerLine(Paragraph.StructuralCache.TextFormatterHost, this); 95List list = Paragraph.Element as List; 102indexFirstParaInSubtrack = list.GetListItemIndex(listItemParaClient.Paragraph.Element as ListItem); 123LineProperties lineProps = new LineProperties(Paragraph.Element, Paragraph.StructuralCache.FormattingOwner, textProperties, new MarkerProperties(list, adjustedIndex));
src\Framework\MS\Internal\PtsHost\OptimalTextSource.cs (7)
107ITextContainer textContainer = _paraClient.Paragraph.StructuralCache.TextContainer; 157ITextPointer startPosition = TextContainerHelper.GetTextPointerFromCP(_paraClient.Paragraph.StructuralCache.TextContainer, _cpPara, LogicalDirection.Forward); 158ITextPointer position = TextContainerHelper.GetTextPointerFromCP(_paraClient.Paragraph.StructuralCache.TextContainer, _cpPara + dcp, LogicalDirection.Forward); 175DependencyObject element = (pointer.Parent != null) ? pointer.Parent : _paraClient.Paragraph.Element; 196ITextPointer position = TextContainerHelper.GetTextPointerFromCP(_paraClient.Paragraph.StructuralCache.TextContainer, _cpPara + dcp, LogicalDirection.Forward); 244double pageHeight = _paraClient.Paragraph.StructuralCache.CurrentFormatContext.DocumentPageSize.Height; 245if (!_paraClient.Paragraph.StructuralCache.CurrentFormatContext.FinitePage)
src\Framework\MS\Internal\PtsHost\PtsHelper.cs (2)
190PTS.FSRECT pageRect = paraClient.Paragraph.StructuralCache.CurrentArrangeContext.PageContext.PageRect; 537if (start < paraClient.Paragraph.ParagraphEndCharacterPosition)
src\Framework\MS\Internal\PtsHost\PtsHost.cs (2)
2654if (((BlockUIContainer)paraClient.Paragraph.Element).Child != null) 2657UIElement uiElement = ((BlockUIContainer)paraClient.Paragraph.Element).Child;
src\Framework\MS\Internal\PtsHost\SubpageParaClient.cs (16)
89((SubpageParagraph)Paragraph).UpdateSegmentLastFormatPositions(); 95MbpInfo mbp = MbpInfo.FromElement(Paragraph.Element, Paragraph.StructuralCache.TextFormatterHost.PixelsPerDip); 136Paragraph.StructuralCache.CurrentArrangeContext.PushNewPageData(_pageContextOfThisPage, subpageDetails.u.simple.trackdescr.fsrc, 137Paragraph.StructuralCache.CurrentArrangeContext.FinitePage); 141Paragraph.StructuralCache.CurrentArrangeContext.PopPageData(); 159Paragraph.StructuralCache.CurrentArrangeContext.PushNewPageData(_pageContextOfThisPage, arrayColumnDesc[index].fsrc, 160Paragraph.StructuralCache.CurrentArrangeContext.FinitePage); 164Paragraph.StructuralCache.CurrentArrangeContext.PopPageData(); 237ie = Paragraph.Element as IInputElement; 262if (Paragraph.Element as ContentElement == e) 334MbpInfo mbpInfo = MbpInfo.FromElement(Paragraph.Element, Paragraph.StructuralCache.TextFormatterHost.PixelsPerDip); 341Brush backgroundBrush = (Brush)Paragraph.Element.GetValue(TextElement.BackgroundProperty); 422ColumnPropertiesGroup columnProperties = new ColumnPropertiesGroup(Paragraph.Element); 572TextElement elementOwner = this.Paragraph.Element as TextElement;
src\Framework\MS\Internal\PtsHost\TableParaClient.cs (8)
82_columnRect = Paragraph.StructuralCache.CurrentArrangeContext.ColumnRect; 247Brush backgroundBrush = (Brush)Paragraph.Element.GetValue(TextElement.BackgroundProperty); 513if (start < cellParaClient.Paragraph.ParagraphEndCharacterPosition) 565TextElement elementOwner = this.Paragraph.Element as TextElement; 2108MbpInfo mbpInfo = MbpInfo.FromElement(Paragraph.Element, Paragraph.StructuralCache.TextFormatterHost.PixelsPerDip); 2141MbpInfo mbpInfo = MbpInfo.FromElement(Paragraph.Element, Paragraph.StructuralCache.TextFormatterHost.PixelsPerDip);
src\Framework\MS\Internal\PtsHost\TextParaClient.cs (83)
186Debug.Assert(!((TextParagraph) Paragraph).HasFiguresFloatersOrInlineObjects()); 273ie = Paragraph.Element as IInputElement; 298Debug.Assert(Paragraph.Element as ContentElement != e); 322if (start < paraClient.Paragraph.ParagraphEndCharacterPosition) 551if (HasEOP && dcpLast > Paragraph.Cch) 553ErrorHandler.Assert(dcpLast == Paragraph.Cch + Line.SyntheticCharacterLength, ErrorHandler.ParagraphCharacterCountMismatch); 558int dcp = Paragraph.ParagraphStartCharacterPosition; 581textContentRange = new TextContentRange(dcp + dcpFirst, dcp + dcpLast, Paragraph.StructuralCache.TextContainer); 696Line line = new Line(Paragraph.StructuralCache.TextFormatterHost, this, Paragraph.ParagraphStartCharacterPosition); 758return TextContainerHelper.GetTextPointerFromCP(Paragraph.StructuralCache.TextContainer, dcp + Paragraph.ParagraphStartCharacterPosition, direction); 782int cp = Paragraph.StructuralCache.TextContainer.Start.GetOffsetToPosition((TextPointer)position); 783int dcp = cp - Paragraph.ParagraphStartCharacterPosition; 853int cpParagraphStart = Paragraph.ParagraphStartCharacterPosition; 857int cpParagraphEnd = Paragraph.ParagraphEndCharacterPosition; 952int cp = Paragraph.StructuralCache.TextContainer.Start.GetOffsetToPosition(position as TextPointer); 953int dcp = cp - Paragraph.ParagraphStartCharacterPosition; 1012int cp = Paragraph.StructuralCache.TextContainer.Start.GetOffsetToPosition(position as TextPointer); 1013int dcp = cp - Paragraph.ParagraphStartCharacterPosition; 1065int cp = Paragraph.StructuralCache.TextContainer.Start.GetOffsetToPosition(position as TextPointer); 1066int dcp = cp - Paragraph.ParagraphStartCharacterPosition; 1224Line line = new Line(Paragraph.StructuralCache.TextFormatterHost, this, Paragraph.ParagraphStartCharacterPosition); 1244StaticTextPointer pos = TextContainerHelper.GetStaticTextPointerFromCP(Paragraph.StructuralCache.TextContainer, cpPosition + Paragraph.ParagraphStartCharacterPosition); 1280int dcpStart = Paragraph.StructuralCache.TextContainer.Start.GetOffsetToPosition((TextPointer)start) - Paragraph.ParagraphStartCharacterPosition; 1281int dcpEnd = Paragraph.StructuralCache.TextContainer.Start.GetOffsetToPosition((TextPointer)end) - Paragraph.ParagraphStartCharacterPosition; 1373if (Paragraph.Cch > 0) 1375lastChunk = (textDetails.u.full.dcpLim >= Paragraph.Cch); 1661ContainerVisual lineVisual = CreateLineVisual(ref arrayLineDesc[index], Paragraph.ParagraphStartCharacterPosition); 1749if (HasEOP && lastLineResult.DcpLast > Paragraph.Cch) 1751ErrorHandler.Assert(lastLineResult.DcpLast - Line.SyntheticCharacterLength == Paragraph.Cch, ErrorHandler.ParagraphCharacterCountMismatch); 1818if (HasEOP && lastLineResult.DcpLast > Paragraph.Cch) 1820ErrorHandler.Assert(lastLineResult.DcpLast - Line.SyntheticCharacterLength == Paragraph.Cch, ErrorHandler.ParagraphCharacterCountMismatch); 1866Line line = new Line(Paragraph.StructuralCache.TextFormatterHost, this, Paragraph.ParagraphStartCharacterPosition); 1968Line line = new Line(Paragraph.StructuralCache.TextFormatterHost, this, Paragraph.ParagraphStartCharacterPosition); 2254ITextPointer position = Paragraph.StructuralCache.TextContainer.CreatePointerAtOffset(Paragraph.ParagraphStartCharacterPosition + dcp, LogicalDirection.Forward); 2322Line line = new Line(Paragraph.StructuralCache.TextFormatterHost, this, Paragraph.ParagraphStartCharacterPosition); 2433Line line = new Line(Paragraph.StructuralCache.TextFormatterHost, this, Paragraph.ParagraphStartCharacterPosition); 2565BaseParagraph objectPara = objectParaClient.Paragraph; 2658Line line = new Line(Paragraph.StructuralCache.TextFormatterHost, this, Paragraph.ParagraphStartCharacterPosition); 2787Line line = new Line(Paragraph.StructuralCache.TextFormatterHost, this, Paragraph.ParagraphStartCharacterPosition); 2870Line line = new Line(Paragraph.StructuralCache.TextFormatterHost, this, Paragraph.ParagraphStartCharacterPosition); 3041Line line = new Line(Paragraph.StructuralCache.TextFormatterHost, this, Paragraph.ParagraphStartCharacterPosition); 3161Line line = new Line(Paragraph.StructuralCache.TextFormatterHost, this, Paragraph.ParagraphStartCharacterPosition); 3291Line line = new Line(Paragraph.StructuralCache.TextFormatterHost, this, Paragraph.ParagraphStartCharacterPosition); 3367Line line = new Line(Paragraph.StructuralCache.TextFormatterHost, this, Paragraph.ParagraphStartCharacterPosition); 3434Line line = new Line(Paragraph.StructuralCache.TextFormatterHost, this, Paragraph.ParagraphStartCharacterPosition); 3473int cpTextParaStart = Paragraph.ParagraphStartCharacterPosition; 3497Line line = new Line(Paragraph.StructuralCache.TextFormatterHost, this, cpTextParaStart); 3542Line line = new Line(Paragraph.StructuralCache.TextFormatterHost, this, cpTextParaStart); 3599Line line = new Line(Paragraph.StructuralCache.TextFormatterHost, this, cpTextParaStart); 3654int cpTextParaStart = Paragraph.ParagraphStartCharacterPosition; 3867int cpTextParaStart = Paragraph.ParagraphStartCharacterPosition; 3909Line line = new Line(Paragraph.StructuralCache.TextFormatterHost, this, cpTextParaStart); 3978Line line = new Line(Paragraph.StructuralCache.TextFormatterHost, this, cpTextParaStart); 4076int cpTextParaStart = Paragraph.ParagraphStartCharacterPosition; 4091Line line = new Line(Paragraph.StructuralCache.TextFormatterHost, this, cpTextParaStart); 4130if(!Paragraph.StructuralCache.IsDeferredVisualCreationSupported) 4162int localStart = start - Paragraph.ParagraphStartCharacterPosition; 4221Line line = new Line(Paragraph.StructuralCache.TextFormatterHost, this, Paragraph.ParagraphStartCharacterPosition); 4265int cpTextParaStart = Paragraph.ParagraphStartCharacterPosition; 4291Line line = new Line(Paragraph.StructuralCache.TextFormatterHost, this, cpTextParaStart); 4349int localStart = start - Paragraph.ParagraphStartCharacterPosition; 4434Line line = new Line(Paragraph.StructuralCache.TextFormatterHost, this, Paragraph.ParagraphStartCharacterPosition);
src\Framework\MS\Internal\PtsHost\TextParaLineResult.cs (2)
209return _dcp + _owner.Paragraph.ParagraphStartCharacterPosition; 220return _dcp + _cch + _owner.Paragraph.ParagraphStartCharacterPosition;
src\Framework\MS\Internal\PtsHost\UIElementParaClient.cs (11)
76MbpInfo mbp = MbpInfo.FromElement(Paragraph.Element, Paragraph.StructuralCache.TextFormatterHost.PixelsPerDip); 98if (Paragraph.Element == e) 112MbpInfo mbp = MbpInfo.FromElement(Paragraph.Element, Paragraph.StructuralCache.TextFormatterHost.PixelsPerDip); 119UIElementIsland uiElementIsland = ((UIElementParagraph)Paragraph).UIElementIsland; 144Brush backgroundBrush = (Brush)Paragraph.Element.GetValue(TextElement.BackgroundProperty); 153if (startPosition.CompareTo(((BlockUIContainer)Paragraph.Element).ContentEnd) < 0 && 154endPosition.CompareTo(((BlockUIContainer)Paragraph.Element).ContentStart) > 0) 178return Paragraph.Element as IInputElement; 188BlockUIContainer elementOwner = (BlockUIContainer)Paragraph.Element;