5 types derived from Inline
PresentationFramework (5)
System\Windows\Documents\AnchoredBlock.cs (1)
26public abstract class AnchoredBlock : Inline
System\Windows\Documents\InlineUIContainer.cs (1)
21public class InlineUIContainer : Inline
System\Windows\Documents\LineBreak.cs (1)
17public class LineBreak : Inline
System\Windows\Documents\Run.cs (1)
20public class Run : Inline
System\Windows\Documents\Span.cs (1)
19public class Span : Inline
222 references to Inline
Microsoft.CodeAnalysis.EditorFeatures.Wpf (5)
WpfClassificationExtensions.cs (5)
34public static IList<Inline> ToInlines( 40var inlines = new List<Inline>(); 55public static IList<Inline> ToInlines( 78this IEnumerable<Inline> inlines, 86this IEnumerable<Inline> inlines,
Microsoft.VisualStudio.LanguageServices (19)
FindReferences\Entries\AbstractItemEntry.cs (1)
41protected abstract IList<Inline> CreateLineTextInlines();
FindReferences\Entries\DefinitionItemEntry.cs (1)
38protected override IList<Inline> CreateLineTextInlines()
FindReferences\Entries\DocumentSpanEntry.cs (1)
105protected override IList<System.Windows.Documents.Inline> CreateLineTextInlines()
FindReferences\Entries\MetadataDefinitionItemEntry.cs (1)
49protected override IList<Inline> CreateLineTextInlines()
FindReferences\Entries\NonNavigableEntry.cs (1)
26protected override IList<Inline> CreateLineTextInlines()
FindReferences\RoslynDefinitionBucket.cs (2)
116var inlines = new List<Inline> { new Run(" ") }; 118foreach (var inline in inlines)
StackTraceExplorer\FrameViewModel.cs (2)
30public ImmutableArray<Inline> Inlines => [.. CreateInlines()]; 32protected abstract IEnumerable<Inline> CreateInlines();
StackTraceExplorer\IgnoredFrameViewModel.cs (1)
26protected override IEnumerable<Inline> CreateInlines()
StackTraceExplorer\StackFrameViewModel.cs (1)
143protected override IEnumerable<Inline> CreateInlines()
Utilities\BindableTextBlock.cs (5)
17public IList<Inline> InlineCollection 19get { return (ObservableCollection<Inline>)GetValue(InlineListProperty); } 24DependencyProperty.Register(nameof(InlineCollection), typeof(IList<Inline>), typeof(BindableTextBlock), new UIPropertyMetadata(null, OnPropertyChanged)); 29var newList = (IList<Inline>)e.NewValue; 40foreach (var inline in newList)
Utilities\InlineExtensions.cs (1)
12public static string? GetText(this Inline inline)
ValueTracking\TreeItemViewModel.cs (2)
41public ImmutableArray<Inline> Inlines => CalculateInlines(); 102private ImmutableArray<Inline> CalculateInlines()
PresentationFramework (198)
MS\Internal\PtsHost\ContainerParagraph.cs (1)
1062else if (element is Inline) // Note this includes AnchoredBlocks - intentionally
MS\Internal\PtsHost\LineBase.cs (4)
181Inline inline = (Inline) element; 259Inline inline = (Inline) element;
MS\Internal\Text\ComplexLine.cs (4)
405Inline inline = element as Inline; 478Inline inline = element as Inline;
MS\Internal\Text\DynamicPropertyReader.cs (6)
109return GetCollectionValue(element, Inline.TextDecorationsProperty) as TextDecorationCollection; 272Inline i = element as Inline; 278i = i.Parent as Inline; 337if (!(element is Inline) || element is AnchoredBlock) 349if (element.GetValueSource(Inline.BaselineAlignmentProperty, null, out hasModifiers)
System\Windows\Controls\AccessText.cs (2)
269Inline.TextDecorationsProperty.AddOwner( 727Run run = Inline.CreateImplicitRun(this);
System\Windows\Controls\ContentPresenter.cs (3)
1091Inline inline; 1093if ((inline = content as Inline) != null) 1186else if (item is Inline)
System\Windows\Controls\RichTextBox.cs (1)
475Inline firstInline = (firstBlock == null) ? null : ((Paragraph)firstBlock).Inlines.FirstInline;
System\Windows\Controls\TextBlock.cs (6)
151Invariant.Assert(value is Inline, "Schema validation helper must guarantee that invalid element is not passed here"); 159textContainer.InsertElementInternal(endPosition, endPosition, (Inline)value); 190Run implicitRun = Inline.CreateImplicitRun(this); 336public TextBlock(Inline inline) 881Inline.TextDecorationsProperty.AddOwner( 2836Run implicitRun = Inline.CreateImplicitRun(((TextPointer)position).Parent);
System\Windows\Controls\TextBox.cs (1)
921Inline.TextDecorationsProperty.AddOwner(
System\Windows\Controls\TextRangeAdaptor.cs (6)
369object decors = tp.GetValue(Inline.TextDecorationsProperty); 380object decors = tp.GetValue(Inline.TextDecorationsProperty); 391object decors = tp.GetValue(Inline.TextDecorationsProperty); 402object decors = tp.GetValue(Inline.TextDecorationsProperty); 435object decors = tp.GetValue(Inline.TextDecorationsProperty); 446object decors = tp.GetValue(Inline.TextDecorationsProperty);
System\Windows\Documents\Bold.cs (2)
56public Bold(Inline childInline) : base(childInline) 69public Bold(Inline childInline, TextPointer insertionPosition) : base(childInline, insertionPosition)
System\Windows\Documents\DPTypeDescriptorContext.cs (1)
60if (property == Inline.TextDecorationsProperty)
System\Windows\Documents\FixedElement.cs (1)
376return typeof(Inline);
System\Windows\Documents\FlowDocument.cs (1)
54/// inline content - elements deived from <see cref="Inline"/> class:
System\Windows\Documents\Hyperlink.cs (2)
66public Hyperlink(Inline childInline) : base(childInline) 79public Hyperlink(Inline childInline, TextPointer insertionPosition) : base(childInline, insertionPosition)
System\Windows\Documents\ImmComposition.cs (2)
1416if (!navigator.GetElementType(LogicalDirection.Backward).IsSubclassOf(typeof(Inline))) 1467if (!navigator.GetElementType(LogicalDirection.Forward).IsSubclassOf(typeof(Inline)))
System\Windows\Documents\Inline.cs (7)
66public Inline NextInline 70return this.NextElement as Inline; 78public Inline PreviousInline 82return this.PreviousElement as Inline; 93typeof(Inline), 115typeof(Inline), 134FrameworkElement.FlowDirectionProperty.AddOwner(typeof(Inline));
System\Windows\Documents\InlineCollection.cs (4)
22public class InlineCollection : TextElementCollection<Inline>, IList 122public Inline FirstInline 133public Inline LastInline 156internal override void ValidateChild(Inline child)
System\Windows\Documents\Italic.cs (2)
56public Italic(Inline childInline) : base(childInline) 69public Italic(Inline childInline, TextPointer insertionPosition) : base(childInline, insertionPosition)
System\Windows\Documents\Paragraph.cs (2)
49public Paragraph(Inline inline) 83Inline.TextDecorationsProperty.AddOwner(
System\Windows\Documents\Span.cs (3)
42public Span(Inline childInline) : this(childInline, null) 55public Span(Inline childInline, TextPointer insertionPosition) 123Inline nonMergeableAncestor;
System\windows\Documents\TextEditorCharacters.cs (4)
217object propertyValue = ((TextSelection)This.Selection).GetCurrentValue(Inline.TextDecorationsProperty); 231TextEditorCharacters._OnApplyProperty(This, Inline.TextDecorationsProperty, toggledTextDecorations); 435TextEditorCharacters._OnApplyProperty(This, Inline.FlowDirectionProperty, FlowDirection.RightToLeft); 444TextEditorCharacters._OnApplyProperty(This, Inline.FlowDirectionProperty, FlowDirection.LeftToRight);
System\windows\Documents\TextEditorContextMenu.cs (1)
400while (position.GetAdjacentElement(LogicalDirection.Forward) is Inline)
System\windows\Documents\TextEditorSelection.cs (1)
2427while (typeof(Inline).IsAssignableFrom(navigator.ParentType))
System\windows\Documents\TextEditorTyping.cs (1)
858typeof(Inline).IsAssignableFrom(navigator.ParentType))
System\Windows\Documents\TextElement.cs (2)
831InlineUIContainer implicitInlineUIContainer = Inline.CreateImplicitInlineUIContainer(this); 873Run implicitRun = Inline.CreateImplicitRun(this);
System\Windows\Documents\TextPointer.cs (9)
1427Inline ancestor = this.GetNonMergeableInlineAncestor(); 1720internal Inline GetNonMergeableInlineAncestor() 1722Inline ancestor = this.Parent as Inline; 1726ancestor = ancestor.Parent as Inline; 3536internal void InsertInline(Inline inline) 3825Inline ancestor = this.GetNonMergeableInlineAncestor(); 3868while (parentBlock is Inline && !(parentBlock is AnchoredBlock)) 3870parentBlock = ((Inline)parentBlock).Parent;
System\Windows\Documents\TextPointerBase.cs (9)
206typeof(Inline).IsAssignableFrom(backwardType) && !TextSchema.IsMergeableInline(backwardType) && !typeof(Run).IsAssignableFrom(forwardType) && 210typeof(Inline).IsAssignableFrom(forwardType) && !TextSchema.IsMergeableInline(forwardType) && !typeof(Run).IsAssignableFrom(backwardType) && 307return IsInAncestorScope(position, typeof(Inline), typeof(Hyperlink)); 366if (typeof(Inline).IsAssignableFrom(elementType) && !TextSchema.IsMergeableInline(elementType)) 595if (!typeof(Inline).IsAssignableFrom(elementType)) 725!typeof(Inline).IsAssignableFrom(thisPosition.GetElementType(LogicalDirection.Backward)); 1170!typeof(Inline).IsAssignableFrom(thisNavigator.GetElementType(direction)) && 1178!typeof(Inline).IsAssignableFrom(thisNavigator.GetElementType(oppositeDirection)) && 1493!typeof(Inline).IsAssignableFrom(position.ParentType))
System\Windows\Documents\TextRangeBase.cs (6)
352!typeof(Inline).IsAssignableFrom(navigator.GetElementType(direction)) // 357!typeof(Inline).IsAssignableFrom(navigator.ParentType)) 435if (formattingProperty != Inline.TextDecorationsProperty) 444while (value == null && (element is Inline || element is Paragraph || element is TextBlock)) 520while (typeof(Inline).IsAssignableFrom(startNavigator.ParentType)) 524while (typeof(Inline).IsAssignableFrom(endNavigator.ParentType))
System\Windows\Documents\TextRangeEdit.cs (71)
58Inline inline = (Inline)splitPosition.Parent; 87private static bool InheritablePropertiesAreEqual(Inline firstInline, Inline secondInline) 93DependencyProperty[] inheritableProperties = TextSchema.GetInheritableProperties(typeof(Inline)); 125private static bool CharacterPropertiesAreEqual(Inline firstElement, Inline secondElement) 166Inline inline = position.Parent as Inline; 176inline = position.Parent as Inline; 190inline = position.Parent as Inline; 201inline = position.Parent as Inline; 266position = ((Inline)position.Parent).ElementStart; 271position = ((Inline)position.Parent).ElementEnd; 275Inline firstInline, secondInline; 280(firstInline = position.GetAdjacentElement(LogicalDirection.Backward) as Inline) != null && 281(secondInline = position.GetAdjacentElement(LogicalDirection.Forward) as Inline) != null) 323Inline inline = position.Parent as Inline; 401inline = inline.Parent as Inline; 451else if (parent is Inline) 453ClearFormattingInlineProperties((Inline)parent); 467private static void ClearFormattingInlineProperties(Inline inline) 604Inline ancestor = position.GetNonMergeableInlineAncestor(); 926Inline firstChild = paragraph.Inlines.FirstInline; 927Inline lastChild = paragraph.Inlines.LastInline; 941Inline nextChild; 952nextChild = (Inline)lastChild.NextElement; 975firstChild = (Inline)start.GetAdjacentElement(LogicalDirection.Forward); 976lastChild = (Inline)end.GetAdjacentElement(LogicalDirection.Backward); 1011private static void SetStructuralPropertyOnInline(Inline inline, DependencyProperty property, object value) 1281position = ((Inline)position.Parent).ElementStart; 1286position = ((Inline)position.Parent).ElementEnd; 1301previousPosition = ((Inline)previousPosition.GetAdjacentElement(LogicalDirection.Backward)).ContentEnd; 1310nextPosition = ((Inline)nextPosition.GetAdjacentElement(LogicalDirection.Forward)).ContentStart; 1330Inline scopingPreviousInline = GetScopingFlowDirectionInline(previousRun); 1331Inline scopingNextInline = GetScopingFlowDirectionInline(nextRun); 1444if (parent is Inline || TextSchema.AllowsParagraphMerging(parent.GetType())) 1768((((Inline)splitPosition.Parent).Parent != null && !HasLocalInheritableStructuralPropertyValue((Inline)splitPosition.Parent)) || 1769(((Inline)splitPosition.Parent).Parent == null && !HasLocalStructuralPropertyValue((Inline)splitPosition.Parent))))) 1778private static void TransferStructuralProperties(Inline source, Inline destination) 1796private static bool HasWriteableLocalPropertyValues(Inline inline) 1810private static bool HasLocalInheritableStructuralPropertyValue(Inline inline) 1825private static bool HasLocalStructuralPropertyValue(Inline inline) 1840private static bool HasLocalPropertyValue(Inline inline, DependencyProperty property) 1853private static Inline GetScopingFlowDirectionInline(Run run) 1857Inline inline = run; 1954else if ((commonAncestor is Inline && !(commonAncestor is AnchoredBlock)) || 1971private static void FixupStructuralPropertyEnvironment(Inline inline, DependencyProperty property) 1977for (Inline searchInline = inline; searchInline != null; searchInline = searchInline.Parent as Span) 1979Inline previousSibling = (Inline)searchInline.PreviousElement; 1989for (Inline searchInline = inline; searchInline != null; searchInline = searchInline.Parent as Span) 1991Inline nextSibling = (Inline)searchInline.NextElement; 2001private static void FlattenStructuralProperties(Inline inline) 2017Inline child = (Inline)topmostSpan.Inlines.FirstInline; 2031private static void ClearParentStructuralPropertyValue(Inline child, DependencyProperty property) 2168Inline inline = (Inline)start.GetAdjacentElement(LogicalDirection.Forward); 2256if (!(commonAncestor is Inline)) 2261Inline nonMergeableAncestor = null; 2262Inline parent; 2265for (parent = (Inline)start.Parent; parent != commonAncestor; parent = (Inline)parent.Parent) 2276for (parent = (Inline)end.Parent; parent != commonAncestor; parent = (Inline)parent.Parent)
System\Windows\Documents\TextRangeEditTables.cs (3)
634if (ancestor is List || ancestor is Inline && !TextSchema.IsMergeableInline(ancestor.GetType())) 863position = ((Inline)parent).ElementStart; 876if (TextSchema.IsValidChild(/*position:*/position, /*childType:*/typeof(Inline)))
System\Windows\Documents\TextRangeSerialization.cs (8)
660typeof(Inline).IsAssignableFrom(contextType) && !typeof(AnchoredBlock).IsAssignableFrom(contextType)) 861if (property == Inline.BaselineAlignmentProperty || property == TextElement.TextEffectsProperty) 869&& typeof(Inline).IsAssignableFrom(parentContext.ParentType)) 1314ValidateMergingPositions(typeof(Inline), fragmentStart, fragmentEnd); 1579ApplyContextualProperty(typeof(Inline), start, end, property, propertyEntry.Value); 1584ApplyContextualProperty(typeof(Inline), start, end, property, propertyEntry.Value); 1726typeof(Inline).IsAssignableFrom(commonAncestor.ParentType) && TextSchema.HasTextDecorations(commonAncestor.GetValue(Inline.TextDecorationsProperty)))
System\Windows\Documents\TextSchema.cs (14)
185if (typeof(Inline).IsAssignableFrom(newType)) 187return typeof(Inline).IsAssignableFrom(siblingType); 241Inline ancestor = element as Inline; 245ancestor = ancestor.Parent as Inline; 276return typeof(Inline).IsAssignableFrom(elementType) && !IsFormattingType(elementType); 816return typeof(Inline).IsAssignableFrom(childType) && 822return typeof(Inline).IsAssignableFrom(childType) && 831return typeof(Inline).IsAssignableFrom(childType); 955Inline.BaselineAlignmentProperty, 956Inline.TextDecorationsProperty, 969Inline.BaselineAlignmentProperty, 970Inline.TextDecorationsProperty, 1212Inline.FlowDirectionProperty,
System\windows\Documents\TextSelection.cs (3)
1448Inline ancestor = start.GetNonMergeableInlineAncestor(); 1477DependencyProperty[] inheritableProperties = TextSchema.GetInheritableProperties(typeof(Inline)); 1484while (element is Inline)
System\Windows\Documents\Underline.cs (2)
56public Underline(Inline childInline) : base(childInline) 69public Underline(Inline childInline, TextPointer insertionPosition) : base(childInline, insertionPosition)
System\Windows\Markup\Baml2006\Baml2006KnownTypes.cs (1)
384case 290: t = () => typeof(Inline); break;
System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
5867typeof(System.Windows.Documents.Inline),
System\Windows\Markup\KnownTypes.cs (1)
5838case KnownElements.Inline: t = typeof(System.Windows.Documents.Inline); break;