5 implementations of ParentType
PresentationFramework (5)
src\Framework\System\Windows\Controls\PasswordTextNavigator.cs (1)
608
Type ITextPointer.
ParentType
src\Framework\System\Windows\Documents\DocumentSequenceTextPointer.cs (1)
335
Type ITextPointer.
ParentType
src\Framework\System\Windows\Documents\FixedTextPointer.cs (1)
553
Type ITextPointer.
ParentType
src\Framework\System\Windows\Documents\NullTextNavigator.cs (1)
413
Type ITextPointer.
ParentType
src\Framework\System\Windows\Documents\TextPointer.cs (1)
3640
Type ITextPointer.
ParentType
78 references to ParentType
PresentationFramework (78)
src\Framework\MS\Internal\Annotations\Component\AnnotationHighlightLayer.cs (1)
1044
Type elementType = cursor.
ParentType
;
src\Framework\MS\Internal\Annotations\Component\MArkedHighlightComponent.cs (1)
825
!TextSchema.IsFormattingType(pointer.
ParentType
))
src\Framework\MS\Internal\Documents\TextContainerHelper.cs (3)
406
while (typeof(TextElement).IsAssignableFrom(position.
ParentType
))
449
while (typeof(TextElement).IsAssignableFrom(position.
ParentType
))
465
while (typeof(TextElement).IsAssignableFrom(position.
ParentType
))
src\Framework\System\Windows\Documents\DocumentSequenceTextPointer.cs (3)
722
return thisTp.ChildPointer.
ParentType
;
737
return thisTp.ChildPointer.
ParentType
== typeof(FixedDocument) && tp.ChildPointer.
ParentType
== typeof(FixedDocument);
src\Framework\System\Windows\Documents\FixedTextPointer.cs (1)
551
/// <see cref="ITextPointer.
ParentType
"/>
src\Framework\System\Windows\Documents\NullTextNavigator.cs (1)
411
/// <see cref="ITextPointer.
ParentType
"/>
src\Framework\System\Windows\Documents\Paragraph.cs (2)
263
typeof(LineBreak).IsAssignableFrom(navigator.
ParentType
) ||
264
typeof(AnchoredBlock).IsAssignableFrom(navigator.
ParentType
))
src\Framework\System\Windows\Documents\Speller.cs (7)
915
"Start offset = " + start.Offset + " parent = " + start.
ParentType
.Name + "\n" +
916
"ContextStart offset = " + contextStart.Offset + " parent = " + contextStart.
ParentType
.Name + "\n" +
917
"ContentStart offset = " + contentStart.Offset + " parent = " + contentStart.
ParentType
.Name + "\n" +
918
"ContentEnd offset = " + contentEnd.Offset + " parent = " + contentEnd.
ParentType
.Name + "\n" +
919
"ContextEnd offset = " + contextEnd.Offset + " parent = " + contextEnd.
ParentType
.Name + "\n" +
920
"Timeout offset = " + status.TimeoutPosition.Offset + " parent = " + status.TimeoutPosition.
ParentType
.Name + "\n" +
1943
TextSchema.IsFormattingType(pointer.
ParentType
))
src\Framework\System\windows\Documents\TextEditor.cs (1)
1544
cursorPosition.
ParentType
!= null) //
src\Framework\System\windows\Documents\TextEditorMouse.cs (1)
578
snappedCursorPosition.
ParentType
!= null) //
src\Framework\System\windows\Documents\TextEditorSelection.cs (3)
131
if (!typeof(BlockUIContainer).IsAssignableFrom(position.
ParentType
))
2048
while (TextSchema.IsFormattingType(position.
ParentType
))
2451
while (typeof(Inline).IsAssignableFrom(navigator.
ParentType
))
src\Framework\System\windows\Documents\TextEditorSpelling.cs (1)
211
if (typeof(Run).IsAssignableFrom(textStart.
ParentType
) &&
src\Framework\System\windows\Documents\TextEditorTyping.cs (6)
835
if (typeof(ListItem).IsAssignableFrom(position.
ParentType
) &&
844
Type parentType = position.
ParentType
;
851
typeof(ListItem).IsAssignableFrom(position.
ParentType
))
884
typeof(Inline).IsAssignableFrom(navigator.
ParentType
))
891
TextSchema.IsParagraphOrBlockUIContainer(navigator.
ParentType
)))
898
return typeof(ListItem).IsAssignableFrom(navigator.
ParentType
);
src\Framework\System\Windows\Documents\TextFindEngine.cs (2)
924
TextSchema.IsFormattingType(pointer.
ParentType
))
939
TextSchema.IsFormattingType(pointer.
ParentType
))
src\Framework\System\Windows\Documents\TextPointerBase.cs (11)
231
Type parentType = position.
ParentType
;
268
return (typeof(BlockUIContainer).IsAssignableFrom(position.
ParentType
));
287
Type parentType = navigator.
ParentType
;
296
parentType = navigator.
ParentType
;
347
else if (navigator.
ParentType
== typeof(InlineUIContainer) || navigator.
ParentType
== typeof(BlockUIContainer))
718
return typeof(TableRow).IsAssignableFrom(thisPosition.
ParentType
) &&
748
if (TextSchema.IsParagraphOrBlockUIContainer(pointer.
ParentType
))
1293
while (TextSchema.IsMergeableInline(thisNavigator.
ParentType
))
1500
!typeof(Inline).IsAssignableFrom(position.
ParentType
))
1504
else if (TextSchema.IsMergeableInline(position.
ParentType
))
src\Framework\System\Windows\Documents\TextRangeBase.cs (8)
371
!typeof(Inline).IsAssignableFrom(navigator.
ParentType
))
485
while (!typeof(Paragraph).IsAssignableFrom(position.
ParentType
) &&
492
if (typeof(Paragraph).IsAssignableFrom(position.
ParentType
))
534
while (typeof(Inline).IsAssignableFrom(startNavigator.
ParentType
))
538
while (typeof(Inline).IsAssignableFrom(endNavigator.
ParentType
))
699
elementType = navigator.
ParentType
;
782
typeof(TableCell).IsAssignableFrom(navigator.
ParentType
))
1266
!typeof(AnchoredBlock).IsAssignableFrom(start.
ParentType
))
src\Framework\System\Windows\Documents\TextRangeSerialization.cs (24)
204
if (elementLevel == EmptyDocumentDepth && typeof(Run).IsAssignableFrom(rangeStart.
ParentType
))
301
if (TextSchema.IsBreak(textReader.
ParentType
))
366
while (!typeof(TableRow).IsAssignableFrom(pointer.
ParentType
))
368
Invariant.Assert(typeof(TextElement).IsAssignableFrom(pointer.
ParentType
), "pointer must be still in a scope of TextElement");
371
Invariant.Assert(typeof(TableRow).IsAssignableFrom(pointer.
ParentType
), "pointer must be in a scope of TableRow");
437
Invariant.Assert(typeof(TextElement).IsAssignableFrom(thisElement.
ParentType
), "thisElement is expected to be a TextElement");
453
if (thisElement.
ParentType
== typeof(Hyperlink))
471
TextElementEditingBehaviorAttribute att = (TextElementEditingBehaviorAttribute)Attribute.GetCustomAttribute(thisElement.
ParentType
, typeof(TextElementEditingBehaviorAttribute));
549
Type elementType = textReader.
ParentType
;
670
Type contextType = context.
ParentType
;
851
Type propertyOwnerType = context.
ParentType
;
881
&& typeof(Inline).IsAssignableFrom(parentContext.
ParentType
))
885
propertyOwnerType = parentContext.
ParentType
;
1703
while (typeof(TextElement).IsAssignableFrom(runningEnd.
ParentType
) && !runningEnd.HasEqualScope(commonAncestor))
1722
if (typeof(TextElement).IsAssignableFrom(commonAncestor.
ParentType
))
1747
if (typeof(TableRow).IsAssignableFrom(commonAncestor.
ParentType
) ||
1748
typeof(TableRowGroup).IsAssignableFrom(commonAncestor.
ParentType
) ||
1749
typeof(Table).IsAssignableFrom(commonAncestor.
ParentType
) ||
1750
typeof(BlockUIContainer).IsAssignableFrom(commonAncestor.
ParentType
) ||
1751
typeof(List).IsAssignableFrom(commonAncestor.
ParentType
) ||
1752
typeof(Inline).IsAssignableFrom(commonAncestor.
ParentType
) && TextSchema.HasTextDecorations(commonAncestor.GetValue(Inline.TextDecorationsProperty)))
1762
while (typeof(TextElement).IsAssignableFrom(navigator.
ParentType
))
1764
TextElementEditingBehaviorAttribute behaviorAttribute = (TextElementEditingBehaviorAttribute)Attribute.GetCustomAttribute(navigator.
ParentType
, typeof(TextElementEditingBehaviorAttribute));
1950
!typeof(Hyperlink).IsAssignableFrom(hyperlinkStart.
ParentType
))
src\Framework\System\Windows\Documents\TextSchema.cs (2)
222
if (typeof(TextElement).IsAssignableFrom(position.
ParentType
) &&
232
return IsValidChild(position.
ParentType
, childType);