5 references to IsValidChildOfContainer
PresentationFramework (5)
src\Framework\System\Windows\Controls\TextBlock.cs (1)
159if (!TextSchema.IsValidChildOfContainer(parentType, /*childType*/valueType))
src\Framework\System\Windows\Documents\FlowDocument.cs (1)
1652if (!TextSchema.IsValidChildOfContainer(/*parentType:*/_typeofThis, /*childType:*/value.GetType()))
src\Framework\System\Windows\Documents\InlineCollection.cs (1)
168if (!TextSchema.IsValidChildOfContainer(this.Parent.GetType(), child.GetType()))
src\Framework\System\Windows\Documents\TextPointer.cs (1)
1440if (!TextSchema.IsValidChildOfContainer(containerType, typeof(Paragraph)))
src\Framework\System\Windows\Documents\TextRangeEdit.cs (1)
596Invariant.Assert(position.TextContainer.Parent == null || TextSchema.IsValidChildOfContainer(position.TextContainer.Parent.GetType(), typeof(Paragraph)));