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