20 references to Parent
PresentationFramework (20)
System\Windows\Documents\InlineCollection.cs (8)
160
if (this.
Parent
is TextElement)
162
TextSchema.ValidateChild((TextElement)this.
Parent
, child, true /* throwIfIllegalChild */, true /* throwIfIllegalHyperlinkDescendent */);
166
if (!TextSchema.IsValidChildOfContainer(this.
Parent
.GetType(), child.GetType()))
168
throw new InvalidOperationException(SR.Format(SR.TextSchema_ChildTypeIsInvalid, this.
Parent
.GetType().Name, child.GetType().Name));
192
if (this.
Parent
is TextBlock)
194
TextBlock textBlock = (TextBlock)this.
Parent
;
205
Run implicitRun = Run.CreateImplicitRun(this.
Parent
);
238
InlineUIContainer implicitInlineUIContainer = Run.CreateImplicitInlineUIContainer(this.
Parent
);
System\Windows\Documents\TextElementCollection.cs (12)
204
if (item.Parent != this.
Parent
)
247
if (previousSibling.Parent != this.
Parent
)
286
if (nextSibling.Parent != this.
Parent
)
716
if (this.
Parent
is TextElement)
718
firstChild = (TextElementType)((TextElement)this.
Parent
).FirstChildElement;
739
if (this.
Parent
is TextElement)
741
lastChild = (TextElementType)((TextElement)this.
Parent
).LastChildElement;
869
TextElementCollectionHelper.MarkClean(this.
Parent
, this);
962
this.
Parent
is TextElement ? ((TextElement)this.
Parent
).ContentStart : this.TextContainer.Start;
973
this.
Parent
is TextElement ? ((TextElement)this.
Parent
).ContentEnd : this.TextContainer.End;