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