5 implementations of ParentType
PresentationFramework (5)
System\Windows\Controls\PasswordTextNavigator.cs (1)
601
Type ITextPointer.
ParentType
System\Windows\Documents\DocumentSequenceTextPointer.cs (1)
322
Type ITextPointer.
ParentType
System\Windows\Documents\FixedTextPointer.cs (1)
527
Type ITextPointer.
ParentType
System\Windows\Documents\NullTextNavigator.cs (1)
405
Type ITextPointer.
ParentType
System\Windows\Documents\TextPointer.cs (1)
3608
Type ITextPointer.
ParentType
78 references to ParentType
PresentationFramework (78)
MS\Internal\Annotations\Component\AnnotationHighlightLayer.cs (1)
1014
Type elementType = cursor.
ParentType
;
MS\Internal\Annotations\Component\MarkedHighlightComponent.cs (1)
800
!TextSchema.IsFormattingType(pointer.
ParentType
))
MS\Internal\Documents\TextContainerHelper.cs (3)
397
while (typeof(TextElement).IsAssignableFrom(position.
ParentType
))
440
while (typeof(TextElement).IsAssignableFrom(position.
ParentType
))
456
while (typeof(TextElement).IsAssignableFrom(position.
ParentType
))
System\Windows\Documents\DocumentSequenceTextPointer.cs (3)
705
return thisTp.ChildPointer.
ParentType
;
720
return thisTp.ChildPointer.
ParentType
== typeof(FixedDocument) && tp.ChildPointer.
ParentType
== typeof(FixedDocument);
System\Windows\Documents\FixedTextPointer.cs (1)
525
/// <see cref="ITextPointer.
ParentType
"/>
System\Windows\Documents\NullTextNavigator.cs (1)
403
/// <see cref="ITextPointer.
ParentType
"/>
System\Windows\Documents\Paragraph.cs (2)
255
typeof(LineBreak).IsAssignableFrom(navigator.
ParentType
) ||
256
typeof(AnchoredBlock).IsAssignableFrom(navigator.
ParentType
))
System\Windows\Documents\Speller.cs (7)
837
Start offset = {start.Offset} parent = {start.
ParentType
.Name}
838
ContextStart offset = {contextStart.Offset} parent = {contextStart.
ParentType
.Name}
839
ContentStart offset = {contentStart.Offset} parent = {contentStart.
ParentType
.Name}
840
ContentEnd offset = {contentEnd.Offset} parent = {contentEnd.
ParentType
.Name}
841
ContextEnd offset = {contextEnd.Offset} parent = {contextEnd.
ParentType
.Name}
842
Timeout offset = {status.TimeoutPosition.Offset} parent = {status.TimeoutPosition.
ParentType
.Name}
1807
TextSchema.IsFormattingType(pointer.
ParentType
))
System\windows\Documents\TextEditor.cs (1)
1497
cursorPosition.
ParentType
!= null) // This check is a work around of bug that Parent can be null for some text boxes.
System\windows\Documents\TextEditorMouse.cs (1)
558
snappedCursorPosition.
ParentType
!= null) // This check is a work around of bug that Parent can be null for some text boxes.
System\windows\Documents\TextEditorSelection.cs (3)
107
if (!typeof(BlockUIContainer).IsAssignableFrom(position.
ParentType
))
2023
while (TextSchema.IsFormattingType(position.
ParentType
))
2426
while (typeof(Inline).IsAssignableFrom(navigator.
ParentType
))
System\windows\Documents\TextEditorSpelling.cs (1)
207
if (typeof(Run).IsAssignableFrom(textStart.
ParentType
) &&
System\windows\Documents\TextEditorTyping.cs (6)
799
if (typeof(ListItem).IsAssignableFrom(position.
ParentType
) &&
808
Type parentType = position.
ParentType
;
815
typeof(ListItem).IsAssignableFrom(position.
ParentType
))
848
typeof(Inline).IsAssignableFrom(navigator.
ParentType
))
855
TextSchema.IsParagraphOrBlockUIContainer(navigator.
ParentType
)))
862
return typeof(ListItem).IsAssignableFrom(navigator.
ParentType
);
System\Windows\Documents\TextFindEngine.cs (2)
903
TextSchema.IsFormattingType(pointer.
ParentType
))
918
TextSchema.IsFormattingType(pointer.
ParentType
))
System\Windows\Documents\TextPointerBase.cs (11)
226
Type parentType = position.
ParentType
;
263
return (typeof(BlockUIContainer).IsAssignableFrom(position.
ParentType
));
282
Type parentType = navigator.
ParentType
;
291
parentType = navigator.
ParentType
;
342
else if (navigator.
ParentType
== typeof(InlineUIContainer) || navigator.
ParentType
== typeof(BlockUIContainer))
710
return typeof(TableRow).IsAssignableFrom(thisPosition.
ParentType
) &&
740
if (TextSchema.IsParagraphOrBlockUIContainer(pointer.
ParentType
))
1285
while (TextSchema.IsMergeableInline(thisNavigator.
ParentType
))
1492
!typeof(Inline).IsAssignableFrom(position.
ParentType
))
1496
else if (TextSchema.IsMergeableInline(position.
ParentType
))
System\Windows\Documents\TextRangeBase.cs (8)
356
!typeof(Inline).IsAssignableFrom(navigator.
ParentType
))
470
while (!typeof(Paragraph).IsAssignableFrom(position.
ParentType
) &&
477
if (typeof(Paragraph).IsAssignableFrom(position.
ParentType
))
519
while (typeof(Inline).IsAssignableFrom(startNavigator.
ParentType
))
523
while (typeof(Inline).IsAssignableFrom(endNavigator.
ParentType
))
684
elementType = navigator.
ParentType
;
767
typeof(TableCell).IsAssignableFrom(navigator.
ParentType
))
1251
!typeof(AnchoredBlock).IsAssignableFrom(start.
ParentType
))
System\Windows\Documents\TextRangeSerialization.cs (24)
191
if (elementLevel == EmptyDocumentDepth && typeof(Run).IsAssignableFrom(rangeStart.
ParentType
))
288
if (TextSchema.IsBreak(textReader.
ParentType
))
353
while (!typeof(TableRow).IsAssignableFrom(pointer.
ParentType
))
355
Invariant.Assert(typeof(TextElement).IsAssignableFrom(pointer.
ParentType
), "pointer must be still in a scope of TextElement");
358
Invariant.Assert(typeof(TableRow).IsAssignableFrom(pointer.
ParentType
), "pointer must be in a scope of TableRow");
424
Invariant.Assert(typeof(TextElement).IsAssignableFrom(thisElement.
ParentType
), "thisElement is expected to be a TextElement");
440
if (thisElement.
ParentType
== typeof(Hyperlink))
458
TextElementEditingBehaviorAttribute att = (TextElementEditingBehaviorAttribute)Attribute.GetCustomAttribute(thisElement.
ParentType
, typeof(TextElementEditingBehaviorAttribute));
536
Type elementType = textReader.
ParentType
;
656
Type contextType = context.
ParentType
;
838
Type propertyOwnerType = context.
ParentType
;
868
&& typeof(Inline).IsAssignableFrom(parentContext.
ParentType
))
872
propertyOwnerType = parentContext.
ParentType
;
1676
while (typeof(TextElement).IsAssignableFrom(runningEnd.
ParentType
) && !runningEnd.HasEqualScope(commonAncestor))
1695
if (typeof(TextElement).IsAssignableFrom(commonAncestor.
ParentType
))
1720
if (typeof(TableRow).IsAssignableFrom(commonAncestor.
ParentType
) ||
1721
typeof(TableRowGroup).IsAssignableFrom(commonAncestor.
ParentType
) ||
1722
typeof(Table).IsAssignableFrom(commonAncestor.
ParentType
) ||
1723
typeof(BlockUIContainer).IsAssignableFrom(commonAncestor.
ParentType
) ||
1724
typeof(List).IsAssignableFrom(commonAncestor.
ParentType
) ||
1725
typeof(Inline).IsAssignableFrom(commonAncestor.
ParentType
) && TextSchema.HasTextDecorations(commonAncestor.GetValue(Inline.TextDecorationsProperty)))
1735
while (typeof(TextElement).IsAssignableFrom(navigator.
ParentType
))
1737
TextElementEditingBehaviorAttribute behaviorAttribute = (TextElementEditingBehaviorAttribute)Attribute.GetCustomAttribute(navigator.
ParentType
, typeof(TextElementEditingBehaviorAttribute));
1923
!typeof(Hyperlink).IsAssignableFrom(hyperlinkStart.
ParentType
))
System\Windows\Documents\TextSchema.cs (2)
218
if (typeof(TextElement).IsAssignableFrom(position.
ParentType
) &&
228
return IsValidChild(position.
ParentType
, childType);