19 references to Parent
PresentationFramework (19)
System\Windows\Documents\InlineCollection.cs (7)
159if (this.Parent is TextElement) 161TextSchema.ValidateChild((TextElement)this.Parent, child, true /* throwIfIllegalChild */, true /* throwIfIllegalHyperlinkDescendent */); 165if (!TextSchema.IsValidChildOfContainer(this.Parent.GetType(), child.GetType())) 167throw new InvalidOperationException(SR.Format(SR.TextSchema_ChildTypeIsInvalid, this.Parent.GetType().Name, child.GetType().Name)); 191if (this.Parent is TextBlock textBlock) 203Run implicitRun = Run.CreateImplicitRun(this.Parent); 236InlineUIContainer implicitInlineUIContainer = Run.CreateImplicitInlineUIContainer(this.Parent);
System\Windows\Documents\TextElementCollection.cs (12)
203if (item.Parent != this.Parent) 246if (previousSibling.Parent != this.Parent) 285if (nextSibling.Parent != this.Parent) 715if (this.Parent is TextElement) 717firstChild = (TextElementType)((TextElement)this.Parent).FirstChildElement; 738if (this.Parent is TextElement) 740lastChild = (TextElementType)((TextElement)this.Parent).LastChildElement; 868TextElementCollectionHelper.MarkClean(this.Parent, this); 961this.Parent is TextElement ? ((TextElement)this.Parent).ContentStart : this.TextContainer.Start; 972this.Parent is TextElement ? ((TextElement)this.Parent).ContentEnd : this.TextContainer.End;