5 references to IsValidChildOfContainer
PresentationFramework (5)
System\Windows\Controls\TextBlock.cs (1)
150
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)
167
if (!TextSchema.
IsValidChildOfContainer
(this.Parent.GetType(), child.GetType()))
System\Windows\Documents\TextPointer.cs (1)
1426
if (!TextSchema.
IsValidChildOfContainer
(containerType, typeof(Paragraph)))
System\Windows\Documents\TextRangeEdit.cs (1)
594
Invariant.Assert(position.TextContainer.Parent == null || TextSchema.
IsValidChildOfContainer
(position.TextContainer.Parent.GetType(), typeof(Paragraph)));