5 implementations of ParentType
PresentationFramework (5)
System\Windows\Controls\PasswordTextNavigator.cs (1)
601Type ITextPointer.ParentType
System\Windows\Documents\DocumentSequenceTextPointer.cs (1)
322Type ITextPointer.ParentType
System\Windows\Documents\FixedTextPointer.cs (1)
527Type ITextPointer.ParentType
System\Windows\Documents\NullTextNavigator.cs (1)
405Type ITextPointer.ParentType
System\Windows\Documents\TextPointer.cs (1)
3608Type ITextPointer.ParentType
78 references to ParentType
PresentationFramework (78)
MS\Internal\Annotations\Component\AnnotationHighlightLayer.cs (1)
1014Type elementType = cursor.ParentType;
MS\Internal\Annotations\Component\MarkedHighlightComponent.cs (1)
800!TextSchema.IsFormattingType(pointer.ParentType))
MS\Internal\Documents\TextContainerHelper.cs (3)
397while (typeof(TextElement).IsAssignableFrom(position.ParentType)) 440while (typeof(TextElement).IsAssignableFrom(position.ParentType)) 456while (typeof(TextElement).IsAssignableFrom(position.ParentType))
System\Windows\Documents\DocumentSequenceTextPointer.cs (3)
705return thisTp.ChildPointer.ParentType; 720return thisTp.ChildPointer.ParentType == typeof(FixedDocument) && tp.ChildPointer.ParentType == typeof(FixedDocument);
System\Windows\Documents\FixedTextPointer.cs (1)
525/// <see cref="ITextPointer.ParentType"/>
System\Windows\Documents\NullTextNavigator.cs (1)
403/// <see cref="ITextPointer.ParentType"/>
System\Windows\Documents\Paragraph.cs (2)
255typeof(LineBreak).IsAssignableFrom(navigator.ParentType) || 256typeof(AnchoredBlock).IsAssignableFrom(navigator.ParentType))
System\Windows\Documents\Speller.cs (7)
837Start offset = {start.Offset} parent = {start.ParentType.Name} 838ContextStart offset = {contextStart.Offset} parent = {contextStart.ParentType.Name} 839ContentStart offset = {contentStart.Offset} parent = {contentStart.ParentType.Name} 840ContentEnd offset = {contentEnd.Offset} parent = {contentEnd.ParentType.Name} 841ContextEnd offset = {contextEnd.Offset} parent = {contextEnd.ParentType.Name} 842Timeout offset = {status.TimeoutPosition.Offset} parent = {status.TimeoutPosition.ParentType.Name} 1807TextSchema.IsFormattingType(pointer.ParentType))
System\windows\Documents\TextEditor.cs (1)
1497cursorPosition.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)
558snappedCursorPosition.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)
107if (!typeof(BlockUIContainer).IsAssignableFrom(position.ParentType)) 2023while (TextSchema.IsFormattingType(position.ParentType)) 2426while (typeof(Inline).IsAssignableFrom(navigator.ParentType))
System\windows\Documents\TextEditorSpelling.cs (1)
207if (typeof(Run).IsAssignableFrom(textStart.ParentType) &&
System\windows\Documents\TextEditorTyping.cs (6)
799if (typeof(ListItem).IsAssignableFrom(position.ParentType) && 808Type parentType = position.ParentType; 815typeof(ListItem).IsAssignableFrom(position.ParentType)) 848typeof(Inline).IsAssignableFrom(navigator.ParentType)) 855TextSchema.IsParagraphOrBlockUIContainer(navigator.ParentType))) 862return typeof(ListItem).IsAssignableFrom(navigator.ParentType);
System\Windows\Documents\TextFindEngine.cs (2)
903TextSchema.IsFormattingType(pointer.ParentType)) 918TextSchema.IsFormattingType(pointer.ParentType))
System\Windows\Documents\TextPointerBase.cs (11)
226Type parentType = position.ParentType; 263return (typeof(BlockUIContainer).IsAssignableFrom(position.ParentType)); 282Type parentType = navigator.ParentType; 291parentType = navigator.ParentType; 342else if (navigator.ParentType == typeof(InlineUIContainer) || navigator.ParentType == typeof(BlockUIContainer)) 710return typeof(TableRow).IsAssignableFrom(thisPosition.ParentType) && 740if (TextSchema.IsParagraphOrBlockUIContainer(pointer.ParentType)) 1285while (TextSchema.IsMergeableInline(thisNavigator.ParentType)) 1492!typeof(Inline).IsAssignableFrom(position.ParentType)) 1496else if (TextSchema.IsMergeableInline(position.ParentType))
System\Windows\Documents\TextRangeBase.cs (8)
356!typeof(Inline).IsAssignableFrom(navigator.ParentType)) 470while (!typeof(Paragraph).IsAssignableFrom(position.ParentType) && 477if (typeof(Paragraph).IsAssignableFrom(position.ParentType)) 519while (typeof(Inline).IsAssignableFrom(startNavigator.ParentType)) 523while (typeof(Inline).IsAssignableFrom(endNavigator.ParentType)) 684elementType = navigator.ParentType; 767typeof(TableCell).IsAssignableFrom(navigator.ParentType)) 1251!typeof(AnchoredBlock).IsAssignableFrom(start.ParentType))
System\Windows\Documents\TextRangeSerialization.cs (24)
191if (elementLevel == EmptyDocumentDepth && typeof(Run).IsAssignableFrom(rangeStart.ParentType)) 288if (TextSchema.IsBreak(textReader.ParentType)) 353while (!typeof(TableRow).IsAssignableFrom(pointer.ParentType)) 355Invariant.Assert(typeof(TextElement).IsAssignableFrom(pointer.ParentType), "pointer must be still in a scope of TextElement"); 358Invariant.Assert(typeof(TableRow).IsAssignableFrom(pointer.ParentType), "pointer must be in a scope of TableRow"); 424Invariant.Assert(typeof(TextElement).IsAssignableFrom(thisElement.ParentType), "thisElement is expected to be a TextElement"); 440if (thisElement.ParentType == typeof(Hyperlink)) 458TextElementEditingBehaviorAttribute att = (TextElementEditingBehaviorAttribute)Attribute.GetCustomAttribute(thisElement.ParentType, typeof(TextElementEditingBehaviorAttribute)); 536Type elementType = textReader.ParentType; 656Type contextType = context.ParentType; 838Type propertyOwnerType = context.ParentType; 868&& typeof(Inline).IsAssignableFrom(parentContext.ParentType)) 872propertyOwnerType = parentContext.ParentType; 1676while (typeof(TextElement).IsAssignableFrom(runningEnd.ParentType) && !runningEnd.HasEqualScope(commonAncestor)) 1695if (typeof(TextElement).IsAssignableFrom(commonAncestor.ParentType)) 1720if (typeof(TableRow).IsAssignableFrom(commonAncestor.ParentType) || 1721typeof(TableRowGroup).IsAssignableFrom(commonAncestor.ParentType) || 1722typeof(Table).IsAssignableFrom(commonAncestor.ParentType) || 1723typeof(BlockUIContainer).IsAssignableFrom(commonAncestor.ParentType) || 1724typeof(List).IsAssignableFrom(commonAncestor.ParentType) || 1725typeof(Inline).IsAssignableFrom(commonAncestor.ParentType) && TextSchema.HasTextDecorations(commonAncestor.GetValue(Inline.TextDecorationsProperty))) 1735while (typeof(TextElement).IsAssignableFrom(navigator.ParentType)) 1737TextElementEditingBehaviorAttribute behaviorAttribute = (TextElementEditingBehaviorAttribute)Attribute.GetCustomAttribute(navigator.ParentType, typeof(TextElementEditingBehaviorAttribute)); 1923!typeof(Hyperlink).IsAssignableFrom(hyperlinkStart.ParentType))
System\Windows\Documents\TextSchema.cs (2)
218if (typeof(TextElement).IsAssignableFrom(position.ParentType) && 228return IsValidChild(position.ParentType, childType);