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