19 references to Parent
PresentationFramework (19)
System\Windows\Documents\InlineCollection.cs (7)
160if (this.Parent is TextElement) 162TextSchema.ValidateChild((TextElement)this.Parent, child, true /* throwIfIllegalChild */, true /* throwIfIllegalHyperlinkDescendent */); 166if (!TextSchema.IsValidChildOfContainer(this.Parent.GetType(), child.GetType())) 168throw new InvalidOperationException(SR.Format(SR.TextSchema_ChildTypeIsInvalid, this.Parent.GetType().Name, child.GetType().Name)); 192if (this.Parent is TextBlock textBlock) 204Run implicitRun = Run.CreateImplicitRun(this.Parent); 237InlineUIContainer implicitInlineUIContainer = Run.CreateImplicitInlineUIContainer(this.Parent);
System\Windows\Documents\TextElementCollection.cs (12)
204if (item.Parent != this.Parent) 247if (previousSibling.Parent != this.Parent) 286if (nextSibling.Parent != this.Parent) 716if (this.Parent is TextElement) 718firstChild = (TextElementType)((TextElement)this.Parent).FirstChildElement; 739if (this.Parent is TextElement) 741lastChild = (TextElementType)((TextElement)this.Parent).LastChildElement; 869TextElementCollectionHelper.MarkClean(this.Parent, this); 962this.Parent is TextElement ? ((TextElement)this.Parent).ContentStart : this.TextContainer.Start; 973this.Parent is TextElement ? ((TextElement)this.Parent).ContentEnd : this.TextContainer.End;