189 references to Element
PresentationFramework (189)
MS\Internal\Documents\ParagraphResult.cs (5)
40
_element = paraClient.Paragraph.
Element
;
782
: base(paraClient, rowRect, rowParagraph.
Element
)
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 (1)
79
_flowDirection = (FlowDirection)Paragraph.
Element
.GetValue(FrameworkElement.FlowDirectionProperty);
MS\Internal\PtsHost\BaseParagraph.cs (7)
179
int openEdgeCp = TextContainerHelper.GetCPFromElement(StructuralCache.TextContainer,
Element
, ElementEdge.BeforeStart);
250
return TextContainerHelper.GetCPFromElement(StructuralCache.TextContainer,
Element
, ElementEdge.AfterStart);
254
return TextContainerHelper.GetCPFromElement(StructuralCache.TextContainer,
Element
, ElementEdge.BeforeStart);
271
return TextContainerHelper.GetCPFromElement(StructuralCache.TextContainer,
Element
, ElementEdge.BeforeEnd);
275
return TextContainerHelper.GetCPFromElement(StructuralCache.TextContainer,
Element
, ElementEdge.AfterEnd);
294
int cch = TextContainerHelper.GetCchFromElement(StructuralCache.TextContainer,
Element
);
298
if (this is TextParagraph &&
Element
is TextElement)
MS\Internal\PtsHost\CellParaClient.cs (3)
112
_flowDirection = (FlowDirection)Paragraph.
Element
.GetValue(FrameworkElement.FlowDirectionProperty);
156
CellParagraph.InvalidateStructure(TextContainerHelper.GetCPFromElement(CellParagraph.StructuralCache.TextContainer, CellParagraph.
Element
, ElementEdge.BeforeStart));
225
CellParagraph.InvalidateStructure(TextContainerHelper.GetCPFromElement(CellParagraph.StructuralCache.TextContainer, CellParagraph.
Element
, ElementEdge.BeforeStart));
MS\Internal\PtsHost\CellParagraph.cs (1)
36
internal TableCell Cell { get { return (TableCell)
Element
; } }
MS\Internal\PtsHost\ContainerParaClient.cs (6)
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;
MS\Internal\PtsHost\ContainerParagraph.cs (29)
79
int cpCurrent = TextContainerHelper.GetCPFromElement(StructuralCache.TextContainer,
Element
, ElementEdge.AfterStart);
141
ITextPointer textPointer = TextContainerHelper.GetContentStart(StructuralCache.TextContainer,
Element
);
355
TextContainerHelper.GetCPFromElement(StructuralCache.TextContainer,
Element
, ElementEdge.BeforeStart), LastFormatCch);
362
int dcpContent = TextContainerHelper.GetCPFromElement(StructuralCache.TextContainer,
Element
, ElementEdge.AfterStart);
462
uint fswdirSubtrack = PTS.FlowDirectionToFswdir(((FlowDirection)
Element
.GetValue(FrameworkElement.FlowDirectionProperty)));
484
Invariant.Assert(
Element
is Block ||
Element
is ListItem);
485
fskclearIn = PTS.WrapDirectionToFskclear((WrapDirection)
Element
.GetValue(Block.ClearFloatersProperty));
491
MbpInfo mbp = MbpInfo.FromElement(
Element
, StructuralCache.TextFormatterHost.PixelsPerDip);
628
uint fswdirSubtrack = PTS.FlowDirectionToFswdir(((FlowDirection)
Element
.GetValue(FrameworkElement.FlowDirectionProperty)));
636
MbpInfo mbp = MbpInfo.FromElement(
Element
, StructuralCache.TextFormatterHost.PixelsPerDip);
644
Invariant.Assert(
Element
is Block ||
Element
is ListItem);
645
fskclearIn = PTS.WrapDirectionToFskclear((WrapDirection)
Element
.GetValue(Block.ClearFloatersProperty));
758
uint fswdirSubtrack = PTS.FlowDirectionToFswdir(((FlowDirection)
Element
.GetValue(FrameworkElement.FlowDirectionProperty)));
766
MbpInfo mbp = MbpInfo.FromElement(
Element
, StructuralCache.TextFormatterHost.PixelsPerDip);
774
Invariant.Assert(
Element
is Block ||
Element
is ListItem);
775
fskclearIn = PTS.WrapDirectionToFskclear((WrapDirection)
Element
.GetValue(Block.ClearFloatersProperty));
1016
if(!(
Element
is TextElement) || ((TextElement)
Element
).ContentStart != textPointer)
1018
throw new InvalidOperationException(SR.Format(SR.TextSchema_TextIsNotAllowedInThisContext,
Element
.GetType().Name));
1022
paragraph = new TextParagraph(
Element
, StructuralCache);
1028
Invariant.Assert(
Element
== ((TextPointer)textPointer).Parent);
1032
paragraph = new TextParagraph(
Element
, StructuralCache);
1060
paragraph = new TextParagraph(
Element
, StructuralCache);
1073
paragraph = new TextParagraph(
Element
, StructuralCache);
1082
paragraph = new TextParagraph(
Element
, StructuralCache);
1126
int cpContent = TextContainerHelper.GetCPFromElement(StructuralCache.TextContainer,
Element
, ElementEdge.AfterStart);
MS\Internal\PtsHost\EmbeddedObject.cs (1)
116
return Para.
Element
;
MS\Internal\PtsHost\FigureParaClient.cs (10)
66
MbpInfo mbp = MbpInfo.FromElement(Paragraph.
Element
, Paragraph.StructuralCache.TextFormatterHost.PixelsPerDip);
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\FigureParagraph.cs (7)
95
_mainTextSegment = new ContainerParagraph(
Element
, StructuralCache);
119
uint fswdirPara = PTS.FlowDirectionToFswdir(((FlowDirection)
Element
.GetValue(FrameworkElement.FlowDirectionProperty)));
129
Figure element = (Figure)
Element
;
135
mbp = MbpInfo.FromElement(
Element
, StructuralCache.TextFormatterHost.PixelsPerDip);
327
Figure element = (Figure)
Element
;
575
Figure element = (Figure)
Element
;
613
Figure element = (Figure)
Element
;
MS\Internal\PtsHost\FloaterParaClient.cs (10)
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\FloaterParagraph.cs (19)
90
_mainTextSegment = new ContainerParagraph(
Element
, StructuralCache);
116
fskclear = PTS.WrapDirectionToFskclear((WrapDirection)
Element
.GetValue(Block.ClearFloatersProperty))
166
uint fswdirPara = PTS.FlowDirectionToFswdir(((FlowDirection)
Element
.GetValue(FrameworkElement.FlowDirectionProperty)));
221
mbp = MbpInfo.FromElement(
Element
, StructuralCache.TextFormatterHost.PixelsPerDip);
380
uint fswdirPara = PTS.FlowDirectionToFswdir(((FlowDirection)
Element
.GetValue(FrameworkElement.FlowDirectionProperty)));
412
mbp = MbpInfo.FromElement(
Element
, StructuralCache.TextFormatterHost.PixelsPerDip);
647
MbpInfo mbp = MbpInfo.FromElement(
Element
, StructuralCache.TextFormatterHost.PixelsPerDip);
784
if(
Element
is Floater)
786
return ((Floater)
Element
).HorizontalAlignment;
789
Figure figure = (Figure)
Element
;
826
if(
Element
is Floater)
841
Figure figure = (Figure)
Element
;
855
if(
Element
is Floater)
857
return (double)((Floater)
Element
).Width;
863
double desiredSize = FigureHelper.CalculateFigureWidth(StructuralCache, (Figure)
Element
,
864
((Figure)
Element
).Width,
886
if(
Element
is Floater && HorizontalAlignment != HorizontalAlignment.Stretch)
890
else if(
Element
is Figure)
892
FigureLength figureLength = ((Figure)
Element
).Width;
MS\Internal\PtsHost\Line.cs (4)
49
_textAlignment = (TextAlignment)TextParagraph.
Element
.GetValue(Block.TextAlignmentProperty);
112
int cpFigure = TextContainerHelper.GetCPFromElement(_paraClient.Paragraph.StructuralCache.TextContainer, paraFigure.
Element
, ElementEdge.BeforeStart);
203
DependencyObject element = pointer.Parent ?? _paraClient.Paragraph.
Element
;
390
DependencyObject paragraphElement = _paraClient.Paragraph.
Element
;
MS\Internal\PtsHost\LineBase.cs (2)
89
element = _paraClient.Paragraph.
Element
;
248
if (position.Parent == _paraClient.Paragraph.
Element
)
MS\Internal\PtsHost\ListParaClient.cs (7)
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 */,
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\ListParagraph.cs (1)
107
if (
Element
== ((TextPointer)textPointer).Parent)
MS\Internal\PtsHost\OptimalTextSource.cs (1)
155
DependencyObject element = pointer.Parent ?? _paraClient.Paragraph.
Element
;
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\RowParagraph.cs (1)
359
internal TableRow Row { get { return (TableRow)
Element
; } }
MS\Internal\PtsHost\SubpageParaClient.cs (7)
70
MbpInfo mbp = MbpInfo.FromElement(Paragraph.
Element
, Paragraph.StructuralCache.TextFormatterHost.PixelsPerDip);
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\SubpageParagraph.cs (15)
118
uint fswdirSubpage = PTS.FlowDirectionToFswdir(((FlowDirection)
Element
.GetValue(FrameworkElement.FlowDirectionProperty)));
148
Invariant.Assert(
Element
is TableCell ||
Element
is AnchoredBlock);
149
fskclearIn = PTS.WrapDirectionToFskclear((WrapDirection)
Element
.GetValue(Block.ClearFloatersProperty));
157
mbp = MbpInfo.FromElement(
Element
, StructuralCache.TextFormatterHost.PixelsPerDip);
325
uint fswdirSubpage = PTS.FlowDirectionToFswdir(((FlowDirection)
Element
.GetValue(FrameworkElement.FlowDirectionProperty)));
333
Invariant.Assert(
Element
is TableCell ||
Element
is AnchoredBlock);
334
fskclearIn = PTS.WrapDirectionToFskclear((WrapDirection)
Element
.GetValue(Block.ClearFloatersProperty));
339
mbp = MbpInfo.FromElement(
Element
, StructuralCache.TextFormatterHost.PixelsPerDip);
486
uint fswdirSubpage = PTS.FlowDirectionToFswdir(((FlowDirection)
Element
.GetValue(FrameworkElement.FlowDirectionProperty)));
493
Invariant.Assert(
Element
is TableCell ||
Element
is AnchoredBlock);
494
fskclearIn = PTS.WrapDirectionToFskclear((WrapDirection)
Element
.GetValue(Block.ClearFloatersProperty));
499
mbp = MbpInfo.FromElement(
Element
, StructuralCache.TextFormatterHost.PixelsPerDip);
MS\Internal\PtsHost\TableParaClient.cs (9)
85
MbpInfo mbp = MbpInfo.FromElement(TableParagraph.
Element
, TableParagraph.StructuralCache.TextFormatterHost.PixelsPerDip);
191
MbpInfo mbpInfo = MbpInfo.FromElement(TableParagraph.
Element
, TableParagraph.StructuralCache.TextFormatterHost.PixelsPerDip);
220
Brush backgroundBrush = (Brush)Paragraph.
Element
.GetValue(TextElement.BackgroundProperty);
515
TextElement elementOwner = this.Paragraph.
Element
as TextElement;
679
MbpInfo mbpInfo = MbpInfo.FromElement(TableParagraph.
Element
, TableParagraph.StructuralCache.TextFormatterHost.PixelsPerDip);
954
MbpInfo mbp = MbpInfo.FromElement(TableParagraph.
Element
, TableParagraph.StructuralCache.TextFormatterHost.PixelsPerDip);
1980
MbpInfo mbpInfo = MbpInfo.FromElement(Paragraph.
Element
, Paragraph.StructuralCache.TextFormatterHost.PixelsPerDip);
2013
MbpInfo mbpInfo = MbpInfo.FromElement(Paragraph.
Element
, Paragraph.StructuralCache.TextFormatterHost.PixelsPerDip);
2429
MbpInfo mbp = MbpInfo.FromElement(TableParagraph.
Element
, TableParagraph.StructuralCache.TextFormatterHost.PixelsPerDip);
MS\Internal\PtsHost\TableParagraph.cs (2)
156
fswdirTable = PTS.FlowDirectionToFswdir((FlowDirection)
Element
.GetValue(FrameworkElement.FlowDirectionProperty))
484
return (Table)
Element
;
MS\Internal\PtsHost\TextParaClient.cs (4)
235
ie = Paragraph.
Element
as IInputElement;
250
Debug.Assert(Paragraph.
Element
as ContentElement != e);
1882
endOfParaGlyphWidth = ((double)TextParagraph.
Element
.GetValue(TextElement.FontSizeProperty) * CaretElement.c_endOfParaMagicMultiplier);
1992
endOfParaGlyphWidth = ((double)TextParagraph.
Element
.GetValue(TextElement.FontSizeProperty) * CaretElement.c_endOfParaMagicMultiplier);
MS\Internal\PtsHost\TextParagraph.cs (12)
139
fstxtprops.fswdir = PTS.FlowDirectionToFswdir((FlowDirection)
Element
.GetValue(FrameworkElement.FlowDirectionProperty));
141
fstxtprops.fKeepTogether = PTS.FromBoolean(DynamicPropertyReader.GetKeepTogether(
Element
));
142
fstxtprops.cMinLinesAfterBreak = DynamicPropertyReader.GetMinOrphanLines(
Element
);
143
fstxtprops.cMinLinesBeforeBreak = DynamicPropertyReader.GetMinWidowLines(
Element
);
200
isParagraphJustified = ((TextAlignment)
Element
.GetValue(Block.TextAlignmentProperty)) == TextAlignment.Justify;
862
ITextPointer textPointerContentStart = TextContainerHelper.GetContentStart(StructuralCache.TextContainer,
Element
);
884
ITextPointer textPointerContentStart = TextContainerHelper.GetContentStart(StructuralCache.TextContainer,
Element
);
937
ITextPointer textPointerContentStart = TextContainerHelper.GetContentStart(StructuralCache.TextContainer,
Element
);
1492
TextProperties defaultTextProperties = new TextProperties(
Element
, StaticTextPointer.Null, false /* inline objects */, false /* get background */,
1495
_lineProperties = new LineProperties(
Element
, StructuralCache.FormattingOwner, defaultTextProperties, null); // No marker properties
1497
bool isHyphenationEnabled = (bool)
Element
.GetValue(Block.IsHyphenationEnabledProperty);
1708
int cpElement = TextContainerHelper.GetCPFromElement(StructuralCache.TextContainer,
Element
, ElementEdge.AfterStart);
MS\Internal\PtsHost\UIElementParaClient.cs (8)
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);
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
;
MS\Internal\PtsHost\UIElementParagraph.cs (15)
107
MbpInfo mbp = MbpInfo.FromElement(
Element
, StructuralCache.TextFormatterHost.PixelsPerDip);
137
fskclear = PTS.WrapDirectionToFskclear((WrapDirection)
Element
.GetValue(Block.ClearFloatersProperty)),
174
Invariant.Assert(
Element
is BlockUIContainer);
201
if (((BlockUIContainer)
Element
).Child != null)
211
MbpInfo mbp = MbpInfo.FromElement(
Element
, StructuralCache.TextFormatterHost.PixelsPerDip);
275
Invariant.Assert(
Element
is BlockUIContainer);
296
if (((BlockUIContainer)
Element
).Child != null)
312
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;
457
_uiElementIsland = new UIElementIsland(((BlockUIContainer)
Element
).Child);
524
Figure figure = (Figure)((BlockUIContainer)
Element
).Parent;
544
DependencyObject parent = ((BlockUIContainer)
Element
).Parent;
549
figure.Blocks.FirstChild ==
Element
)