189 references to Element
PresentationFramework (189)
MS\Internal\Documents\ParagraphResult.cs (5)
41
_element = paraClient.Paragraph.
Element
;
783
: base(paraClient, rowRect, rowParagraph.
Element
)
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 (1)
80
_flowDirection = (FlowDirection)Paragraph.
Element
.GetValue(FrameworkElement.FlowDirectionProperty);
MS\Internal\PtsHost\BaseParagraph.cs (7)
180
int openEdgeCp = TextContainerHelper.GetCPFromElement(StructuralCache.TextContainer,
Element
, ElementEdge.BeforeStart);
251
return TextContainerHelper.GetCPFromElement(StructuralCache.TextContainer,
Element
, ElementEdge.AfterStart);
255
return TextContainerHelper.GetCPFromElement(StructuralCache.TextContainer,
Element
, ElementEdge.BeforeStart);
272
return TextContainerHelper.GetCPFromElement(StructuralCache.TextContainer,
Element
, ElementEdge.BeforeEnd);
276
return TextContainerHelper.GetCPFromElement(StructuralCache.TextContainer,
Element
, ElementEdge.AfterEnd);
295
int cch = TextContainerHelper.GetCchFromElement(StructuralCache.TextContainer,
Element
);
299
if (this is TextParagraph &&
Element
is TextElement)
MS\Internal\PtsHost\CellParaClient.cs (3)
113
_flowDirection = (FlowDirection)Paragraph.
Element
.GetValue(FrameworkElement.FlowDirectionProperty);
157
CellParagraph.InvalidateStructure(TextContainerHelper.GetCPFromElement(CellParagraph.StructuralCache.TextContainer, CellParagraph.
Element
, ElementEdge.BeforeStart));
226
CellParagraph.InvalidateStructure(TextContainerHelper.GetCPFromElement(CellParagraph.StructuralCache.TextContainer, CellParagraph.
Element
, ElementEdge.BeforeStart));
MS\Internal\PtsHost\CellParagraph.cs (1)
37
internal TableCell Cell { get { return (TableCell)
Element
; } }
MS\Internal\PtsHost\ContainerParaClient.cs (6)
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;
MS\Internal\PtsHost\ContainerParagraph.cs (29)
80
int cpCurrent = TextContainerHelper.GetCPFromElement(StructuralCache.TextContainer,
Element
, ElementEdge.AfterStart);
142
ITextPointer textPointer = TextContainerHelper.GetContentStart(StructuralCache.TextContainer,
Element
);
356
TextContainerHelper.GetCPFromElement(StructuralCache.TextContainer,
Element
, ElementEdge.BeforeStart), LastFormatCch);
363
int dcpContent = TextContainerHelper.GetCPFromElement(StructuralCache.TextContainer,
Element
, ElementEdge.AfterStart);
463
uint fswdirSubtrack = PTS.FlowDirectionToFswdir(((FlowDirection)
Element
.GetValue(FrameworkElement.FlowDirectionProperty)));
485
Invariant.Assert(
Element
is Block ||
Element
is ListItem);
486
fskclearIn = PTS.WrapDirectionToFskclear((WrapDirection)
Element
.GetValue(Block.ClearFloatersProperty));
492
MbpInfo mbp = MbpInfo.FromElement(
Element
, StructuralCache.TextFormatterHost.PixelsPerDip);
629
uint fswdirSubtrack = PTS.FlowDirectionToFswdir(((FlowDirection)
Element
.GetValue(FrameworkElement.FlowDirectionProperty)));
637
MbpInfo mbp = MbpInfo.FromElement(
Element
, StructuralCache.TextFormatterHost.PixelsPerDip);
645
Invariant.Assert(
Element
is Block ||
Element
is ListItem);
646
fskclearIn = PTS.WrapDirectionToFskclear((WrapDirection)
Element
.GetValue(Block.ClearFloatersProperty));
759
uint fswdirSubtrack = PTS.FlowDirectionToFswdir(((FlowDirection)
Element
.GetValue(FrameworkElement.FlowDirectionProperty)));
767
MbpInfo mbp = MbpInfo.FromElement(
Element
, StructuralCache.TextFormatterHost.PixelsPerDip);
775
Invariant.Assert(
Element
is Block ||
Element
is ListItem);
776
fskclearIn = PTS.WrapDirectionToFskclear((WrapDirection)
Element
.GetValue(Block.ClearFloatersProperty));
1017
if(!(
Element
is TextElement) || ((TextElement)
Element
).ContentStart != textPointer)
1019
throw new InvalidOperationException(SR.Format(SR.TextSchema_TextIsNotAllowedInThisContext,
Element
.GetType().Name));
1023
paragraph = new TextParagraph(
Element
, StructuralCache);
1029
Invariant.Assert(
Element
== ((TextPointer)textPointer).Parent);
1033
paragraph = new TextParagraph(
Element
, StructuralCache);
1061
paragraph = new TextParagraph(
Element
, StructuralCache);
1074
paragraph = new TextParagraph(
Element
, StructuralCache);
1083
paragraph = new TextParagraph(
Element
, StructuralCache);
1127
int cpContent = TextContainerHelper.GetCPFromElement(StructuralCache.TextContainer,
Element
, ElementEdge.AfterStart);
MS\Internal\PtsHost\EmbeddedObject.cs (1)
117
return Para.
Element
;
MS\Internal\PtsHost\FigureParaClient.cs (10)
67
MbpInfo mbp = MbpInfo.FromElement(Paragraph.
Element
, Paragraph.StructuralCache.TextFormatterHost.PixelsPerDip);
190
MbpInfo mbp = MbpInfo.FromElement(Paragraph.
Element
, Paragraph.StructuralCache.TextFormatterHost.PixelsPerDip);
200
_flowDirection = (FlowDirection)Paragraph.
Element
.GetValue(FrameworkElement.FlowDirectionProperty);
266
ie = Paragraph.
Element
as IInputElement;
284
if (Paragraph.
Element
as ContentElement == e)
350
MbpInfo mbp = MbpInfo.FromElement(Paragraph.
Element
, Paragraph.StructuralCache.TextFormatterHost.PixelsPerDip);
357
Brush backgroundBrush = (Brush)Paragraph.
Element
.GetValue(TextElement.BackgroundProperty);
438
ColumnPropertiesGroup columnProperties = new ColumnPropertiesGroup(Paragraph.
Element
);
531
Paragraph.
Element
as TextElement, ElementEdge.BeforeStart));
539
Paragraph.
Element
as TextElement, ElementEdge.AfterEnd));
MS\Internal\PtsHost\FigureParagraph.cs (7)
96
_mainTextSegment = new ContainerParagraph(
Element
, StructuralCache);
120
uint fswdirPara = PTS.FlowDirectionToFswdir(((FlowDirection)
Element
.GetValue(FrameworkElement.FlowDirectionProperty)));
130
Figure element = (Figure)
Element
;
136
mbp = MbpInfo.FromElement(
Element
, StructuralCache.TextFormatterHost.PixelsPerDip);
328
Figure element = (Figure)
Element
;
576
Figure element = (Figure)
Element
;
614
Figure element = (Figure)
Element
;
MS\Internal\PtsHost\FloaterParaClient.cs (10)
182
MbpInfo mbp = MbpInfo.FromElement(Paragraph.
Element
, Paragraph.StructuralCache.TextFormatterHost.PixelsPerDip);
189
_flowDirection = (FlowDirection)Paragraph.
Element
.GetValue(FrameworkElement.FlowDirectionProperty);
271
ie = Paragraph.
Element
as IInputElement;
289
if (Paragraph.
Element
as ContentElement == e)
357
MbpInfo mbp = MbpInfo.FromElement(Paragraph.
Element
, Paragraph.StructuralCache.TextFormatterHost.PixelsPerDip);
364
Brush backgroundBrush = (Brush)Paragraph.
Element
.GetValue(TextElement.BackgroundProperty);
445
ColumnPropertiesGroup columnProperties = new ColumnPropertiesGroup(Paragraph.
Element
);
539
Paragraph.
Element
as TextElement, ElementEdge.BeforeStart));
547
Paragraph.
Element
as TextElement, ElementEdge.AfterEnd));
802
Floater floater = Paragraph.
Element
as Floater;
MS\Internal\PtsHost\FloaterParagraph.cs (19)
91
_mainTextSegment = new ContainerParagraph(
Element
, StructuralCache);
117
fskclear = PTS.WrapDirectionToFskclear((WrapDirection)
Element
.GetValue(Block.ClearFloatersProperty))
167
uint fswdirPara = PTS.FlowDirectionToFswdir(((FlowDirection)
Element
.GetValue(FrameworkElement.FlowDirectionProperty)));
222
mbp = MbpInfo.FromElement(
Element
, StructuralCache.TextFormatterHost.PixelsPerDip);
381
uint fswdirPara = PTS.FlowDirectionToFswdir(((FlowDirection)
Element
.GetValue(FrameworkElement.FlowDirectionProperty)));
413
mbp = MbpInfo.FromElement(
Element
, StructuralCache.TextFormatterHost.PixelsPerDip);
648
MbpInfo mbp = MbpInfo.FromElement(
Element
, StructuralCache.TextFormatterHost.PixelsPerDip);
785
if(
Element
is Floater)
787
return ((Floater)
Element
).HorizontalAlignment;
790
Figure figure = (Figure)
Element
;
827
if(
Element
is Floater)
842
Figure figure = (Figure)
Element
;
856
if(
Element
is Floater)
858
return (double)((Floater)
Element
).Width;
864
double desiredSize = FigureHelper.CalculateFigureWidth(StructuralCache, (Figure)
Element
,
865
((Figure)
Element
).Width,
887
if(
Element
is Floater && HorizontalAlignment != HorizontalAlignment.Stretch)
891
else if(
Element
is Figure)
893
FigureLength figureLength = ((Figure)
Element
).Width;
MS\Internal\PtsHost\Line.cs (4)
50
_textAlignment = (TextAlignment)TextParagraph.
Element
.GetValue(Block.TextAlignmentProperty);
113
int cpFigure = TextContainerHelper.GetCPFromElement(_paraClient.Paragraph.StructuralCache.TextContainer, paraFigure.
Element
, ElementEdge.BeforeStart);
204
DependencyObject element = pointer.Parent ?? _paraClient.Paragraph.
Element
;
391
DependencyObject paragraphElement = _paraClient.Paragraph.
Element
;
MS\Internal\PtsHost\LineBase.cs (2)
90
element = _paraClient.Paragraph.
Element
;
249
if (position.Parent == _paraClient.Paragraph.
Element
)
MS\Internal\PtsHost\ListParaClient.cs (7)
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 */,
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\ListParagraph.cs (1)
108
if (
Element
== ((TextPointer)textPointer).Parent)
MS\Internal\PtsHost\OptimalTextSource.cs (1)
156
DependencyObject element = pointer.Parent ?? _paraClient.Paragraph.
Element
;
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\RowParagraph.cs (1)
360
internal TableRow Row { get { return (TableRow)
Element
; } }
MS\Internal\PtsHost\SubpageParaClient.cs (7)
71
MbpInfo mbp = MbpInfo.FromElement(Paragraph.
Element
, Paragraph.StructuralCache.TextFormatterHost.PixelsPerDip);
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\SubpageParagraph.cs (15)
119
uint fswdirSubpage = PTS.FlowDirectionToFswdir(((FlowDirection)
Element
.GetValue(FrameworkElement.FlowDirectionProperty)));
149
Invariant.Assert(
Element
is TableCell ||
Element
is AnchoredBlock);
150
fskclearIn = PTS.WrapDirectionToFskclear((WrapDirection)
Element
.GetValue(Block.ClearFloatersProperty));
158
mbp = MbpInfo.FromElement(
Element
, StructuralCache.TextFormatterHost.PixelsPerDip);
326
uint fswdirSubpage = PTS.FlowDirectionToFswdir(((FlowDirection)
Element
.GetValue(FrameworkElement.FlowDirectionProperty)));
334
Invariant.Assert(
Element
is TableCell ||
Element
is AnchoredBlock);
335
fskclearIn = PTS.WrapDirectionToFskclear((WrapDirection)
Element
.GetValue(Block.ClearFloatersProperty));
340
mbp = MbpInfo.FromElement(
Element
, StructuralCache.TextFormatterHost.PixelsPerDip);
487
uint fswdirSubpage = PTS.FlowDirectionToFswdir(((FlowDirection)
Element
.GetValue(FrameworkElement.FlowDirectionProperty)));
494
Invariant.Assert(
Element
is TableCell ||
Element
is AnchoredBlock);
495
fskclearIn = PTS.WrapDirectionToFskclear((WrapDirection)
Element
.GetValue(Block.ClearFloatersProperty));
500
mbp = MbpInfo.FromElement(
Element
, StructuralCache.TextFormatterHost.PixelsPerDip);
MS\Internal\PtsHost\TableParaClient.cs (9)
86
MbpInfo mbp = MbpInfo.FromElement(TableParagraph.
Element
, TableParagraph.StructuralCache.TextFormatterHost.PixelsPerDip);
192
MbpInfo mbpInfo = MbpInfo.FromElement(TableParagraph.
Element
, TableParagraph.StructuralCache.TextFormatterHost.PixelsPerDip);
221
Brush backgroundBrush = (Brush)Paragraph.
Element
.GetValue(TextElement.BackgroundProperty);
516
TextElement elementOwner = this.Paragraph.
Element
as TextElement;
680
MbpInfo mbpInfo = MbpInfo.FromElement(TableParagraph.
Element
, TableParagraph.StructuralCache.TextFormatterHost.PixelsPerDip);
955
MbpInfo mbp = MbpInfo.FromElement(TableParagraph.
Element
, TableParagraph.StructuralCache.TextFormatterHost.PixelsPerDip);
1981
MbpInfo mbpInfo = MbpInfo.FromElement(Paragraph.
Element
, Paragraph.StructuralCache.TextFormatterHost.PixelsPerDip);
2014
MbpInfo mbpInfo = MbpInfo.FromElement(Paragraph.
Element
, Paragraph.StructuralCache.TextFormatterHost.PixelsPerDip);
2430
MbpInfo mbp = MbpInfo.FromElement(TableParagraph.
Element
, TableParagraph.StructuralCache.TextFormatterHost.PixelsPerDip);
MS\Internal\PtsHost\TableParagraph.cs (2)
157
fswdirTable = PTS.FlowDirectionToFswdir((FlowDirection)
Element
.GetValue(FrameworkElement.FlowDirectionProperty))
485
return (Table)
Element
;
MS\Internal\PtsHost\TextParaClient.cs (4)
236
ie = Paragraph.
Element
as IInputElement;
251
Debug.Assert(Paragraph.
Element
as ContentElement != e);
1883
endOfParaGlyphWidth = ((double)TextParagraph.
Element
.GetValue(TextElement.FontSizeProperty) * CaretElement.c_endOfParaMagicMultiplier);
1993
endOfParaGlyphWidth = ((double)TextParagraph.
Element
.GetValue(TextElement.FontSizeProperty) * CaretElement.c_endOfParaMagicMultiplier);
MS\Internal\PtsHost\TextParagraph.cs (12)
140
fstxtprops.fswdir = PTS.FlowDirectionToFswdir((FlowDirection)
Element
.GetValue(FrameworkElement.FlowDirectionProperty));
142
fstxtprops.fKeepTogether = PTS.FromBoolean(DynamicPropertyReader.GetKeepTogether(
Element
));
143
fstxtprops.cMinLinesAfterBreak = DynamicPropertyReader.GetMinOrphanLines(
Element
);
144
fstxtprops.cMinLinesBeforeBreak = DynamicPropertyReader.GetMinWidowLines(
Element
);
201
isParagraphJustified = ((TextAlignment)
Element
.GetValue(Block.TextAlignmentProperty)) == TextAlignment.Justify;
863
ITextPointer textPointerContentStart = TextContainerHelper.GetContentStart(StructuralCache.TextContainer,
Element
);
885
ITextPointer textPointerContentStart = TextContainerHelper.GetContentStart(StructuralCache.TextContainer,
Element
);
938
ITextPointer textPointerContentStart = TextContainerHelper.GetContentStart(StructuralCache.TextContainer,
Element
);
1493
TextProperties defaultTextProperties = new TextProperties(
Element
, StaticTextPointer.Null, false /* inline objects */, false /* get background */,
1496
_lineProperties = new LineProperties(
Element
, StructuralCache.FormattingOwner, defaultTextProperties, null); // No marker properties
1498
bool isHyphenationEnabled = (bool)
Element
.GetValue(Block.IsHyphenationEnabledProperty);
1709
int cpElement = TextContainerHelper.GetCPFromElement(StructuralCache.TextContainer,
Element
, ElementEdge.AfterStart);
MS\Internal\PtsHost\UIElementParaClient.cs (8)
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);
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
;
MS\Internal\PtsHost\UIElementParagraph.cs (15)
108
MbpInfo mbp = MbpInfo.FromElement(
Element
, StructuralCache.TextFormatterHost.PixelsPerDip);
138
fskclear = PTS.WrapDirectionToFskclear((WrapDirection)
Element
.GetValue(Block.ClearFloatersProperty)),
175
Invariant.Assert(
Element
is BlockUIContainer);
202
if (((BlockUIContainer)
Element
).Child != null)
212
MbpInfo mbp = MbpInfo.FromElement(
Element
, StructuralCache.TextFormatterHost.PixelsPerDip);
276
Invariant.Assert(
Element
is BlockUIContainer);
297
if (((BlockUIContainer)
Element
).Child != null)
313
MbpInfo mbp = MbpInfo.FromElement(
Element
, StructuralCache.TextFormatterHost.PixelsPerDip);
362
MbpInfo mbp = MbpInfo.FromElement(
Element
, StructuralCache.TextFormatterHost.PixelsPerDip);
389
MbpInfo mbp = MbpInfo.FromElement(
Element
, StructuralCache.TextFormatterHost.PixelsPerDip);
403
Figure figure = (Figure) ((BlockUIContainer)
Element
).Parent;
458
_uiElementIsland = new UIElementIsland(((BlockUIContainer)
Element
).Child);
525
Figure figure = (Figure)((BlockUIContainer)
Element
).Parent;
545
DependencyObject parent = ((BlockUIContainer)
Element
).Parent;
550
figure.Blocks.FirstChild ==
Element
)