26 references to IsFormattingType
PresentationFramework (26)
src\Framework\MS\Internal\Annotations\Component\MArkedHighlightComponent.cs (1)
825!TextSchema.IsFormattingType(pointer.ParentType))
src\Framework\System\Windows\Documents\FixedTextView.cs (1)
1225while (TextSchema.IsFormattingType( textPointer.GetElementType(dir)) )
src\Framework\System\Windows\Documents\Speller.cs (2)
1938TextSchema.IsFormattingType(pointer.GetElementType(LogicalDirection.Forward))) 1943TextSchema.IsFormattingType(pointer.ParentType))
src\Framework\System\windows\Documents\TextEditorSelection.cs (1)
2048while (TextSchema.IsFormattingType(position.ParentType))
src\Framework\System\windows\Documents\TextEditorSpelling.cs (1)
277if (TextSchema.IsFormattingType(position.GetElementType(direction)))
src\Framework\System\Windows\Documents\TextFindEngine.cs (4)
919TextSchema.IsFormattingType(pointer.GetElementType(LogicalDirection.Forward))) 924TextSchema.IsFormattingType(pointer.ParentType)) 934TextSchema.IsFormattingType(pointer.GetElementType(LogicalDirection.Backward))) 939TextSchema.IsFormattingType(pointer.ParentType))
src\Framework\System\Windows\Documents\TextPointer.cs (1)
1633TextSchema.IsFormattingType(position.GetAdjacentElement(LogicalDirection.Backward).GetType()))
src\Framework\System\Windows\Documents\TextPointerBase.cs (6)
432if (TextSchema.IsFormattingType(position.GetElementType(direction))) 435while (TextSchema.IsFormattingType(position.GetElementType(direction))) 996while (TextSchema.IsFormattingType(thisNavigator.GetElementType(direction))) 1021while (TextSchema.IsFormattingType(thisNavigator.GetElementType(direction))) 1031while (TextSchema.IsFormattingType(thisNavigator.GetElementType(LogicalDirection.Forward)) 1545if (!TextSchema.IsFormattingType(neighbor))
src\Framework\System\Windows\Documents\TextRangeEdit.cs (6)
176while (inline != null && inline.IsEmpty && !TextSchema.IsFormattingType(inline.GetType())) 200((inline.NextInline != null && TextSchema.IsFormattingType(inline.NextInline.GetType())) || 201(inline.PreviousInline != null && TextSchema.IsFormattingType(inline.PreviousInline.GetType())))) 287if (TextSchema.IsFormattingType(firstInline.GetType()) && firstInline.TextRange.IsEmpty) 292else if (TextSchema.IsFormattingType(secondInline.GetType()) && secondInline.TextRange.IsEmpty) 2123TextSchema.IsFormattingType(start.Parent.GetType())) // look for Run/Span elements
src\Framework\System\Windows\Documents\TextRangeSerialization.cs (1)
1445TextSchema.IsFormattingType(positionBeforeParagraph.Parent.GetType()))
src\Framework\System\Windows\Documents\TextSchema.cs (2)
279return typeof(Inline).IsAssignableFrom(elementType) && !IsFormattingType(elementType); 284return IsFormattingType(elementType) && !IsNonMergeableInline(elementType);