5 references to IsValidChildOfContainer
PresentationFramework (5)
System\Windows\Controls\TextBlock.cs (1)
140
if (!TextSchema.
IsValidChildOfContainer
(parentType, /*childType*/valueType))
System\Windows\Documents\FlowDocument.cs (1)
1640
if (!TextSchema.
IsValidChildOfContainer
(/*parentType:*/_typeofThis, /*childType:*/value.GetType()))
System\Windows\Documents\InlineCollection.cs (1)
166
if (!TextSchema.
IsValidChildOfContainer
(this.Parent.GetType(), child.GetType()))
System\Windows\Documents\TextPointer.cs (1)
1421
if (!TextSchema.
IsValidChildOfContainer
(containerType, typeof(Paragraph)))
System\Windows\Documents\TextRangeEdit.cs (1)
592
Invariant.Assert(position.TextContainer.Parent == null || TextSchema.
IsValidChildOfContainer
(position.TextContainer.Parent.GetType(), typeof(Paragraph)));