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