20 references to Parent
PresentationFramework (20)
System\Windows\Documents\InlineCollection.cs (8)
161if (this.Parent is TextElement) 163TextSchema.ValidateChild((TextElement)this.Parent, child, true /* throwIfIllegalChild */, true /* throwIfIllegalHyperlinkDescendent */); 167if (!TextSchema.IsValidChildOfContainer(this.Parent.GetType(), child.GetType())) 169throw new InvalidOperationException(SR.Format(SR.TextSchema_ChildTypeIsInvalid, this.Parent.GetType().Name, child.GetType().Name)); 193if (this.Parent is TextBlock) 195TextBlock textBlock = (TextBlock)this.Parent; 206Run implicitRun = Run.CreateImplicitRun(this.Parent); 239InlineUIContainer implicitInlineUIContainer = Run.CreateImplicitInlineUIContainer(this.Parent);
System\Windows\Documents\TextElementCollection.cs (12)
206if (item.Parent != this.Parent) 249if (previousSibling.Parent != this.Parent) 288if (nextSibling.Parent != this.Parent) 718if (this.Parent is TextElement) 720firstChild = (TextElementType)((TextElement)this.Parent).FirstChildElement; 741if (this.Parent is TextElement) 743lastChild = (TextElementType)((TextElement)this.Parent).LastChildElement; 871TextElementCollectionHelper.MarkClean(this.Parent, this); 964this.Parent is TextElement ? ((TextElement)this.Parent).ContentStart : this.TextContainer.Start; 975this.Parent is TextElement ? ((TextElement)this.Parent).ContentEnd : this.TextContainer.End;