5 types derived from Inline
PresentationFramework (5)
System\Windows\Documents\AnchoredBlock.cs (1)
25public abstract class AnchoredBlock : Inline
System\Windows\Documents\InlineUIContainer.cs (1)
20public class InlineUIContainer : Inline
System\Windows\Documents\LineBreak.cs (1)
16public class LineBreak : Inline
System\Windows\Documents\Run.cs (1)
19public class Run : Inline
System\Windows\Documents\Span.cs (1)
18public 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)
135protected 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)
1058else if (element is Inline) // Note this includes AnchoredBlocks - intentionally
MS\Internal\PtsHost\LineBase.cs (4)
180Inline inline = (Inline) element; 258Inline inline = (Inline) element;
MS\Internal\Text\ComplexLine.cs (4)
404Inline inline = element as Inline; 477Inline inline = element as Inline;
MS\Internal\Text\DynamicPropertyReader.cs (6)
108return GetCollectionValue(element, Inline.TextDecorationsProperty) as TextDecorationCollection; 271Inline i = element as Inline; 277i = i.Parent as Inline; 336if (!(element is Inline) || element is AnchoredBlock) 348if (element.GetValueSource(Inline.BaselineAlignmentProperty, null, out hasModifiers)
System\Windows\Controls\AccessText.cs (2)
268Inline.TextDecorationsProperty.AddOwner( 726Run run = Inline.CreateImplicitRun(this);
System\Windows\Controls\ContentPresenter.cs (3)
1090Inline inline; 1092if ((inline = content as Inline) != null) 1185else if (item is Inline)
System\Windows\Controls\RichTextBox.cs (1)
474Inline firstInline = (firstBlock == null) ? null : ((Paragraph)firstBlock).Inlines.FirstInline;
System\Windows\Controls\TextBlock.cs (6)
150Invariant.Assert(value is Inline, "Schema validation helper must guarantee that invalid element is not passed here"); 158textContainer.InsertElementInternal(endPosition, endPosition, (Inline)value); 189Run implicitRun = Inline.CreateImplicitRun(this); 335public TextBlock(Inline inline) 880Inline.TextDecorationsProperty.AddOwner( 2826Run implicitRun = Inline.CreateImplicitRun(((TextPointer)position).Parent);
System\Windows\Controls\TextBox.cs (1)
920Inline.TextDecorationsProperty.AddOwner(
System\Windows\Controls\TextRangeAdaptor.cs (6)
368object decors = tp.GetValue(Inline.TextDecorationsProperty); 379object decors = tp.GetValue(Inline.TextDecorationsProperty); 390object decors = tp.GetValue(Inline.TextDecorationsProperty); 401object decors = tp.GetValue(Inline.TextDecorationsProperty); 434object decors = tp.GetValue(Inline.TextDecorationsProperty); 445object decors = tp.GetValue(Inline.TextDecorationsProperty);
System\Windows\Documents\Bold.cs (2)
55public Bold(Inline childInline) : base(childInline) 68public Bold(Inline childInline, TextPointer insertionPosition) : base(childInline, insertionPosition)
System\Windows\Documents\DPTypeDescriptorContext.cs (1)
59if (property == Inline.TextDecorationsProperty)
System\Windows\Documents\FixedElement.cs (1)
375return typeof(Inline);
System\Windows\Documents\FlowDocument.cs (1)
53/// inline content - elements deived from <see cref="Inline"/> class:
System\Windows\Documents\Hyperlink.cs (2)
65public Hyperlink(Inline childInline) : base(childInline) 78public Hyperlink(Inline childInline, TextPointer insertionPosition) : base(childInline, insertionPosition)
System\Windows\Documents\ImmComposition.cs (2)
1415if (!navigator.GetElementType(LogicalDirection.Backward).IsSubclassOf(typeof(Inline))) 1466if (!navigator.GetElementType(LogicalDirection.Forward).IsSubclassOf(typeof(Inline)))
System\Windows\Documents\Inline.cs (7)
65public Inline NextInline 69return this.NextElement as Inline; 77public Inline PreviousInline 81return this.PreviousElement as Inline; 92typeof(Inline), 114typeof(Inline), 133FrameworkElement.FlowDirectionProperty.AddOwner(typeof(Inline));
System\Windows\Documents\InlineCollection.cs (4)
21public class InlineCollection : TextElementCollection<Inline>, IList 121public Inline FirstInline 132public Inline LastInline 155internal override void ValidateChild(Inline child)
System\Windows\Documents\Italic.cs (2)
55public Italic(Inline childInline) : base(childInline) 68public Italic(Inline childInline, TextPointer insertionPosition) : base(childInline, insertionPosition)
System\Windows\Documents\Paragraph.cs (2)
48public Paragraph(Inline inline) 82Inline.TextDecorationsProperty.AddOwner(
System\Windows\Documents\Span.cs (3)
41public Span(Inline childInline) : this(childInline, null) 54public Span(Inline childInline, TextPointer insertionPosition) 113Inline nonMergeableAncestor;
System\windows\Documents\TextEditorCharacters.cs (4)
216object propertyValue = ((TextSelection)This.Selection).GetCurrentValue(Inline.TextDecorationsProperty); 230TextEditorCharacters._OnApplyProperty(This, Inline.TextDecorationsProperty, toggledTextDecorations); 434TextEditorCharacters._OnApplyProperty(This, Inline.FlowDirectionProperty, FlowDirection.RightToLeft); 443TextEditorCharacters._OnApplyProperty(This, Inline.FlowDirectionProperty, FlowDirection.LeftToRight);
System\windows\Documents\TextEditorContextMenu.cs (1)
399while (position.GetAdjacentElement(LogicalDirection.Forward) is Inline)
System\windows\Documents\TextEditorSelection.cs (1)
2426while (typeof(Inline).IsAssignableFrom(navigator.ParentType))
System\windows\Documents\TextEditorTyping.cs (1)
848typeof(Inline).IsAssignableFrom(navigator.ParentType))
System\Windows\Documents\TextElement.cs (2)
830InlineUIContainer implicitInlineUIContainer = Inline.CreateImplicitInlineUIContainer(this); 872Run implicitRun = Inline.CreateImplicitRun(this);
System\Windows\Documents\TextPointer.cs (9)
1426Inline ancestor = this.GetNonMergeableInlineAncestor(); 1719internal Inline GetNonMergeableInlineAncestor() 1721Inline ancestor = this.Parent as Inline; 1725ancestor = ancestor.Parent as Inline; 3535internal void InsertInline(Inline inline) 3824Inline ancestor = this.GetNonMergeableInlineAncestor(); 3867while (parentBlock is Inline && !(parentBlock is AnchoredBlock)) 3869parentBlock = ((Inline)parentBlock).Parent;
System\Windows\Documents\TextPointerBase.cs (9)
205typeof(Inline).IsAssignableFrom(backwardType) && !TextSchema.IsMergeableInline(backwardType) && !typeof(Run).IsAssignableFrom(forwardType) && 209typeof(Inline).IsAssignableFrom(forwardType) && !TextSchema.IsMergeableInline(forwardType) && !typeof(Run).IsAssignableFrom(backwardType) && 306return IsInAncestorScope(position, typeof(Inline), typeof(Hyperlink)); 365if (typeof(Inline).IsAssignableFrom(elementType) && !TextSchema.IsMergeableInline(elementType)) 594if (!typeof(Inline).IsAssignableFrom(elementType)) 724!typeof(Inline).IsAssignableFrom(thisPosition.GetElementType(LogicalDirection.Backward)); 1169!typeof(Inline).IsAssignableFrom(thisNavigator.GetElementType(direction)) && 1177!typeof(Inline).IsAssignableFrom(thisNavigator.GetElementType(oppositeDirection)) && 1492!typeof(Inline).IsAssignableFrom(position.ParentType))
System\Windows\Documents\TextRangeBase.cs (6)
351!typeof(Inline).IsAssignableFrom(navigator.GetElementType(direction)) // 356!typeof(Inline).IsAssignableFrom(navigator.ParentType)) 434if (formattingProperty != Inline.TextDecorationsProperty) 443while (value == null && (element is Inline || element is Paragraph || element is TextBlock)) 519while (typeof(Inline).IsAssignableFrom(startNavigator.ParentType)) 523while (typeof(Inline).IsAssignableFrom(endNavigator.ParentType))
System\Windows\Documents\TextRangeEdit.cs (71)
57Inline inline = (Inline)splitPosition.Parent; 86private static bool InheritablePropertiesAreEqual(Inline firstInline, Inline secondInline) 92DependencyProperty[] inheritableProperties = TextSchema.GetInheritableProperties(typeof(Inline)); 124private static bool CharacterPropertiesAreEqual(Inline firstElement, Inline secondElement) 165Inline inline = position.Parent as Inline; 175inline = position.Parent as Inline; 189inline = position.Parent as Inline; 200inline = position.Parent as Inline; 265position = ((Inline)position.Parent).ElementStart; 270position = ((Inline)position.Parent).ElementEnd; 274Inline firstInline, secondInline; 279(firstInline = position.GetAdjacentElement(LogicalDirection.Backward) as Inline) != null && 280(secondInline = position.GetAdjacentElement(LogicalDirection.Forward) as Inline) != null) 322Inline inline = position.Parent as Inline; 400inline = inline.Parent as Inline; 450else if (parent is Inline) 452ClearFormattingInlineProperties((Inline)parent); 466private static void ClearFormattingInlineProperties(Inline inline) 603Inline ancestor = position.GetNonMergeableInlineAncestor(); 925Inline firstChild = paragraph.Inlines.FirstInline; 926Inline lastChild = paragraph.Inlines.LastInline; 940Inline nextChild; 951nextChild = (Inline)lastChild.NextElement; 974firstChild = (Inline)start.GetAdjacentElement(LogicalDirection.Forward); 975lastChild = (Inline)end.GetAdjacentElement(LogicalDirection.Backward); 1010private static void SetStructuralPropertyOnInline(Inline inline, DependencyProperty property, object value) 1280position = ((Inline)position.Parent).ElementStart; 1285position = ((Inline)position.Parent).ElementEnd; 1300previousPosition = ((Inline)previousPosition.GetAdjacentElement(LogicalDirection.Backward)).ContentEnd; 1309nextPosition = ((Inline)nextPosition.GetAdjacentElement(LogicalDirection.Forward)).ContentStart; 1329Inline scopingPreviousInline = GetScopingFlowDirectionInline(previousRun); 1330Inline scopingNextInline = GetScopingFlowDirectionInline(nextRun); 1443if (parent is Inline || TextSchema.AllowsParagraphMerging(parent.GetType())) 1767((((Inline)splitPosition.Parent).Parent != null && !HasLocalInheritableStructuralPropertyValue((Inline)splitPosition.Parent)) || 1768(((Inline)splitPosition.Parent).Parent == null && !HasLocalStructuralPropertyValue((Inline)splitPosition.Parent))))) 1777private static void TransferStructuralProperties(Inline source, Inline destination) 1795private static bool HasWriteableLocalPropertyValues(Inline inline) 1809private static bool HasLocalInheritableStructuralPropertyValue(Inline inline) 1824private static bool HasLocalStructuralPropertyValue(Inline inline) 1839private static bool HasLocalPropertyValue(Inline inline, DependencyProperty property) 1852private static Inline GetScopingFlowDirectionInline(Run run) 1856Inline inline = run; 1953else if ((commonAncestor is Inline && !(commonAncestor is AnchoredBlock)) || 1970private static void FixupStructuralPropertyEnvironment(Inline inline, DependencyProperty property) 1976for (Inline searchInline = inline; searchInline != null; searchInline = searchInline.Parent as Span) 1978Inline previousSibling = (Inline)searchInline.PreviousElement; 1988for (Inline searchInline = inline; searchInline != null; searchInline = searchInline.Parent as Span) 1990Inline nextSibling = (Inline)searchInline.NextElement; 2000private static void FlattenStructuralProperties(Inline inline) 2016Inline child = (Inline)topmostSpan.Inlines.FirstInline; 2030private static void ClearParentStructuralPropertyValue(Inline child, DependencyProperty property) 2167Inline inline = (Inline)start.GetAdjacentElement(LogicalDirection.Forward); 2255if (!(commonAncestor is Inline)) 2260Inline nonMergeableAncestor = null; 2261Inline parent; 2264for (parent = (Inline)start.Parent; parent != commonAncestor; parent = (Inline)parent.Parent) 2275for (parent = (Inline)end.Parent; parent != commonAncestor; parent = (Inline)parent.Parent)
System\Windows\Documents\TextRangeEditTables.cs (3)
633if (ancestor is List || ancestor is Inline && !TextSchema.IsMergeableInline(ancestor.GetType())) 862position = ((Inline)parent).ElementStart; 875if (TextSchema.IsValidChild(/*position:*/position, /*childType:*/typeof(Inline)))
System\Windows\Documents\TextRangeSerialization.cs (8)
659typeof(Inline).IsAssignableFrom(contextType) && !typeof(AnchoredBlock).IsAssignableFrom(contextType)) 860if (property == Inline.BaselineAlignmentProperty || property == TextElement.TextEffectsProperty) 868&& typeof(Inline).IsAssignableFrom(parentContext.ParentType)) 1313ValidateMergingPositions(typeof(Inline), fragmentStart, fragmentEnd); 1578ApplyContextualProperty(typeof(Inline), start, end, property, propertyEntry.Value); 1583ApplyContextualProperty(typeof(Inline), start, end, property, propertyEntry.Value); 1725typeof(Inline).IsAssignableFrom(commonAncestor.ParentType) && TextSchema.HasTextDecorations(commonAncestor.GetValue(Inline.TextDecorationsProperty)))
System\Windows\Documents\TextSchema.cs (14)
184if (typeof(Inline).IsAssignableFrom(newType)) 186return typeof(Inline).IsAssignableFrom(siblingType); 240Inline ancestor = element as Inline; 244ancestor = ancestor.Parent as Inline; 275return typeof(Inline).IsAssignableFrom(elementType) && !IsFormattingType(elementType); 815return typeof(Inline).IsAssignableFrom(childType) && 821return typeof(Inline).IsAssignableFrom(childType) && 830return typeof(Inline).IsAssignableFrom(childType); 954Inline.BaselineAlignmentProperty, 955Inline.TextDecorationsProperty, 968Inline.BaselineAlignmentProperty, 969Inline.TextDecorationsProperty, 1208Inline.FlowDirectionProperty,
System\windows\Documents\TextSelection.cs (3)
1432Inline ancestor = start.GetNonMergeableInlineAncestor(); 1461DependencyProperty[] inheritableProperties = TextSchema.GetInheritableProperties(typeof(Inline)); 1468while (element is Inline)
System\Windows\Documents\Underline.cs (2)
55public Underline(Inline childInline) : base(childInline) 68public Underline(Inline childInline, TextPointer insertionPosition) : base(childInline, insertionPosition)
System\Windows\Markup\Baml2006\Baml2006KnownTypes.cs (1)
383case 290: t = () => typeof(Inline); break;
System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
5866typeof(System.Windows.Documents.Inline),
System\Windows\Markup\KnownTypes.cs (1)
5837case KnownElements.Inline: t = typeof(System.Windows.Documents.Inline); break;