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