189 references to Element
PresentationFramework (189)
MS\Internal\Documents\ParagraphResult.cs (5)
44_element = paraClient.Paragraph.Element; 786: base(paraClient, rowRect, rowParagraph.Element) 945MbpInfo mbp = MbpInfo.FromElement(_paraClient.Paragraph.Element, _paraClient.Paragraph.StructuralCache.TextFormatterHost.PixelsPerDip); 1060MbpInfo mbp = MbpInfo.FromElement(_paraClient.Paragraph.Element, _paraClient.Paragraph.StructuralCache.TextFormatterHost.PixelsPerDip); 1232MbpInfo mbp = MbpInfo.FromElement(_paraClient.Paragraph.Element, _paraClient.Paragraph.StructuralCache.TextFormatterHost.PixelsPerDip);
MS\Internal\PtsHost\BaseParaClient.cs (1)
88_flowDirection = (FlowDirection)Paragraph.Element.GetValue(FrameworkElement.FlowDirectionProperty);
MS\Internal\PtsHost\BaseParagraph.cs (7)
182int openEdgeCp = TextContainerHelper.GetCPFromElement(StructuralCache.TextContainer, Element, ElementEdge.BeforeStart); 253return TextContainerHelper.GetCPFromElement(StructuralCache.TextContainer, Element, ElementEdge.AfterStart); 257return TextContainerHelper.GetCPFromElement(StructuralCache.TextContainer, Element, ElementEdge.BeforeStart); 274return TextContainerHelper.GetCPFromElement(StructuralCache.TextContainer, Element, ElementEdge.BeforeEnd); 278return TextContainerHelper.GetCPFromElement(StructuralCache.TextContainer, Element, ElementEdge.AfterEnd); 297int cch = TextContainerHelper.GetCchFromElement(StructuralCache.TextContainer, Element); 301if (this is TextParagraph && Element is TextElement)
MS\Internal\PtsHost\CellParaClient.cs (3)
118_flowDirection = (FlowDirection)Paragraph.Element.GetValue(FrameworkElement.FlowDirectionProperty); 162CellParagraph.InvalidateStructure(TextContainerHelper.GetCPFromElement(CellParagraph.StructuralCache.TextContainer, CellParagraph.Element, ElementEdge.BeforeStart)); 231CellParagraph.InvalidateStructure(TextContainerHelper.GetCPFromElement(CellParagraph.StructuralCache.TextContainer, CellParagraph.Element, ElementEdge.BeforeStart));
MS\Internal\PtsHost\CellParagraph.cs (1)
41internal TableCell Cell { get { return (TableCell)Element; } }
MS\Internal\PtsHost\ContainerParaClient.cs (6)
56MbpInfo mbp = MbpInfo.FromElement(Paragraph.Element, Paragraph.StructuralCache.TextFormatterHost.PixelsPerDip); 114ie = Paragraph.Element as IInputElement; 137if (this.Paragraph.Element as ContentElement == e) 188MbpInfo mbp = MbpInfo.FromElement(Paragraph.Element, Paragraph.StructuralCache.TextFormatterHost.PixelsPerDip); 195Brush backgroundBrush = (Brush)Paragraph.Element.GetValue(TextElement.BackgroundProperty); 268TextElement elementOwner = this.Paragraph.Element as TextElement;
MS\Internal\PtsHost\ContainerParagraph.cs (29)
98int cpCurrent = TextContainerHelper.GetCPFromElement(StructuralCache.TextContainer, Element, ElementEdge.AfterStart); 160ITextPointer textPointer = TextContainerHelper.GetContentStart(StructuralCache.TextContainer, Element); 374TextContainerHelper.GetCPFromElement(StructuralCache.TextContainer, Element, ElementEdge.BeforeStart), LastFormatCch); 381int dcpContent = TextContainerHelper.GetCPFromElement(StructuralCache.TextContainer, Element, ElementEdge.AfterStart); 486uint fswdirSubtrack = PTS.FlowDirectionToFswdir(((FlowDirection)Element.GetValue(FrameworkElement.FlowDirectionProperty))); 508Invariant.Assert(Element is Block || Element is ListItem); 509fskclearIn = PTS.WrapDirectionToFskclear((WrapDirection)Element.GetValue(Block.ClearFloatersProperty)); 515MbpInfo mbp = MbpInfo.FromElement(Element, StructuralCache.TextFormatterHost.PixelsPerDip); 652uint fswdirSubtrack = PTS.FlowDirectionToFswdir(((FlowDirection)Element.GetValue(FrameworkElement.FlowDirectionProperty))); 660MbpInfo mbp = MbpInfo.FromElement(Element, StructuralCache.TextFormatterHost.PixelsPerDip); 668Invariant.Assert(Element is Block || Element is ListItem); 669fskclearIn = PTS.WrapDirectionToFskclear((WrapDirection)Element.GetValue(Block.ClearFloatersProperty)); 782uint fswdirSubtrack = PTS.FlowDirectionToFswdir(((FlowDirection)Element.GetValue(FrameworkElement.FlowDirectionProperty))); 790MbpInfo mbp = MbpInfo.FromElement(Element, StructuralCache.TextFormatterHost.PixelsPerDip); 798Invariant.Assert(Element is Block || Element is ListItem); 799fskclearIn = PTS.WrapDirectionToFskclear((WrapDirection)Element.GetValue(Block.ClearFloatersProperty)); 1040if(!(Element is TextElement) || ((TextElement)Element).ContentStart != textPointer) 1042throw new InvalidOperationException(SR.Format(SR.TextSchema_TextIsNotAllowedInThisContext, Element.GetType().Name)); 1046paragraph = new TextParagraph(Element, StructuralCache); 1052Invariant.Assert(Element == ((TextPointer)textPointer).Parent); 1056paragraph = new TextParagraph(Element, StructuralCache); 1084paragraph = new TextParagraph(Element, StructuralCache); 1097paragraph = new TextParagraph(Element, StructuralCache); 1106paragraph = new TextParagraph(Element, StructuralCache); 1150int cpContent = TextContainerHelper.GetCPFromElement(StructuralCache.TextContainer, Element, ElementEdge.AfterStart);
MS\Internal\PtsHost\EmbeddedObject.cs (1)
118return Para.Element;
MS\Internal\PtsHost\FigureParaClient.cs (10)
76MbpInfo mbp = MbpInfo.FromElement(Paragraph.Element, Paragraph.StructuralCache.TextFormatterHost.PixelsPerDip); 198MbpInfo mbp = MbpInfo.FromElement(Paragraph.Element, Paragraph.StructuralCache.TextFormatterHost.PixelsPerDip); 208_flowDirection = (FlowDirection)Paragraph.Element.GetValue(FrameworkElement.FlowDirectionProperty); 274ie = Paragraph.Element as IInputElement; 292if (Paragraph.Element as ContentElement == e) 358MbpInfo mbp = MbpInfo.FromElement(Paragraph.Element, Paragraph.StructuralCache.TextFormatterHost.PixelsPerDip); 365Brush backgroundBrush = (Brush)Paragraph.Element.GetValue(TextElement.BackgroundProperty); 446ColumnPropertiesGroup columnProperties = new ColumnPropertiesGroup(Paragraph.Element); 539Paragraph.Element as TextElement, ElementEdge.BeforeStart)); 547Paragraph.Element as TextElement, ElementEdge.AfterEnd));
MS\Internal\PtsHost\FigureParagraph.cs (7)
107_mainTextSegment = new ContainerParagraph(Element, StructuralCache); 131uint fswdirPara = PTS.FlowDirectionToFswdir(((FlowDirection)Element.GetValue(FrameworkElement.FlowDirectionProperty))); 141Figure element = (Figure)Element; 147mbp = MbpInfo.FromElement(Element, StructuralCache.TextFormatterHost.PixelsPerDip); 339Figure element = (Figure)Element; 591Figure element = (Figure)Element; 629Figure element = (Figure)Element;
MS\Internal\PtsHost\FloaterParaClient.cs (10)
189MbpInfo mbp = MbpInfo.FromElement(Paragraph.Element, Paragraph.StructuralCache.TextFormatterHost.PixelsPerDip); 196_flowDirection = (FlowDirection)Paragraph.Element.GetValue(FrameworkElement.FlowDirectionProperty); 278ie = Paragraph.Element as IInputElement; 296if (Paragraph.Element as ContentElement == e) 364MbpInfo mbp = MbpInfo.FromElement(Paragraph.Element, Paragraph.StructuralCache.TextFormatterHost.PixelsPerDip); 371Brush backgroundBrush = (Brush)Paragraph.Element.GetValue(TextElement.BackgroundProperty); 452ColumnPropertiesGroup columnProperties = new ColumnPropertiesGroup(Paragraph.Element); 546Paragraph.Element as TextElement, ElementEdge.BeforeStart)); 554Paragraph.Element as TextElement, ElementEdge.AfterEnd)); 809Floater floater = Paragraph.Element as Floater;
MS\Internal\PtsHost\FloaterParagraph.cs (19)
104_mainTextSegment = new ContainerParagraph(Element, StructuralCache); 129fsfloaterprops.fskclear = PTS.WrapDirectionToFskclear((WrapDirection)Element.GetValue(Block.ClearFloatersProperty)); 178uint fswdirPara = PTS.FlowDirectionToFswdir(((FlowDirection)Element.GetValue(FrameworkElement.FlowDirectionProperty))); 229mbp = MbpInfo.FromElement(Element, StructuralCache.TextFormatterHost.PixelsPerDip); 386uint fswdirPara = PTS.FlowDirectionToFswdir(((FlowDirection)Element.GetValue(FrameworkElement.FlowDirectionProperty))); 416mbp = MbpInfo.FromElement(Element, StructuralCache.TextFormatterHost.PixelsPerDip); 657MbpInfo mbp = MbpInfo.FromElement(Element, StructuralCache.TextFormatterHost.PixelsPerDip); 794if(Element is Floater) 796return ((Floater)Element).HorizontalAlignment; 799Figure figure = (Figure) Element; 836if(Element is Floater) 851Figure figure = (Figure) Element; 865if(Element is Floater) 867return (double)((Floater)Element).Width; 873double desiredSize = FigureHelper.CalculateFigureWidth(StructuralCache, (Figure)Element, 874((Figure)Element).Width, 896if(Element is Floater && HorizontalAlignment != HorizontalAlignment.Stretch) 900else if(Element is Figure) 902FigureLength figureLength = ((Figure)Element).Width;
MS\Internal\PtsHost\Line.cs (4)
64_textAlignment = (TextAlignment)TextParagraph.Element.GetValue(Block.TextAlignmentProperty); 130int cpFigure = TextContainerHelper.GetCPFromElement(_paraClient.Paragraph.StructuralCache.TextContainer, paraFigure.Element, ElementEdge.BeforeStart); 221DependencyObject element = (pointer.Parent != null) ? pointer.Parent : _paraClient.Paragraph.Element; 408DependencyObject paragraphElement = _paraClient.Paragraph.Element;
MS\Internal\PtsHost\LineBase.cs (2)
100element = _paraClient.Paragraph.Element; 259if (position.Parent == _paraClient.Paragraph.Element)
MS\Internal\PtsHost\ListParaClient.cs (7)
54MbpInfo mbp = MbpInfo.FromElement(Paragraph.Element, Paragraph.StructuralCache.TextFormatterHost.PixelsPerDip); 60uint fswdir = PTS.FlowDirectionToFswdir((FlowDirection)Paragraph.Element.GetValue(FrameworkElement.FlowDirectionProperty)); 62Brush backgroundBrush = (Brush)Paragraph.Element.GetValue(TextElement.BackgroundProperty); 66TextProperties textProperties = new TextProperties(Paragraph.Element, StaticTextPointer.Null, false /* inline objects */, false /* get background */, 85List list = Paragraph.Element as List; 92indexFirstParaInSubtrack = list.GetListItemIndex(listItemParaClient.Paragraph.Element as ListItem); 113LineProperties lineProps = new LineProperties(Paragraph.Element, Paragraph.StructuralCache.FormattingOwner, textProperties, new MarkerProperties(list, adjustedIndex));
MS\Internal\PtsHost\ListParagraph.cs (1)
120if (Element == ((TextPointer)textPointer).Parent)
MS\Internal\PtsHost\OptimalTextSource.cs (1)
171DependencyObject element = (pointer.Parent != null) ? pointer.Parent : _paraClient.Paragraph.Element;
MS\Internal\PtsHost\PtsHost.cs (2)
2528if (((BlockUIContainer)paraClient.Paragraph.Element).Child != null) 2531UIElement uiElement = ((BlockUIContainer)paraClient.Paragraph.Element).Child;
MS\Internal\PtsHost\RowParagraph.cs (1)
363internal TableRow Row { get { return (TableRow)Element; } }
MS\Internal\PtsHost\SubpageParaClient.cs (7)
76MbpInfo mbp = MbpInfo.FromElement(Paragraph.Element, Paragraph.StructuralCache.TextFormatterHost.PixelsPerDip); 210ie = Paragraph.Element as IInputElement; 227if (Paragraph.Element as ContentElement == e) 291MbpInfo mbpInfo = MbpInfo.FromElement(Paragraph.Element, Paragraph.StructuralCache.TextFormatterHost.PixelsPerDip); 298Brush backgroundBrush = (Brush)Paragraph.Element.GetValue(TextElement.BackgroundProperty); 379ColumnPropertiesGroup columnProperties = new ColumnPropertiesGroup(Paragraph.Element); 513TextElement elementOwner = this.Paragraph.Element as TextElement;
MS\Internal\PtsHost\SubpageParagraph.cs (15)
134uint fswdirSubpage = PTS.FlowDirectionToFswdir(((FlowDirection)Element.GetValue(FrameworkElement.FlowDirectionProperty))); 164Invariant.Assert(Element is TableCell || Element is AnchoredBlock); 165fskclearIn = PTS.WrapDirectionToFskclear((WrapDirection)Element.GetValue(Block.ClearFloatersProperty)); 173mbp = MbpInfo.FromElement(Element, StructuralCache.TextFormatterHost.PixelsPerDip); 341uint fswdirSubpage = PTS.FlowDirectionToFswdir(((FlowDirection)Element.GetValue(FrameworkElement.FlowDirectionProperty))); 349Invariant.Assert(Element is TableCell || Element is AnchoredBlock); 350fskclearIn = PTS.WrapDirectionToFskclear((WrapDirection)Element.GetValue(Block.ClearFloatersProperty)); 355mbp = MbpInfo.FromElement(Element, StructuralCache.TextFormatterHost.PixelsPerDip); 502uint fswdirSubpage = PTS.FlowDirectionToFswdir(((FlowDirection)Element.GetValue(FrameworkElement.FlowDirectionProperty))); 509Invariant.Assert(Element is TableCell || Element is AnchoredBlock); 510fskclearIn = PTS.WrapDirectionToFskclear((WrapDirection)Element.GetValue(Block.ClearFloatersProperty)); 515mbp = MbpInfo.FromElement(Element, StructuralCache.TextFormatterHost.PixelsPerDip);
MS\Internal\PtsHost\TableParaClient.cs (9)
92MbpInfo mbp = MbpInfo.FromElement(TableParagraph.Element, TableParagraph.StructuralCache.TextFormatterHost.PixelsPerDip); 198MbpInfo mbpInfo = MbpInfo.FromElement(TableParagraph.Element, TableParagraph.StructuralCache.TextFormatterHost.PixelsPerDip); 227Brush backgroundBrush = (Brush)Paragraph.Element.GetValue(TextElement.BackgroundProperty); 522TextElement elementOwner = this.Paragraph.Element as TextElement; 686MbpInfo mbpInfo = MbpInfo.FromElement(TableParagraph.Element, TableParagraph.StructuralCache.TextFormatterHost.PixelsPerDip); 961MbpInfo mbp = MbpInfo.FromElement(TableParagraph.Element, TableParagraph.StructuralCache.TextFormatterHost.PixelsPerDip); 1987MbpInfo mbpInfo = MbpInfo.FromElement(Paragraph.Element, Paragraph.StructuralCache.TextFormatterHost.PixelsPerDip); 2020MbpInfo mbpInfo = MbpInfo.FromElement(Paragraph.Element, Paragraph.StructuralCache.TextFormatterHost.PixelsPerDip); 2436MbpInfo mbp = MbpInfo.FromElement(TableParagraph.Element, TableParagraph.StructuralCache.TextFormatterHost.PixelsPerDip);
MS\Internal\PtsHost\TableParagraph.cs (2)
171fstableobjprops.fswdirTable = PTS.FlowDirectionToFswdir((FlowDirection)Element.GetValue(FrameworkElement.FlowDirectionProperty)); 498return (Table)Element;
MS\Internal\PtsHost\TextParaClient.cs (4)
242ie = Paragraph.Element as IInputElement; 257Debug.Assert(Paragraph.Element as ContentElement != e); 1889endOfParaGlyphWidth = ((double)TextParagraph.Element.GetValue(TextElement.FontSizeProperty) * CaretElement.c_endOfParaMagicMultiplier); 1999endOfParaGlyphWidth = ((double)TextParagraph.Element.GetValue(TextElement.FontSizeProperty) * CaretElement.c_endOfParaMagicMultiplier);
MS\Internal\PtsHost\TextParagraph.cs (12)
158fstxtprops.fswdir = PTS.FlowDirectionToFswdir((FlowDirection)Element.GetValue(FrameworkElement.FlowDirectionProperty)); 160fstxtprops.fKeepTogether = PTS.FromBoolean(DynamicPropertyReader.GetKeepTogether(Element)); 161fstxtprops.cMinLinesAfterBreak = DynamicPropertyReader.GetMinOrphanLines(Element); 162fstxtprops.cMinLinesBeforeBreak = DynamicPropertyReader.GetMinWidowLines(Element); 219isParagraphJustified = ((TextAlignment)Element.GetValue(Block.TextAlignmentProperty)) == TextAlignment.Justify; 886ITextPointer textPointerContentStart = TextContainerHelper.GetContentStart(StructuralCache.TextContainer, Element); 908ITextPointer textPointerContentStart = TextContainerHelper.GetContentStart(StructuralCache.TextContainer, Element); 961ITextPointer textPointerContentStart = TextContainerHelper.GetContentStart(StructuralCache.TextContainer, Element); 1522TextProperties defaultTextProperties = new TextProperties(Element, StaticTextPointer.Null, false /* inline objects */, false /* get background */, 1525_lineProperties = new LineProperties(Element, StructuralCache.FormattingOwner, defaultTextProperties, null); // No marker properties 1527bool isHyphenationEnabled = (bool) Element.GetValue(Block.IsHyphenationEnabledProperty); 1738int cpElement = TextContainerHelper.GetCPFromElement(StructuralCache.TextContainer, Element, ElementEdge.AfterStart);
MS\Internal\PtsHost\UIElementParaClient.cs (8)
69MbpInfo mbp = MbpInfo.FromElement(Paragraph.Element, Paragraph.StructuralCache.TextFormatterHost.PixelsPerDip); 91if (Paragraph.Element == e) 105MbpInfo mbp = MbpInfo.FromElement(Paragraph.Element, Paragraph.StructuralCache.TextFormatterHost.PixelsPerDip); 137Brush backgroundBrush = (Brush)Paragraph.Element.GetValue(TextElement.BackgroundProperty); 146if (startPosition.CompareTo(((BlockUIContainer)Paragraph.Element).ContentEnd) < 0 && 147endPosition.CompareTo(((BlockUIContainer)Paragraph.Element).ContentStart) > 0) 171return Paragraph.Element as IInputElement; 181BlockUIContainer elementOwner = (BlockUIContainer)Paragraph.Element;
MS\Internal\PtsHost\UIElementParagraph.cs (15)
120MbpInfo mbp = MbpInfo.FromElement(Element, StructuralCache.TextFormatterHost.PixelsPerDip); 152fsfloaterprops.fskclear = PTS.WrapDirectionToFskclear((WrapDirection)Element.GetValue(Block.ClearFloatersProperty)); 188Invariant.Assert(Element is BlockUIContainer); 211if (((BlockUIContainer)Element).Child != null) 221MbpInfo mbp = MbpInfo.FromElement(Element, StructuralCache.TextFormatterHost.PixelsPerDip); 279Invariant.Assert(Element is BlockUIContainer); 298if (((BlockUIContainer)Element).Child != null) 314MbpInfo mbp = MbpInfo.FromElement(Element, StructuralCache.TextFormatterHost.PixelsPerDip); 361MbpInfo mbp = MbpInfo.FromElement(Element, StructuralCache.TextFormatterHost.PixelsPerDip); 388MbpInfo mbp = MbpInfo.FromElement(Element, StructuralCache.TextFormatterHost.PixelsPerDip); 402Figure figure = (Figure) ((BlockUIContainer)Element).Parent; 453_uiElementIsland = new UIElementIsland(((BlockUIContainer)Element).Child); 520Figure figure = (Figure)((BlockUIContainer)Element).Parent; 540DependencyObject parent = ((BlockUIContainer)Element).Parent; 545figure.Blocks.FirstChild == Element)