189 references to Element
PresentationFramework (189)
MS\Internal\Documents\ParagraphResult.cs (5)
44
_element = paraClient.Paragraph.
Element
;
786
: base(paraClient, rowRect, rowParagraph.
Element
)
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 (1)
88
_flowDirection = (FlowDirection)Paragraph.
Element
.GetValue(FrameworkElement.FlowDirectionProperty);
MS\Internal\PtsHost\BaseParagraph.cs (7)
182
int openEdgeCp = TextContainerHelper.GetCPFromElement(StructuralCache.TextContainer,
Element
, ElementEdge.BeforeStart);
253
return TextContainerHelper.GetCPFromElement(StructuralCache.TextContainer,
Element
, ElementEdge.AfterStart);
257
return TextContainerHelper.GetCPFromElement(StructuralCache.TextContainer,
Element
, ElementEdge.BeforeStart);
274
return TextContainerHelper.GetCPFromElement(StructuralCache.TextContainer,
Element
, ElementEdge.BeforeEnd);
278
return TextContainerHelper.GetCPFromElement(StructuralCache.TextContainer,
Element
, ElementEdge.AfterEnd);
297
int cch = TextContainerHelper.GetCchFromElement(StructuralCache.TextContainer,
Element
);
301
if (this is TextParagraph &&
Element
is TextElement)
MS\Internal\PtsHost\CellParaClient.cs (3)
118
_flowDirection = (FlowDirection)Paragraph.
Element
.GetValue(FrameworkElement.FlowDirectionProperty);
162
CellParagraph.InvalidateStructure(TextContainerHelper.GetCPFromElement(CellParagraph.StructuralCache.TextContainer, CellParagraph.
Element
, ElementEdge.BeforeStart));
231
CellParagraph.InvalidateStructure(TextContainerHelper.GetCPFromElement(CellParagraph.StructuralCache.TextContainer, CellParagraph.
Element
, ElementEdge.BeforeStart));
MS\Internal\PtsHost\CellParagraph.cs (1)
41
internal TableCell Cell { get { return (TableCell)
Element
; } }
MS\Internal\PtsHost\ContainerParaClient.cs (6)
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;
MS\Internal\PtsHost\ContainerParagraph.cs (29)
98
int cpCurrent = TextContainerHelper.GetCPFromElement(StructuralCache.TextContainer,
Element
, ElementEdge.AfterStart);
160
ITextPointer textPointer = TextContainerHelper.GetContentStart(StructuralCache.TextContainer,
Element
);
374
TextContainerHelper.GetCPFromElement(StructuralCache.TextContainer,
Element
, ElementEdge.BeforeStart), LastFormatCch);
381
int dcpContent = TextContainerHelper.GetCPFromElement(StructuralCache.TextContainer,
Element
, ElementEdge.AfterStart);
486
uint fswdirSubtrack = PTS.FlowDirectionToFswdir(((FlowDirection)
Element
.GetValue(FrameworkElement.FlowDirectionProperty)));
508
Invariant.Assert(
Element
is Block ||
Element
is ListItem);
509
fskclearIn = PTS.WrapDirectionToFskclear((WrapDirection)
Element
.GetValue(Block.ClearFloatersProperty));
515
MbpInfo mbp = MbpInfo.FromElement(
Element
, StructuralCache.TextFormatterHost.PixelsPerDip);
652
uint fswdirSubtrack = PTS.FlowDirectionToFswdir(((FlowDirection)
Element
.GetValue(FrameworkElement.FlowDirectionProperty)));
660
MbpInfo mbp = MbpInfo.FromElement(
Element
, StructuralCache.TextFormatterHost.PixelsPerDip);
668
Invariant.Assert(
Element
is Block ||
Element
is ListItem);
669
fskclearIn = PTS.WrapDirectionToFskclear((WrapDirection)
Element
.GetValue(Block.ClearFloatersProperty));
782
uint fswdirSubtrack = PTS.FlowDirectionToFswdir(((FlowDirection)
Element
.GetValue(FrameworkElement.FlowDirectionProperty)));
790
MbpInfo mbp = MbpInfo.FromElement(
Element
, StructuralCache.TextFormatterHost.PixelsPerDip);
798
Invariant.Assert(
Element
is Block ||
Element
is ListItem);
799
fskclearIn = PTS.WrapDirectionToFskclear((WrapDirection)
Element
.GetValue(Block.ClearFloatersProperty));
1040
if(!(
Element
is TextElement) || ((TextElement)
Element
).ContentStart != textPointer)
1042
throw new InvalidOperationException(SR.Format(SR.TextSchema_TextIsNotAllowedInThisContext,
Element
.GetType().Name));
1046
paragraph = new TextParagraph(
Element
, StructuralCache);
1052
Invariant.Assert(
Element
== ((TextPointer)textPointer).Parent);
1056
paragraph = new TextParagraph(
Element
, StructuralCache);
1084
paragraph = new TextParagraph(
Element
, StructuralCache);
1097
paragraph = new TextParagraph(
Element
, StructuralCache);
1106
paragraph = new TextParagraph(
Element
, StructuralCache);
1150
int cpContent = TextContainerHelper.GetCPFromElement(StructuralCache.TextContainer,
Element
, ElementEdge.AfterStart);
MS\Internal\PtsHost\EmbeddedObject.cs (1)
118
return Para.
Element
;
MS\Internal\PtsHost\FigureParaClient.cs (10)
76
MbpInfo mbp = MbpInfo.FromElement(Paragraph.
Element
, Paragraph.StructuralCache.TextFormatterHost.PixelsPerDip);
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\FigureParagraph.cs (7)
107
_mainTextSegment = new ContainerParagraph(
Element
, StructuralCache);
131
uint fswdirPara = PTS.FlowDirectionToFswdir(((FlowDirection)
Element
.GetValue(FrameworkElement.FlowDirectionProperty)));
141
Figure element = (Figure)
Element
;
147
mbp = MbpInfo.FromElement(
Element
, StructuralCache.TextFormatterHost.PixelsPerDip);
339
Figure element = (Figure)
Element
;
591
Figure element = (Figure)
Element
;
629
Figure element = (Figure)
Element
;
MS\Internal\PtsHost\FloaterParaClient.cs (10)
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\FloaterParagraph.cs (19)
104
_mainTextSegment = new ContainerParagraph(
Element
, StructuralCache);
129
fsfloaterprops.fskclear = PTS.WrapDirectionToFskclear((WrapDirection)
Element
.GetValue(Block.ClearFloatersProperty));
178
uint fswdirPara = PTS.FlowDirectionToFswdir(((FlowDirection)
Element
.GetValue(FrameworkElement.FlowDirectionProperty)));
229
mbp = MbpInfo.FromElement(
Element
, StructuralCache.TextFormatterHost.PixelsPerDip);
386
uint fswdirPara = PTS.FlowDirectionToFswdir(((FlowDirection)
Element
.GetValue(FrameworkElement.FlowDirectionProperty)));
416
mbp = MbpInfo.FromElement(
Element
, StructuralCache.TextFormatterHost.PixelsPerDip);
657
MbpInfo mbp = MbpInfo.FromElement(
Element
, StructuralCache.TextFormatterHost.PixelsPerDip);
794
if(
Element
is Floater)
796
return ((Floater)
Element
).HorizontalAlignment;
799
Figure figure = (Figure)
Element
;
836
if(
Element
is Floater)
851
Figure figure = (Figure)
Element
;
865
if(
Element
is Floater)
867
return (double)((Floater)
Element
).Width;
873
double desiredSize = FigureHelper.CalculateFigureWidth(StructuralCache, (Figure)
Element
,
874
((Figure)
Element
).Width,
896
if(
Element
is Floater && HorizontalAlignment != HorizontalAlignment.Stretch)
900
else if(
Element
is Figure)
902
FigureLength figureLength = ((Figure)
Element
).Width;
MS\Internal\PtsHost\Line.cs (4)
64
_textAlignment = (TextAlignment)TextParagraph.
Element
.GetValue(Block.TextAlignmentProperty);
130
int cpFigure = TextContainerHelper.GetCPFromElement(_paraClient.Paragraph.StructuralCache.TextContainer, paraFigure.
Element
, ElementEdge.BeforeStart);
221
DependencyObject element = (pointer.Parent != null) ? pointer.Parent : _paraClient.Paragraph.
Element
;
408
DependencyObject paragraphElement = _paraClient.Paragraph.
Element
;
MS\Internal\PtsHost\LineBase.cs (2)
100
element = _paraClient.Paragraph.
Element
;
259
if (position.Parent == _paraClient.Paragraph.
Element
)
MS\Internal\PtsHost\ListParaClient.cs (7)
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 */,
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\ListParagraph.cs (1)
120
if (
Element
== ((TextPointer)textPointer).Parent)
MS\Internal\PtsHost\OptimalTextSource.cs (1)
171
DependencyObject element = (pointer.Parent != null) ? pointer.Parent : _paraClient.Paragraph.
Element
;
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\RowParagraph.cs (1)
363
internal TableRow Row { get { return (TableRow)
Element
; } }
MS\Internal\PtsHost\SubpageParaClient.cs (7)
76
MbpInfo mbp = MbpInfo.FromElement(Paragraph.
Element
, Paragraph.StructuralCache.TextFormatterHost.PixelsPerDip);
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\SubpageParagraph.cs (15)
134
uint fswdirSubpage = PTS.FlowDirectionToFswdir(((FlowDirection)
Element
.GetValue(FrameworkElement.FlowDirectionProperty)));
164
Invariant.Assert(
Element
is TableCell ||
Element
is AnchoredBlock);
165
fskclearIn = PTS.WrapDirectionToFskclear((WrapDirection)
Element
.GetValue(Block.ClearFloatersProperty));
173
mbp = MbpInfo.FromElement(
Element
, StructuralCache.TextFormatterHost.PixelsPerDip);
341
uint fswdirSubpage = PTS.FlowDirectionToFswdir(((FlowDirection)
Element
.GetValue(FrameworkElement.FlowDirectionProperty)));
349
Invariant.Assert(
Element
is TableCell ||
Element
is AnchoredBlock);
350
fskclearIn = PTS.WrapDirectionToFskclear((WrapDirection)
Element
.GetValue(Block.ClearFloatersProperty));
355
mbp = MbpInfo.FromElement(
Element
, StructuralCache.TextFormatterHost.PixelsPerDip);
502
uint fswdirSubpage = PTS.FlowDirectionToFswdir(((FlowDirection)
Element
.GetValue(FrameworkElement.FlowDirectionProperty)));
509
Invariant.Assert(
Element
is TableCell ||
Element
is AnchoredBlock);
510
fskclearIn = PTS.WrapDirectionToFskclear((WrapDirection)
Element
.GetValue(Block.ClearFloatersProperty));
515
mbp = MbpInfo.FromElement(
Element
, StructuralCache.TextFormatterHost.PixelsPerDip);
MS\Internal\PtsHost\TableParaClient.cs (9)
92
MbpInfo mbp = MbpInfo.FromElement(TableParagraph.
Element
, TableParagraph.StructuralCache.TextFormatterHost.PixelsPerDip);
198
MbpInfo mbpInfo = MbpInfo.FromElement(TableParagraph.
Element
, TableParagraph.StructuralCache.TextFormatterHost.PixelsPerDip);
227
Brush backgroundBrush = (Brush)Paragraph.
Element
.GetValue(TextElement.BackgroundProperty);
522
TextElement elementOwner = this.Paragraph.
Element
as TextElement;
686
MbpInfo mbpInfo = MbpInfo.FromElement(TableParagraph.
Element
, TableParagraph.StructuralCache.TextFormatterHost.PixelsPerDip);
961
MbpInfo mbp = MbpInfo.FromElement(TableParagraph.
Element
, TableParagraph.StructuralCache.TextFormatterHost.PixelsPerDip);
1987
MbpInfo mbpInfo = MbpInfo.FromElement(Paragraph.
Element
, Paragraph.StructuralCache.TextFormatterHost.PixelsPerDip);
2020
MbpInfo mbpInfo = MbpInfo.FromElement(Paragraph.
Element
, Paragraph.StructuralCache.TextFormatterHost.PixelsPerDip);
2436
MbpInfo mbp = MbpInfo.FromElement(TableParagraph.
Element
, TableParagraph.StructuralCache.TextFormatterHost.PixelsPerDip);
MS\Internal\PtsHost\TableParagraph.cs (2)
171
fstableobjprops.fswdirTable = PTS.FlowDirectionToFswdir((FlowDirection)
Element
.GetValue(FrameworkElement.FlowDirectionProperty));
498
return (Table)
Element
;
MS\Internal\PtsHost\TextParaClient.cs (4)
242
ie = Paragraph.
Element
as IInputElement;
257
Debug.Assert(Paragraph.
Element
as ContentElement != e);
1889
endOfParaGlyphWidth = ((double)TextParagraph.
Element
.GetValue(TextElement.FontSizeProperty) * CaretElement.c_endOfParaMagicMultiplier);
1999
endOfParaGlyphWidth = ((double)TextParagraph.
Element
.GetValue(TextElement.FontSizeProperty) * CaretElement.c_endOfParaMagicMultiplier);
MS\Internal\PtsHost\TextParagraph.cs (12)
158
fstxtprops.fswdir = PTS.FlowDirectionToFswdir((FlowDirection)
Element
.GetValue(FrameworkElement.FlowDirectionProperty));
160
fstxtprops.fKeepTogether = PTS.FromBoolean(DynamicPropertyReader.GetKeepTogether(
Element
));
161
fstxtprops.cMinLinesAfterBreak = DynamicPropertyReader.GetMinOrphanLines(
Element
);
162
fstxtprops.cMinLinesBeforeBreak = DynamicPropertyReader.GetMinWidowLines(
Element
);
219
isParagraphJustified = ((TextAlignment)
Element
.GetValue(Block.TextAlignmentProperty)) == TextAlignment.Justify;
886
ITextPointer textPointerContentStart = TextContainerHelper.GetContentStart(StructuralCache.TextContainer,
Element
);
908
ITextPointer textPointerContentStart = TextContainerHelper.GetContentStart(StructuralCache.TextContainer,
Element
);
961
ITextPointer textPointerContentStart = TextContainerHelper.GetContentStart(StructuralCache.TextContainer,
Element
);
1522
TextProperties defaultTextProperties = new TextProperties(
Element
, StaticTextPointer.Null, false /* inline objects */, false /* get background */,
1525
_lineProperties = new LineProperties(
Element
, StructuralCache.FormattingOwner, defaultTextProperties, null); // No marker properties
1527
bool isHyphenationEnabled = (bool)
Element
.GetValue(Block.IsHyphenationEnabledProperty);
1738
int cpElement = TextContainerHelper.GetCPFromElement(StructuralCache.TextContainer,
Element
, ElementEdge.AfterStart);
MS\Internal\PtsHost\UIElementParaClient.cs (8)
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);
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
;
MS\Internal\PtsHost\UIElementParagraph.cs (15)
120
MbpInfo mbp = MbpInfo.FromElement(
Element
, StructuralCache.TextFormatterHost.PixelsPerDip);
152
fsfloaterprops.fskclear = PTS.WrapDirectionToFskclear((WrapDirection)
Element
.GetValue(Block.ClearFloatersProperty));
188
Invariant.Assert(
Element
is BlockUIContainer);
211
if (((BlockUIContainer)
Element
).Child != null)
221
MbpInfo mbp = MbpInfo.FromElement(
Element
, StructuralCache.TextFormatterHost.PixelsPerDip);
279
Invariant.Assert(
Element
is BlockUIContainer);
298
if (((BlockUIContainer)
Element
).Child != null)
314
MbpInfo mbp = MbpInfo.FromElement(
Element
, StructuralCache.TextFormatterHost.PixelsPerDip);
361
MbpInfo mbp = MbpInfo.FromElement(
Element
, StructuralCache.TextFormatterHost.PixelsPerDip);
388
MbpInfo mbp = MbpInfo.FromElement(
Element
, StructuralCache.TextFormatterHost.PixelsPerDip);
402
Figure figure = (Figure) ((BlockUIContainer)
Element
).Parent;
453
_uiElementIsland = new UIElementIsland(((BlockUIContainer)
Element
).Child);
520
Figure figure = (Figure)((BlockUIContainer)
Element
).Parent;
540
DependencyObject parent = ((BlockUIContainer)
Element
).Parent;
545
figure.Blocks.FirstChild ==
Element
)