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