5 implementations of ParentType
PresentationFramework (5)
System\Windows\Controls\PasswordTextNavigator.cs (1)
606
Type ITextPointer.
ParentType
System\Windows\Documents\DocumentSequenceTextPointer.cs (1)
331
Type ITextPointer.
ParentType
System\Windows\Documents\FixedTextPointer.cs (1)
535
Type ITextPointer.
ParentType
System\Windows\Documents\NullTextNavigator.cs (1)
411
Type ITextPointer.
ParentType
System\Windows\Documents\TextPointer.cs (1)
3614
Type ITextPointer.
ParentType
78 references to ParentType
PresentationFramework (78)
MS\Internal\Annotations\Component\AnnotationHighlightLayer.cs (1)
1025
Type elementType = cursor.
ParentType
;
MS\Internal\Annotations\Component\MarkedHighlightComponent.cs (1)
803
!TextSchema.IsFormattingType(pointer.
ParentType
))
MS\Internal\Documents\TextContainerHelper.cs (3)
401
while (typeof(TextElement).IsAssignableFrom(position.
ParentType
))
444
while (typeof(TextElement).IsAssignableFrom(position.
ParentType
))
460
while (typeof(TextElement).IsAssignableFrom(position.
ParentType
))
System\Windows\Documents\DocumentSequenceTextPointer.cs (3)
715
return thisTp.ChildPointer.
ParentType
;
730
return thisTp.ChildPointer.
ParentType
== typeof(FixedDocument) && tp.ChildPointer.
ParentType
== typeof(FixedDocument);
System\Windows\Documents\FixedTextPointer.cs (1)
533
/// <see cref="ITextPointer.
ParentType
"/>
System\Windows\Documents\NullTextNavigator.cs (1)
409
/// <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)
845
Start offset = {start.Offset} parent = {start.
ParentType
.Name}
846
ContextStart offset = {contextStart.Offset} parent = {contextStart.
ParentType
.Name}
847
ContentStart offset = {contentStart.Offset} parent = {contentStart.
ParentType
.Name}
848
ContentEnd offset = {contentEnd.Offset} parent = {contentEnd.
ParentType
.Name}
849
ContextEnd offset = {contextEnd.Offset} parent = {contextEnd.
ParentType
.Name}
850
Timeout offset = {status.TimeoutPosition.Offset} parent = {status.TimeoutPosition.
ParentType
.Name}
1815
TextSchema.IsFormattingType(pointer.
ParentType
))
System\windows\Documents\TextEditor.cs (1)
1516
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)
576
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)
123
if (!typeof(BlockUIContainer).IsAssignableFrom(position.
ParentType
))
2039
while (TextSchema.IsFormattingType(position.
ParentType
))
2442
while (typeof(Inline).IsAssignableFrom(navigator.
ParentType
))
System\windows\Documents\TextEditorSpelling.cs (1)
209
if (typeof(Run).IsAssignableFrom(textStart.
ParentType
) &&
System\windows\Documents\TextEditorTyping.cs (6)
818
if (typeof(ListItem).IsAssignableFrom(position.
ParentType
) &&
827
Type parentType = position.
ParentType
;
834
typeof(ListItem).IsAssignableFrom(position.
ParentType
))
867
typeof(Inline).IsAssignableFrom(navigator.
ParentType
))
874
TextSchema.IsParagraphOrBlockUIContainer(navigator.
ParentType
)))
881
return typeof(ListItem).IsAssignableFrom(navigator.
ParentType
);
System\Windows\Documents\TextFindEngine.cs (2)
913
TextSchema.IsFormattingType(pointer.
ParentType
))
928
TextSchema.IsFormattingType(pointer.
ParentType
))
System\Windows\Documents\TextPointerBase.cs (11)
229
Type parentType = position.
ParentType
;
266
return (typeof(BlockUIContainer).IsAssignableFrom(position.
ParentType
));
285
Type parentType = navigator.
ParentType
;
294
parentType = navigator.
ParentType
;
345
else if (navigator.
ParentType
== typeof(InlineUIContainer) || navigator.
ParentType
== typeof(BlockUIContainer))
713
return typeof(TableRow).IsAssignableFrom(thisPosition.
ParentType
) &&
743
if (TextSchema.IsParagraphOrBlockUIContainer(pointer.
ParentType
))
1288
while (TextSchema.IsMergeableInline(thisNavigator.
ParentType
))
1495
!typeof(Inline).IsAssignableFrom(position.
ParentType
))
1499
else if (TextSchema.IsMergeableInline(position.
ParentType
))
System\Windows\Documents\TextRangeBase.cs (8)
360
!typeof(Inline).IsAssignableFrom(navigator.
ParentType
))
474
while (!typeof(Paragraph).IsAssignableFrom(position.
ParentType
) &&
481
if (typeof(Paragraph).IsAssignableFrom(position.
ParentType
))
523
while (typeof(Inline).IsAssignableFrom(startNavigator.
ParentType
))
527
while (typeof(Inline).IsAssignableFrom(endNavigator.
ParentType
))
688
elementType = navigator.
ParentType
;
771
typeof(TableCell).IsAssignableFrom(navigator.
ParentType
))
1255
!typeof(AnchoredBlock).IsAssignableFrom(start.
ParentType
))
System\Windows\Documents\TextRangeSerialization.cs (24)
198
if (elementLevel == EmptyDocumentDepth && typeof(Run).IsAssignableFrom(rangeStart.
ParentType
))
295
if (TextSchema.IsBreak(textReader.
ParentType
))
360
while (!typeof(TableRow).IsAssignableFrom(pointer.
ParentType
))
362
Invariant.Assert(typeof(TextElement).IsAssignableFrom(pointer.
ParentType
), "pointer must be still in a scope of TextElement");
365
Invariant.Assert(typeof(TableRow).IsAssignableFrom(pointer.
ParentType
), "pointer must be in a scope of TableRow");
431
Invariant.Assert(typeof(TextElement).IsAssignableFrom(thisElement.
ParentType
), "thisElement is expected to be a TextElement");
447
if (thisElement.
ParentType
== typeof(Hyperlink))
465
TextElementEditingBehaviorAttribute att = (TextElementEditingBehaviorAttribute)Attribute.GetCustomAttribute(thisElement.
ParentType
, typeof(TextElementEditingBehaviorAttribute));
543
Type elementType = textReader.
ParentType
;
663
Type contextType = context.
ParentType
;
845
Type propertyOwnerType = context.
ParentType
;
875
&& typeof(Inline).IsAssignableFrom(parentContext.
ParentType
))
879
propertyOwnerType = parentContext.
ParentType
;
1683
while (typeof(TextElement).IsAssignableFrom(runningEnd.
ParentType
) && !runningEnd.HasEqualScope(commonAncestor))
1702
if (typeof(TextElement).IsAssignableFrom(commonAncestor.
ParentType
))
1727
if (typeof(TableRow).IsAssignableFrom(commonAncestor.
ParentType
) ||
1728
typeof(TableRowGroup).IsAssignableFrom(commonAncestor.
ParentType
) ||
1729
typeof(Table).IsAssignableFrom(commonAncestor.
ParentType
) ||
1730
typeof(BlockUIContainer).IsAssignableFrom(commonAncestor.
ParentType
) ||
1731
typeof(List).IsAssignableFrom(commonAncestor.
ParentType
) ||
1732
typeof(Inline).IsAssignableFrom(commonAncestor.
ParentType
) && TextSchema.HasTextDecorations(commonAncestor.GetValue(Inline.TextDecorationsProperty)))
1742
while (typeof(TextElement).IsAssignableFrom(navigator.
ParentType
))
1744
TextElementEditingBehaviorAttribute behaviorAttribute = (TextElementEditingBehaviorAttribute)Attribute.GetCustomAttribute(navigator.
ParentType
, typeof(TextElementEditingBehaviorAttribute));
1930
!typeof(Hyperlink).IsAssignableFrom(hyperlinkStart.
ParentType
))
System\Windows\Documents\TextSchema.cs (2)
220
if (typeof(TextElement).IsAssignableFrom(position.
ParentType
) &&
230
return IsValidChild(position.
ParentType
, childType);