7 references to IsValidChild
PresentationFramework (7)
System\Windows\Documents\Span.cs (1)
154Invariant.Assert(TextSchema.IsValidChild(/*position*/start, /*childType*/typeof(Span)));
System\Windows\Documents\TextPointer.cs (1)
3568Invariant.Assert(TextSchema.IsValidChild(position, /*childType*/inline.GetType()));
System\Windows\Documents\TextRangeEdit.cs (2)
680if (!TextSchema.IsValidChild(/*position*/position, /*childType*/typeof(LineBreak))) 692Invariant.Assert(TextSchema.IsValidChild(/*position*/position, /*childType*/typeof(LineBreak)),
System\Windows\Documents\TextRangeEditTables.cs (2)
872if (TextSchema.IsValidChild(/*position:*/position, /*childType:*/typeof(Inline))) 878Invariant.Assert(TextSchema.IsValidChild(/*position:*/position, /*childType:*/typeof(Block)), "Expecting valid parent-child relationship");
System\Windows\Documents\ValidationHelper.cs (1)
106if (!TextSchema.IsValidChild(/*position:*/position, /*childType:*/child.GetType()))