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