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