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