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