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