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