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