5 implementations of ParentType
PresentationFramework (5)
System\Windows\Controls\PasswordTextNavigator.cs (1)
602
Type ITextPointer.
ParentType
System\Windows\Documents\DocumentSequenceTextPointer.cs (1)
323
Type ITextPointer.
ParentType
System\Windows\Documents\FixedTextPointer.cs (1)
528
Type ITextPointer.
ParentType
System\Windows\Documents\NullTextNavigator.cs (1)
406
Type ITextPointer.
ParentType
System\Windows\Documents\TextPointer.cs (1)
3609
Type ITextPointer.
ParentType
78 references to ParentType
PresentationFramework (78)
MS\Internal\Annotations\Component\AnnotationHighlightLayer.cs (1)
1018
Type elementType = cursor.
ParentType
;
MS\Internal\Annotations\Component\MarkedHighlightComponent.cs (1)
803
!TextSchema.IsFormattingType(pointer.
ParentType
))
MS\Internal\Documents\TextContainerHelper.cs (3)
398
while (typeof(TextElement).IsAssignableFrom(position.
ParentType
))
441
while (typeof(TextElement).IsAssignableFrom(position.
ParentType
))
457
while (typeof(TextElement).IsAssignableFrom(position.
ParentType
))
System\Windows\Documents\DocumentSequenceTextPointer.cs (3)
706
return thisTp.ChildPointer.
ParentType
;
721
return thisTp.ChildPointer.
ParentType
== typeof(FixedDocument) && tp.ChildPointer.
ParentType
== typeof(FixedDocument);
System\Windows\Documents\FixedTextPointer.cs (1)
526
/// <see cref="ITextPointer.
ParentType
"/>
System\Windows\Documents\NullTextNavigator.cs (1)
404
/// <see cref="ITextPointer.
ParentType
"/>
System\Windows\Documents\Paragraph.cs (2)
256
typeof(LineBreak).IsAssignableFrom(navigator.
ParentType
) ||
257
typeof(AnchoredBlock).IsAssignableFrom(navigator.
ParentType
))
System\Windows\Documents\Speller.cs (7)
841
Start offset = {start.Offset} parent = {start.
ParentType
.Name}
842
ContextStart offset = {contextStart.Offset} parent = {contextStart.
ParentType
.Name}
843
ContentStart offset = {contentStart.Offset} parent = {contentStart.
ParentType
.Name}
844
ContentEnd offset = {contentEnd.Offset} parent = {contentEnd.
ParentType
.Name}
845
ContextEnd offset = {contextEnd.Offset} parent = {contextEnd.
ParentType
.Name}
846
Timeout offset = {status.TimeoutPosition.Offset} parent = {status.TimeoutPosition.
ParentType
.Name}
1811
TextSchema.IsFormattingType(pointer.
ParentType
))
System\windows\Documents\TextEditor.cs (1)
1507
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)
562
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)
108
if (!typeof(BlockUIContainer).IsAssignableFrom(position.
ParentType
))
2024
while (TextSchema.IsFormattingType(position.
ParentType
))
2427
while (typeof(Inline).IsAssignableFrom(navigator.
ParentType
))
System\windows\Documents\TextEditorSpelling.cs (1)
208
if (typeof(Run).IsAssignableFrom(textStart.
ParentType
) &&
System\windows\Documents\TextEditorTyping.cs (6)
809
if (typeof(ListItem).IsAssignableFrom(position.
ParentType
) &&
818
Type parentType = position.
ParentType
;
825
typeof(ListItem).IsAssignableFrom(position.
ParentType
))
858
typeof(Inline).IsAssignableFrom(navigator.
ParentType
))
865
TextSchema.IsParagraphOrBlockUIContainer(navigator.
ParentType
)))
872
return typeof(ListItem).IsAssignableFrom(navigator.
ParentType
);
System\Windows\Documents\TextFindEngine.cs (2)
904
TextSchema.IsFormattingType(pointer.
ParentType
))
919
TextSchema.IsFormattingType(pointer.
ParentType
))
System\Windows\Documents\TextPointerBase.cs (11)
227
Type parentType = position.
ParentType
;
264
return (typeof(BlockUIContainer).IsAssignableFrom(position.
ParentType
));
283
Type parentType = navigator.
ParentType
;
292
parentType = navigator.
ParentType
;
343
else if (navigator.
ParentType
== typeof(InlineUIContainer) || navigator.
ParentType
== typeof(BlockUIContainer))
711
return typeof(TableRow).IsAssignableFrom(thisPosition.
ParentType
) &&
741
if (TextSchema.IsParagraphOrBlockUIContainer(pointer.
ParentType
))
1286
while (TextSchema.IsMergeableInline(thisNavigator.
ParentType
))
1493
!typeof(Inline).IsAssignableFrom(position.
ParentType
))
1497
else if (TextSchema.IsMergeableInline(position.
ParentType
))
System\Windows\Documents\TextRangeBase.cs (8)
357
!typeof(Inline).IsAssignableFrom(navigator.
ParentType
))
471
while (!typeof(Paragraph).IsAssignableFrom(position.
ParentType
) &&
478
if (typeof(Paragraph).IsAssignableFrom(position.
ParentType
))
520
while (typeof(Inline).IsAssignableFrom(startNavigator.
ParentType
))
524
while (typeof(Inline).IsAssignableFrom(endNavigator.
ParentType
))
685
elementType = navigator.
ParentType
;
768
typeof(TableCell).IsAssignableFrom(navigator.
ParentType
))
1252
!typeof(AnchoredBlock).IsAssignableFrom(start.
ParentType
))
System\Windows\Documents\TextRangeSerialization.cs (24)
192
if (elementLevel == EmptyDocumentDepth && typeof(Run).IsAssignableFrom(rangeStart.
ParentType
))
289
if (TextSchema.IsBreak(textReader.
ParentType
))
354
while (!typeof(TableRow).IsAssignableFrom(pointer.
ParentType
))
356
Invariant.Assert(typeof(TextElement).IsAssignableFrom(pointer.
ParentType
), "pointer must be still in a scope of TextElement");
359
Invariant.Assert(typeof(TableRow).IsAssignableFrom(pointer.
ParentType
), "pointer must be in a scope of TableRow");
425
Invariant.Assert(typeof(TextElement).IsAssignableFrom(thisElement.
ParentType
), "thisElement is expected to be a TextElement");
441
if (thisElement.
ParentType
== typeof(Hyperlink))
459
TextElementEditingBehaviorAttribute att = (TextElementEditingBehaviorAttribute)Attribute.GetCustomAttribute(thisElement.
ParentType
, typeof(TextElementEditingBehaviorAttribute));
537
Type elementType = textReader.
ParentType
;
657
Type contextType = context.
ParentType
;
839
Type propertyOwnerType = context.
ParentType
;
869
&& typeof(Inline).IsAssignableFrom(parentContext.
ParentType
))
873
propertyOwnerType = parentContext.
ParentType
;
1677
while (typeof(TextElement).IsAssignableFrom(runningEnd.
ParentType
) && !runningEnd.HasEqualScope(commonAncestor))
1696
if (typeof(TextElement).IsAssignableFrom(commonAncestor.
ParentType
))
1721
if (typeof(TableRow).IsAssignableFrom(commonAncestor.
ParentType
) ||
1722
typeof(TableRowGroup).IsAssignableFrom(commonAncestor.
ParentType
) ||
1723
typeof(Table).IsAssignableFrom(commonAncestor.
ParentType
) ||
1724
typeof(BlockUIContainer).IsAssignableFrom(commonAncestor.
ParentType
) ||
1725
typeof(List).IsAssignableFrom(commonAncestor.
ParentType
) ||
1726
typeof(Inline).IsAssignableFrom(commonAncestor.
ParentType
) && TextSchema.HasTextDecorations(commonAncestor.GetValue(Inline.TextDecorationsProperty)))
1736
while (typeof(TextElement).IsAssignableFrom(navigator.
ParentType
))
1738
TextElementEditingBehaviorAttribute behaviorAttribute = (TextElementEditingBehaviorAttribute)Attribute.GetCustomAttribute(navigator.
ParentType
, typeof(TextElementEditingBehaviorAttribute));
1924
!typeof(Hyperlink).IsAssignableFrom(hyperlinkStart.
ParentType
))
System\Windows\Documents\TextSchema.cs (2)
219
if (typeof(TextElement).IsAssignableFrom(position.
ParentType
) &&
229
return IsValidChild(position.
ParentType
, childType);