20 references to Parent
PresentationFramework (20)
src\Framework\System\Windows\Documents\InlineCollection.cs (8)
162if (this.Parent is TextElement) 164TextSchema.ValidateChild((TextElement)this.Parent, child, true /* throwIfIllegalChild */, true /* throwIfIllegalHyperlinkDescendent */); 168if (!TextSchema.IsValidChildOfContainer(this.Parent.GetType(), child.GetType())) 170throw new InvalidOperationException(SR.Get(SRID.TextSchema_ChildTypeIsInvalid, this.Parent.GetType().Name, child.GetType().Name)); 197if (this.Parent is TextBlock) 199TextBlock textBlock = (TextBlock)this.Parent; 210Run implicitRun = Run.CreateImplicitRun(this.Parent); 247InlineUIContainer implicitInlineUIContainer = Run.CreateImplicitInlineUIContainer(this.Parent);
src\Framework\System\Windows\Documents\TextElementCollection.cs (12)
209if (item.Parent != this.Parent) 258if (previousSibling.Parent != this.Parent) 303if (nextSibling.Parent != this.Parent) 751if (this.Parent is TextElement) 753firstChild = (TextElementType)((TextElement)this.Parent).FirstChildElement; 774if (this.Parent is TextElement) 776lastChild = (TextElementType)((TextElement)this.Parent).LastChildElement; 904TextElementCollectionHelper.MarkClean(this.Parent, this); 997this.Parent is TextElement ? ((TextElement)this.Parent).ContentStart : this.TextContainer.Start; 1008this.Parent is TextElement ? ((TextElement)this.Parent).ContentEnd : this.TextContainer.End;