7 references to IsValidChild
PresentationFramework (7)
System\Windows\Documents\Span.cs (1)
155
Invariant.Assert(TextSchema.
IsValidChild
(/*position*/start, /*childType*/typeof(Span)));
System\Windows\Documents\TextPointer.cs (1)
3573
Invariant.Assert(TextSchema.
IsValidChild
(position, /*childType*/inline.GetType()));
System\Windows\Documents\TextRangeEdit.cs (2)
682
if (!TextSchema.
IsValidChild
(/*position*/position, /*childType*/typeof(LineBreak)))
694
Invariant.Assert(TextSchema.
IsValidChild
(/*position*/position, /*childType*/typeof(LineBreak)),
System\Windows\Documents\TextRangeEditTables.cs (2)
874
if (TextSchema.
IsValidChild
(/*position:*/position, /*childType:*/typeof(Inline)))
880
Invariant.Assert(TextSchema.
IsValidChild
(/*position:*/position, /*childType:*/typeof(Block)), "Expecting valid parent-child relationship");
System\Windows\Documents\ValidationHelper.cs (1)
108
if (!TextSchema.
IsValidChild
(/*position:*/position, /*childType:*/child.GetType()))