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