20 references to Parent
PresentationFramework (20)
System\Windows\Documents\InlineCollection.cs (8)
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) 194TextBlock textBlock = (TextBlock)this.Parent; 205Run implicitRun = Run.CreateImplicitRun(this.Parent); 238InlineUIContainer 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;