189 references to Element
PresentationFramework (189)
src\Framework\MS\Internal\Documents\ParagraphResult.cs (5)
50
_element = paraClient.Paragraph.
Element
;
793
: base(paraClient, rowRect, rowParagraph.
Element
)
953
MbpInfo mbp = MbpInfo.FromElement(_paraClient.Paragraph.
Element
, _paraClient.Paragraph.StructuralCache.TextFormatterHost.PixelsPerDip);
1068
MbpInfo mbp = MbpInfo.FromElement(_paraClient.Paragraph.
Element
, _paraClient.Paragraph.StructuralCache.TextFormatterHost.PixelsPerDip);
1241
MbpInfo mbp = MbpInfo.FromElement(_paraClient.Paragraph.
Element
, _paraClient.Paragraph.StructuralCache.TextFormatterHost.PixelsPerDip);
src\Framework\MS\Internal\PtsHost\BaseParaClient.cs (1)
103
_flowDirection = (FlowDirection)Paragraph.
Element
.GetValue(FrameworkElement.FlowDirectionProperty);
src\Framework\MS\Internal\PtsHost\BaseParagraph.cs (7)
186
int openEdgeCp = TextContainerHelper.GetCPFromElement(StructuralCache.TextContainer,
Element
, ElementEdge.BeforeStart);
257
return TextContainerHelper.GetCPFromElement(StructuralCache.TextContainer,
Element
, ElementEdge.AfterStart);
261
return TextContainerHelper.GetCPFromElement(StructuralCache.TextContainer,
Element
, ElementEdge.BeforeStart);
278
return TextContainerHelper.GetCPFromElement(StructuralCache.TextContainer,
Element
, ElementEdge.BeforeEnd);
282
return TextContainerHelper.GetCPFromElement(StructuralCache.TextContainer,
Element
, ElementEdge.AfterEnd);
301
int cch = TextContainerHelper.GetCchFromElement(StructuralCache.TextContainer,
Element
);
305
if (this is TextParagraph &&
Element
is TextElement)
src\Framework\MS\Internal\PtsHost\CellParaClient.cs (3)
130
_flowDirection = (FlowDirection)Paragraph.
Element
.GetValue(FrameworkElement.FlowDirectionProperty);
179
CellParagraph.InvalidateStructure(TextContainerHelper.GetCPFromElement(CellParagraph.StructuralCache.TextContainer, CellParagraph.
Element
, ElementEdge.BeforeStart));
253
CellParagraph.InvalidateStructure(TextContainerHelper.GetCPFromElement(CellParagraph.StructuralCache.TextContainer, CellParagraph.
Element
, ElementEdge.BeforeStart));
src\Framework\MS\Internal\PtsHost\CellParagraph.cs (1)
45
internal TableCell Cell { get { return (TableCell)
Element
; } }
src\Framework\MS\Internal\PtsHost\ContainerParaClient.cs (6)
67
MbpInfo mbp = MbpInfo.FromElement(Paragraph.
Element
, Paragraph.StructuralCache.TextFormatterHost.PixelsPerDip);
133
ie = Paragraph.
Element
as IInputElement;
163
if (this.Paragraph.
Element
as ContentElement == e)
221
MbpInfo mbp = MbpInfo.FromElement(Paragraph.
Element
, Paragraph.StructuralCache.TextFormatterHost.PixelsPerDip);
228
Brush backgroundBrush = (Brush)Paragraph.
Element
.GetValue(TextElement.BackgroundProperty);
316
TextElement elementOwner = this.Paragraph.
Element
as TextElement;
src\Framework\MS\Internal\PtsHost\ContainerParagraph.cs (29)
102
int cpCurrent = TextContainerHelper.GetCPFromElement(StructuralCache.TextContainer,
Element
, ElementEdge.AfterStart);
164
ITextPointer textPointer = TextContainerHelper.GetContentStart(StructuralCache.TextContainer,
Element
);
379
TextContainerHelper.GetCPFromElement(StructuralCache.TextContainer,
Element
, ElementEdge.BeforeStart), LastFormatCch);
386
int dcpContent = TextContainerHelper.GetCPFromElement(StructuralCache.TextContainer,
Element
, ElementEdge.AfterStart);
498
uint fswdirSubtrack = PTS.FlowDirectionToFswdir(((FlowDirection)
Element
.GetValue(FrameworkElement.FlowDirectionProperty)));
520
Invariant.Assert(
Element
is Block ||
Element
is ListItem);
521
fskclearIn = PTS.WrapDirectionToFskclear((WrapDirection)
Element
.GetValue(Block.ClearFloatersProperty));
527
MbpInfo mbp = MbpInfo.FromElement(
Element
, StructuralCache.TextFormatterHost.PixelsPerDip);
671
uint fswdirSubtrack = PTS.FlowDirectionToFswdir(((FlowDirection)
Element
.GetValue(FrameworkElement.FlowDirectionProperty)));
679
MbpInfo mbp = MbpInfo.FromElement(
Element
, StructuralCache.TextFormatterHost.PixelsPerDip);
687
Invariant.Assert(
Element
is Block ||
Element
is ListItem);
688
fskclearIn = PTS.WrapDirectionToFskclear((WrapDirection)
Element
.GetValue(Block.ClearFloatersProperty));
808
uint fswdirSubtrack = PTS.FlowDirectionToFswdir(((FlowDirection)
Element
.GetValue(FrameworkElement.FlowDirectionProperty)));
816
MbpInfo mbp = MbpInfo.FromElement(
Element
, StructuralCache.TextFormatterHost.PixelsPerDip);
824
Invariant.Assert(
Element
is Block ||
Element
is ListItem);
825
fskclearIn = PTS.WrapDirectionToFskclear((WrapDirection)
Element
.GetValue(Block.ClearFloatersProperty));
1066
if(!(
Element
is TextElement) || ((TextElement)
Element
).ContentStart != textPointer)
1068
throw new InvalidOperationException(SR.Get(SRID.TextSchema_TextIsNotAllowedInThisContext,
Element
.GetType().Name));
1072
paragraph = new TextParagraph(
Element
, StructuralCache);
1078
Invariant.Assert(
Element
== ((TextPointer)textPointer).Parent);
1082
paragraph = new TextParagraph(
Element
, StructuralCache);
1110
paragraph = new TextParagraph(
Element
, StructuralCache);
1123
paragraph = new TextParagraph(
Element
, StructuralCache);
1132
paragraph = new TextParagraph(
Element
, StructuralCache);
1176
int cpContent = TextContainerHelper.GetCPFromElement(StructuralCache.TextContainer,
Element
, ElementEdge.AfterStart);
src\Framework\MS\Internal\PtsHost\EmbeddedObject.cs (1)
121
return Para.
Element
;
src\Framework\MS\Internal\PtsHost\FigureParaClient.cs (10)
96
MbpInfo mbp = MbpInfo.FromElement(Paragraph.
Element
, Paragraph.StructuralCache.TextFormatterHost.PixelsPerDip);
225
MbpInfo mbp = MbpInfo.FromElement(Paragraph.
Element
, Paragraph.StructuralCache.TextFormatterHost.PixelsPerDip);
235
_flowDirection = (FlowDirection)Paragraph.
Element
.GetValue(FrameworkElement.FlowDirectionProperty);
309
ie = Paragraph.
Element
as IInputElement;
335
if (Paragraph.
Element
as ContentElement == e)
409
MbpInfo mbp = MbpInfo.FromElement(Paragraph.
Element
, Paragraph.StructuralCache.TextFormatterHost.PixelsPerDip);
416
Brush backgroundBrush = (Brush)Paragraph.
Element
.GetValue(TextElement.BackgroundProperty);
497
ColumnPropertiesGroup columnProperties = new ColumnPropertiesGroup(Paragraph.
Element
);
598
Paragraph.
Element
as TextElement, ElementEdge.BeforeStart));
606
Paragraph.
Element
as TextElement, ElementEdge.AfterEnd));
src\Framework\MS\Internal\PtsHost\FigureParagraph.cs (7)
110
_mainTextSegment = new ContainerParagraph(
Element
, StructuralCache);
141
uint fswdirPara = PTS.FlowDirectionToFswdir(((FlowDirection)
Element
.GetValue(FrameworkElement.FlowDirectionProperty)));
151
Figure element = (Figure)
Element
;
157
mbp = MbpInfo.FromElement(
Element
, StructuralCache.TextFormatterHost.PixelsPerDip);
353
Figure element = (Figure)
Element
;
613
Figure element = (Figure)
Element
;
651
Figure element = (Figure)
Element
;
src\Framework\MS\Internal\PtsHost\FloaterParaClient.cs (10)
214
MbpInfo mbp = MbpInfo.FromElement(Paragraph.
Element
, Paragraph.StructuralCache.TextFormatterHost.PixelsPerDip);
221
_flowDirection = (FlowDirection)Paragraph.
Element
.GetValue(FrameworkElement.FlowDirectionProperty);
311
ie = Paragraph.
Element
as IInputElement;
337
if (Paragraph.
Element
as ContentElement == e)
413
MbpInfo mbp = MbpInfo.FromElement(Paragraph.
Element
, Paragraph.StructuralCache.TextFormatterHost.PixelsPerDip);
420
Brush backgroundBrush = (Brush)Paragraph.
Element
.GetValue(TextElement.BackgroundProperty);
501
ColumnPropertiesGroup columnProperties = new ColumnPropertiesGroup(Paragraph.
Element
);
603
Paragraph.
Element
as TextElement, ElementEdge.BeforeStart));
611
Paragraph.
Element
as TextElement, ElementEdge.AfterEnd));
886
Floater floater = Paragraph.
Element
as Floater;
src\Framework\MS\Internal\PtsHost\FloaterParagraph.cs (19)
106
_mainTextSegment = new ContainerParagraph(
Element
, StructuralCache);
131
fsfloaterprops.fskclear = PTS.WrapDirectionToFskclear((WrapDirection)
Element
.GetValue(Block.ClearFloatersProperty));
186
uint fswdirPara = PTS.FlowDirectionToFswdir(((FlowDirection)
Element
.GetValue(FrameworkElement.FlowDirectionProperty)));
237
mbp = MbpInfo.FromElement(
Element
, StructuralCache.TextFormatterHost.PixelsPerDip);
401
uint fswdirPara = PTS.FlowDirectionToFswdir(((FlowDirection)
Element
.GetValue(FrameworkElement.FlowDirectionProperty)));
431
mbp = MbpInfo.FromElement(
Element
, StructuralCache.TextFormatterHost.PixelsPerDip);
672
MbpInfo mbp = MbpInfo.FromElement(
Element
, StructuralCache.TextFormatterHost.PixelsPerDip);
824
if(
Element
is Floater)
826
return ((Floater)
Element
).HorizontalAlignment;
829
Figure figure = (Figure)
Element
;
866
if(
Element
is Floater)
881
Figure figure = (Figure)
Element
;
895
if(
Element
is Floater)
897
return (double)((Floater)
Element
).Width;
903
double desiredSize = FigureHelper.CalculateFigureWidth(StructuralCache, (Figure)
Element
,
904
((Figure)
Element
).Width,
926
if(
Element
is Floater && HorizontalAlignment != HorizontalAlignment.Stretch)
930
else if(
Element
is Figure)
932
FigureLength figureLength = ((Figure)
Element
).Width;
src\Framework\MS\Internal\PtsHost\Line.cs (4)
67
_textAlignment = (TextAlignment)TextParagraph.
Element
.GetValue(Block.TextAlignmentProperty);
133
int cpFigure = TextContainerHelper.GetCPFromElement(_paraClient.Paragraph.StructuralCache.TextContainer, paraFigure.
Element
, ElementEdge.BeforeStart);
224
DependencyObject element = (pointer.Parent != null) ? pointer.Parent : _paraClient.Paragraph.
Element
;
411
DependencyObject paragraphElement = _paraClient.Paragraph.
Element
;
src\Framework\MS\Internal\PtsHost\LineBase.cs (2)
103
element = _paraClient.Paragraph.
Element
;
264
if (position.Parent == _paraClient.Paragraph.
Element
)
src\Framework\MS\Internal\PtsHost\ListParaClient.cs (7)
64
MbpInfo mbp = MbpInfo.FromElement(Paragraph.
Element
, Paragraph.StructuralCache.TextFormatterHost.PixelsPerDip);
70
uint fswdir = PTS.FlowDirectionToFswdir((FlowDirection)Paragraph.
Element
.GetValue(FrameworkElement.FlowDirectionProperty));
72
Brush backgroundBrush = (Brush)Paragraph.
Element
.GetValue(TextElement.BackgroundProperty);
76
TextProperties textProperties = new TextProperties(Paragraph.
Element
, StaticTextPointer.Null, false /* inline objects */, false /* get background */,
95
List list = Paragraph.
Element
as List;
102
indexFirstParaInSubtrack = list.GetListItemIndex(listItemParaClient.Paragraph.
Element
as ListItem);
123
LineProperties lineProps = new LineProperties(Paragraph.
Element
, Paragraph.StructuralCache.FormattingOwner, textProperties, new MarkerProperties(list, adjustedIndex));
src\Framework\MS\Internal\PtsHost\ListParagraph.cs (1)
126
if (
Element
== ((TextPointer)textPointer).Parent)
src\Framework\MS\Internal\PtsHost\OptimalTextSource.cs (1)
175
DependencyObject element = (pointer.Parent != null) ? pointer.Parent : _paraClient.Paragraph.
Element
;
src\Framework\MS\Internal\PtsHost\PtsHost.cs (2)
2654
if (((BlockUIContainer)paraClient.Paragraph.
Element
).Child != null)
2657
UIElement uiElement = ((BlockUIContainer)paraClient.Paragraph.
Element
).Child;
src\Framework\MS\Internal\PtsHost\RowParagraph.cs (1)
378
internal TableRow Row { get { return (TableRow)
Element
; } }
src\Framework\MS\Internal\PtsHost\SubpageParaClient.cs (7)
95
MbpInfo mbp = MbpInfo.FromElement(Paragraph.
Element
, Paragraph.StructuralCache.TextFormatterHost.PixelsPerDip);
237
ie = Paragraph.
Element
as IInputElement;
262
if (Paragraph.
Element
as ContentElement == e)
334
MbpInfo mbpInfo = MbpInfo.FromElement(Paragraph.
Element
, Paragraph.StructuralCache.TextFormatterHost.PixelsPerDip);
341
Brush backgroundBrush = (Brush)Paragraph.
Element
.GetValue(TextElement.BackgroundProperty);
422
ColumnPropertiesGroup columnProperties = new ColumnPropertiesGroup(Paragraph.
Element
);
572
TextElement elementOwner = this.Paragraph.
Element
as TextElement;
src\Framework\MS\Internal\PtsHost\SubpageParagraph.cs (15)
147
uint fswdirSubpage = PTS.FlowDirectionToFswdir(((FlowDirection)
Element
.GetValue(FrameworkElement.FlowDirectionProperty)));
177
Invariant.Assert(
Element
is TableCell ||
Element
is AnchoredBlock);
178
fskclearIn = PTS.WrapDirectionToFskclear((WrapDirection)
Element
.GetValue(Block.ClearFloatersProperty));
186
mbp = MbpInfo.FromElement(
Element
, StructuralCache.TextFormatterHost.PixelsPerDip);
366
uint fswdirSubpage = PTS.FlowDirectionToFswdir(((FlowDirection)
Element
.GetValue(FrameworkElement.FlowDirectionProperty)));
374
Invariant.Assert(
Element
is TableCell ||
Element
is AnchoredBlock);
375
fskclearIn = PTS.WrapDirectionToFskclear((WrapDirection)
Element
.GetValue(Block.ClearFloatersProperty));
380
mbp = MbpInfo.FromElement(
Element
, StructuralCache.TextFormatterHost.PixelsPerDip);
536
uint fswdirSubpage = PTS.FlowDirectionToFswdir(((FlowDirection)
Element
.GetValue(FrameworkElement.FlowDirectionProperty)));
543
Invariant.Assert(
Element
is TableCell ||
Element
is AnchoredBlock);
544
fskclearIn = PTS.WrapDirectionToFskclear((WrapDirection)
Element
.GetValue(Block.ClearFloatersProperty));
549
mbp = MbpInfo.FromElement(
Element
, StructuralCache.TextFormatterHost.PixelsPerDip);
src\Framework\MS\Internal\PtsHost\TableParaClient.cs (9)
104
MbpInfo mbp = MbpInfo.FromElement(TableParagraph.
Element
, TableParagraph.StructuralCache.TextFormatterHost.PixelsPerDip);
218
MbpInfo mbpInfo = MbpInfo.FromElement(TableParagraph.
Element
, TableParagraph.StructuralCache.TextFormatterHost.PixelsPerDip);
247
Brush backgroundBrush = (Brush)Paragraph.
Element
.GetValue(TextElement.BackgroundProperty);
565
TextElement elementOwner = this.Paragraph.
Element
as TextElement;
741
MbpInfo mbpInfo = MbpInfo.FromElement(TableParagraph.
Element
, TableParagraph.StructuralCache.TextFormatterHost.PixelsPerDip);
1035
MbpInfo mbp = MbpInfo.FromElement(TableParagraph.
Element
, TableParagraph.StructuralCache.TextFormatterHost.PixelsPerDip);
2108
MbpInfo mbpInfo = MbpInfo.FromElement(Paragraph.
Element
, Paragraph.StructuralCache.TextFormatterHost.PixelsPerDip);
2141
MbpInfo mbpInfo = MbpInfo.FromElement(Paragraph.
Element
, Paragraph.StructuralCache.TextFormatterHost.PixelsPerDip);
2557
MbpInfo mbp = MbpInfo.FromElement(TableParagraph.
Element
, TableParagraph.StructuralCache.TextFormatterHost.PixelsPerDip);
src\Framework\MS\Internal\PtsHost\TableParagraph.cs (2)
175
fstableobjprops.fswdirTable = PTS.FlowDirectionToFswdir((FlowDirection)
Element
.GetValue(FrameworkElement.FlowDirectionProperty));
502
return (Table)
Element
;
src\Framework\MS\Internal\PtsHost\TextParaClient.cs (4)
273
ie = Paragraph.
Element
as IInputElement;
298
Debug.Assert(Paragraph.
Element
as ContentElement != e);
2098
endOfParaGlyphWidth = ((double)TextParagraph.
Element
.GetValue(TextElement.FontSizeProperty) * CaretElement.c_endOfParaMagicMultiplier);
2213
endOfParaGlyphWidth = ((double)TextParagraph.
Element
.GetValue(TextElement.FontSizeProperty) * CaretElement.c_endOfParaMagicMultiplier);
src\Framework\MS\Internal\PtsHost\TextParagraph.cs (12)
162
fstxtprops.fswdir = PTS.FlowDirectionToFswdir((FlowDirection)
Element
.GetValue(FrameworkElement.FlowDirectionProperty));
164
fstxtprops.fKeepTogether = PTS.FromBoolean(DynamicPropertyReader.GetKeepTogether(
Element
));
165
fstxtprops.cMinLinesAfterBreak = DynamicPropertyReader.GetMinOrphanLines(
Element
);
166
fstxtprops.cMinLinesBeforeBreak = DynamicPropertyReader.GetMinWidowLines(
Element
);
224
isParagraphJustified = ((TextAlignment)
Element
.GetValue(Block.TextAlignmentProperty)) == TextAlignment.Justify;
893
ITextPointer textPointerContentStart = TextContainerHelper.GetContentStart(StructuralCache.TextContainer,
Element
);
915
ITextPointer textPointerContentStart = TextContainerHelper.GetContentStart(StructuralCache.TextContainer,
Element
);
969
ITextPointer textPointerContentStart = TextContainerHelper.GetContentStart(StructuralCache.TextContainer,
Element
);
1530
TextProperties defaultTextProperties = new TextProperties(
Element
, StaticTextPointer.Null, false /* inline objects */, false /* get background */,
1533
_lineProperties = new LineProperties(
Element
, StructuralCache.FormattingOwner, defaultTextProperties, null); // No marker properties
1535
bool isHyphenationEnabled = (bool)
Element
.GetValue(Block.IsHyphenationEnabledProperty);
1746
int cpElement = TextContainerHelper.GetCPFromElement(StructuralCache.TextContainer,
Element
, ElementEdge.AfterStart);
src\Framework\MS\Internal\PtsHost\UIElementParaClient.cs (8)
76
MbpInfo mbp = MbpInfo.FromElement(Paragraph.
Element
, Paragraph.StructuralCache.TextFormatterHost.PixelsPerDip);
98
if (Paragraph.
Element
== e)
112
MbpInfo mbp = MbpInfo.FromElement(Paragraph.
Element
, Paragraph.StructuralCache.TextFormatterHost.PixelsPerDip);
144
Brush backgroundBrush = (Brush)Paragraph.
Element
.GetValue(TextElement.BackgroundProperty);
153
if (startPosition.CompareTo(((BlockUIContainer)Paragraph.
Element
).ContentEnd) < 0 &&
154
endPosition.CompareTo(((BlockUIContainer)Paragraph.
Element
).ContentStart) > 0)
178
return Paragraph.
Element
as IInputElement;
188
BlockUIContainer elementOwner = (BlockUIContainer)Paragraph.
Element
;
src\Framework\MS\Internal\PtsHost\UIElementParagraph.cs (15)
119
MbpInfo mbp = MbpInfo.FromElement(
Element
, StructuralCache.TextFormatterHost.PixelsPerDip);
151
fsfloaterprops.fskclear = PTS.WrapDirectionToFskclear((WrapDirection)
Element
.GetValue(Block.ClearFloatersProperty));
187
Invariant.Assert(
Element
is BlockUIContainer);
210
if (((BlockUIContainer)
Element
).Child != null)
220
MbpInfo mbp = MbpInfo.FromElement(
Element
, StructuralCache.TextFormatterHost.PixelsPerDip);
278
Invariant.Assert(
Element
is BlockUIContainer);
297
if (((BlockUIContainer)
Element
).Child != null)
313
MbpInfo mbp = MbpInfo.FromElement(
Element
, StructuralCache.TextFormatterHost.PixelsPerDip);
360
MbpInfo mbp = MbpInfo.FromElement(
Element
, StructuralCache.TextFormatterHost.PixelsPerDip);
387
MbpInfo mbp = MbpInfo.FromElement(
Element
, StructuralCache.TextFormatterHost.PixelsPerDip);
401
Figure figure = (Figure) ((BlockUIContainer)
Element
).Parent;
452
_uiElementIsland = new UIElementIsland(((BlockUIContainer)
Element
).Child);
519
Figure figure = (Figure)((BlockUIContainer)
Element
).Parent;
539
DependencyObject parent = ((BlockUIContainer)
Element
).Parent;
544
figure.Blocks.FirstChild ==
Element
)