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