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);
623
uint fswdirSubtrack = PTS.FlowDirectionToFswdir(((FlowDirection)
Element
.GetValue(FrameworkElement.FlowDirectionProperty)));
631
MbpInfo mbp = MbpInfo.FromElement(
Element
, StructuralCache.TextFormatterHost.PixelsPerDip);
639
Invariant.Assert(
Element
is Block ||
Element
is ListItem);
640
fskclearIn = PTS.WrapDirectionToFskclear((WrapDirection)
Element
.GetValue(Block.ClearFloatersProperty));
747
uint fswdirSubtrack = PTS.FlowDirectionToFswdir(((FlowDirection)
Element
.GetValue(FrameworkElement.FlowDirectionProperty)));
755
MbpInfo mbp = MbpInfo.FromElement(
Element
, StructuralCache.TextFormatterHost.PixelsPerDip);
763
Invariant.Assert(
Element
is Block ||
Element
is ListItem);
764
fskclearIn = PTS.WrapDirectionToFskclear((WrapDirection)
Element
.GetValue(Block.ClearFloatersProperty));
999
if(!(
Element
is TextElement) || ((TextElement)
Element
).ContentStart != textPointer)
1001
throw new InvalidOperationException(SR.Format(SR.TextSchema_TextIsNotAllowedInThisContext,
Element
.GetType().Name));
1005
paragraph = new TextParagraph(
Element
, StructuralCache);
1011
Invariant.Assert(
Element
== ((TextPointer)textPointer).Parent);
1015
paragraph = new TextParagraph(
Element
, StructuralCache);
1043
paragraph = new TextParagraph(
Element
, StructuralCache);
1056
paragraph = new TextParagraph(
Element
, StructuralCache);
1065
paragraph = new TextParagraph(
Element
, StructuralCache);
1109
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)
91
_mainTextSegment = new ContainerParagraph(
Element
, StructuralCache);
115
uint fswdirPara = PTS.FlowDirectionToFswdir(((FlowDirection)
Element
.GetValue(FrameworkElement.FlowDirectionProperty)));
125
Figure element = (Figure)
Element
;
131
mbp = MbpInfo.FromElement(
Element
, StructuralCache.TextFormatterHost.PixelsPerDip);
323
Figure element = (Figure)
Element
;
571
Figure element = (Figure)
Element
;
609
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)
86
_mainTextSegment = new ContainerParagraph(
Element
, StructuralCache);
112
fskclear = PTS.WrapDirectionToFskclear((WrapDirection)
Element
.GetValue(Block.ClearFloatersProperty))
162
uint fswdirPara = PTS.FlowDirectionToFswdir(((FlowDirection)
Element
.GetValue(FrameworkElement.FlowDirectionProperty)));
217
mbp = MbpInfo.FromElement(
Element
, StructuralCache.TextFormatterHost.PixelsPerDip);
376
uint fswdirPara = PTS.FlowDirectionToFswdir(((FlowDirection)
Element
.GetValue(FrameworkElement.FlowDirectionProperty)));
408
mbp = MbpInfo.FromElement(
Element
, StructuralCache.TextFormatterHost.PixelsPerDip);
643
MbpInfo mbp = MbpInfo.FromElement(
Element
, StructuralCache.TextFormatterHost.PixelsPerDip);
780
if(
Element
is Floater)
782
return ((Floater)
Element
).HorizontalAlignment;
785
Figure figure = (Figure)
Element
;
822
if(
Element
is Floater)
837
Figure figure = (Figure)
Element
;
851
if(
Element
is Floater)
853
return (double)((Floater)
Element
).Width;
859
double desiredSize = FigureHelper.CalculateFigureWidth(StructuralCache, (Figure)
Element
,
860
((Figure)
Element
).Width,
882
if(
Element
is Floater && HorizontalAlignment != HorizontalAlignment.Stretch)
886
else if(
Element
is Figure)
888
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)
114
uint fswdirSubpage = PTS.FlowDirectionToFswdir(((FlowDirection)
Element
.GetValue(FrameworkElement.FlowDirectionProperty)));
144
Invariant.Assert(
Element
is TableCell ||
Element
is AnchoredBlock);
145
fskclearIn = PTS.WrapDirectionToFskclear((WrapDirection)
Element
.GetValue(Block.ClearFloatersProperty));
153
mbp = MbpInfo.FromElement(
Element
, StructuralCache.TextFormatterHost.PixelsPerDip);
314
uint fswdirSubpage = PTS.FlowDirectionToFswdir(((FlowDirection)
Element
.GetValue(FrameworkElement.FlowDirectionProperty)));
322
Invariant.Assert(
Element
is TableCell ||
Element
is AnchoredBlock);
323
fskclearIn = PTS.WrapDirectionToFskclear((WrapDirection)
Element
.GetValue(Block.ClearFloatersProperty));
328
mbp = MbpInfo.FromElement(
Element
, StructuralCache.TextFormatterHost.PixelsPerDip);
471
uint fswdirSubpage = PTS.FlowDirectionToFswdir(((FlowDirection)
Element
.GetValue(FrameworkElement.FlowDirectionProperty)));
478
Invariant.Assert(
Element
is TableCell ||
Element
is AnchoredBlock);
479
fskclearIn = PTS.WrapDirectionToFskclear((WrapDirection)
Element
.GetValue(Block.ClearFloatersProperty));
484
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
)