7 references to IsValidChild
PresentationFramework (7)
src\Framework\System\Windows\Documents\Span.cs (1)
161
Invariant.Assert(TextSchema.
IsValidChild
(/*position*/start, /*childType*/typeof(Span)));
src\Framework\System\Windows\Documents\TextPointer.cs (1)
3599
Invariant.Assert(TextSchema.
IsValidChild
(position, /*childType*/inline.GetType()));
src\Framework\System\Windows\Documents\TextRangeEdit.cs (2)
684
if (!TextSchema.
IsValidChild
(/*position*/position, /*childType*/typeof(LineBreak)))
696
Invariant.Assert(TextSchema.
IsValidChild
(/*position*/position, /*childType*/typeof(LineBreak)),
src\Framework\System\Windows\Documents\TextRangeEditTables.cs (2)
877
if (TextSchema.
IsValidChild
(/*position:*/position, /*childType:*/typeof(Inline)))
883
Invariant.Assert(TextSchema.
IsValidChild
(/*position:*/position, /*childType:*/typeof(Block)), "Expecting valid parent-child relationship");
src\Framework\System\Windows\Documents\ValidationHelper.cs (1)
116
if (!TextSchema.
IsValidChild
(/*position:*/position, /*childType:*/child.GetType()))