13 instantiations of Run
Microsoft.CodeAnalysis.EditorFeatures (3)
InlineDiagnostics\InlineDiagnosticsTag.cs (1)
143var id = new Run(_diagnostic.Id);
InlineHints\InlineHintsTag.cs (1)
144var run = new Run(taggedText.ToVisibleDisplayString(includeLeftToRightMarker: true));
WpfClassificationExtensions.cs (1)
24var run = new Run(part.Text);
Microsoft.VisualStudio.LanguageServices (4)
FindReferences\RoslynDefinitionBucket.cs (1)
116var inlines = new List<Inline> { new Run(" ") };
InheritanceMargin\MarginGlyph\InheritanceMarginGlyphViewModel.cs (2)
60inlines.Insert(0, new Run(prefixString)); 61inlines.Add(new Run(suffixString));
UnusedReferences\Dialog\UnusedReferencesTableProvider.ColumnDefinitions.cs (1)
71block.Inlines.Add(new Run(text)
Microsoft.VisualStudio.LanguageServices.Implementation (1)
Options\OptionPageSearchHandler.cs (1)
109var run = new Run(_content.Substring(start, length));
PresentationFramework (5)
MS\Internal\Controls\StickyNote\StickyNoteContentControl.cs (1)
190((RichTextBox)InnerControl).Document = new FlowDocument(new Paragraph(new Run()));
System\Windows\Controls\AccessText.cs (1)
589_accessKey = new Run(keyText)
System\Windows\Documents\Inline.cs (1)
156return new Run();
System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
9560DefaultConstructor = delegate () { return new System.Windows.Documents.Run(); },
System\Windows\Markup\KnownTypes.cs (1)
1509case KnownElements.Run: o = new System.Windows.Documents.Run(); break;
108 references to Run
Microsoft.CodeAnalysis.EditorFeatures (8)
InlineDiagnostics\InlineDiagnosticsTag.cs (3)
66var idRun = GetRunForId(out var hyperlink); 141Run GetRunForId(out Hyperlink? link) 143var id = new Run(_diagnostic.Id);
InlineHints\InlineHintsTag.cs (1)
144var run = new Run(taggedText.ToVisibleDisplayString(includeLeftToRightMarker: true));
WpfClassificationExtensions.cs (4)
22public static Run ToRun(this ClassifiedText part, IClassificationFormatMap formatMap, ClassificationTypeMap typeMap) 24var run = new Run(part.Text); 38Action<Run, ClassifiedText, int> runCallback = null) 45var run = part.ToRun(formatMap, typeMap);
Microsoft.VisualStudio.LanguageServices (5)
artifacts\obj\Microsoft.VisualStudio.LanguageServices\Release\net472\PreviewPane\PreviewPane.g.cs (2)
102internal System.Windows.Documents.Run TitleRun; 241this.TitleRun = ((System.Windows.Documents.Run)(target));
StackTraceExplorer\FrameViewModel.cs (1)
34protected Run MakeClassifiedRun(string classificationName, string text)
StackTraceExplorer\IgnoredFrameViewModel.cs (1)
28var run = MakeClassifiedRun(ClassificationTypeNames.ExcludedCode, _frame.ToString());
Utilities\InlineExtensions.cs (1)
15Run run => run.Text,
Microsoft.VisualStudio.LanguageServices.Implementation (2)
Options\OptionPageSearchHandler.cs (2)
107private Run CreateRun(int start, int length, bool highlight, bool underline) 109var run = new Run(_content.Substring(start, length));
PresentationFramework (93)
MS\Internal\Annotations\Component\AnnotationHighlightLayer.cs (2)
991if (typeof(Run).IsAssignableFrom(elementType) || 1006if (typeof(Run).IsAssignableFrom(elementType) ||
System\Windows\Controls\AccessText.cs (7)
450Run accessKey = o as Run; 541Run inlineScope = o as Run; 554Style accessKeyStyle = new Style(typeof(Run)); 726Run run = Inline.CreateImplicitRun(this); 787private Run _accessKey;
System\Windows\Controls\DeferredRunTextReference.cs (2)
25internal DeferredRunTextReference(Run run) 63private readonly Run _run;
System\Windows\Controls\RichTextBox.cs (1)
478firstInline is Run &&
System\Windows\Controls\TextBlock.cs (2)
189Run implicitRun = Inline.CreateImplicitRun(this); 2826Run implicitRun = Inline.CreateImplicitRun(((TextPointer)position).Parent);
System\Windows\Documents\FixedElement.cs (1)
378return typeof(Run);
System\Windows\Documents\FlowDocument.cs (2)
54/// <see cref="Run"/>, <see cref="Span"/>, <see cref="InlineUIContainer"/>, <see cref="Floater"/>, <see cref="Figure"/>. 57/// Only <see cref="Run"/> element can contain text directly. All other elements can only contain
System\Windows\Documents\Inline.cs (1)
154internal static Run CreateImplicitRun(DependencyObject parent)
System\Windows\Documents\InlineCollection.cs (4)
18[ContentWrapper(typeof(Run))] 203Run implicitRun = Run.CreateImplicitRun(this.Parent); 236InlineUIContainer implicitInlineUIContainer = Run.CreateImplicitInlineUIContainer(this.Parent);
System\Windows\Documents\Run.cs (5)
95public static readonly DependencyProperty TextProperty = DependencyProperty.Register("Text", typeof(string), typeof(Run), 220Run run = (Run)d; 270if (rtb != null && run.HasExpression(run.LookupEntry(Run.TextProperty.GlobalIndex), Run.TextProperty))
System\Windows\Documents\Span.cs (4)
103Invariant.Assert(start.Parent is Run); 105Invariant.Assert(end.Parent is Run); 134if (start.Parent is Run) 138if (end.Parent is Run)
System\Windows\Documents\TextContainer.cs (1)
303if (property.Property == Run.TextProperty)
System\windows\Documents\TextEditorSpelling.cs (1)
207if (typeof(Run).IsAssignableFrom(textStart.ParentType) &&
System\Windows\Documents\TextElement.cs (2)
868if (TextSchema.IsValidChild(/*parent:*/this, /*childType:*/typeof(Run))) 872Run implicitRun = Inline.CreateImplicitRun(this);
System\Windows\Documents\TextPointer.cs (7)
23/// <para>c) Get characters preceding or following the TextPointer when it is positioned within text run - <see cref="Run"/> element;</para> 503/// is positioned within <see cref="Run"/> element and has some non-emty sequence of characters 557/// If the TetPointer is positioned not inside a <see cref="Run"/> element, 633/// <para>Each 16-bit unicode character inside a <see cref="Run"/> element 3553Invariant.Assert(position.Parent is Run, "EnsureInsertionPosition() must return a position in text content"); 3554Run run = (Run)position.Parent;
System\Windows\Documents\TextPointerBase.cs (4)
165run is Run && 179if (TextSchema.IsValidChild(/*position*/backwardPosition, /*childType*/typeof(Run))) 205typeof(Inline).IsAssignableFrom(backwardType) && !TextSchema.IsMergeableInline(backwardType) && !typeof(Run).IsAssignableFrom(forwardType) && 209typeof(Inline).IsAssignableFrom(forwardType) && !TextSchema.IsMergeableInline(forwardType) && !typeof(Run).IsAssignableFrom(backwardType) &&
System\Windows\Documents\TextRangeBase.cs (1)
1296((TextPointer)thisRange.Start).Parent is Run &&
System\Windows\Documents\TextRangeEdit.cs (23)
184(inline.GetType() == typeof(Run) || inline.GetType() == typeof(Span)) && 231start.Parent is Run && 293(firstInline is Run && secondInline is Run || firstInline is Span && secondInline is Span) && 1012if (inline is Run && 1302Run previousRun = previousPosition.Parent as Run; 1311Run nextRun = nextPosition.Parent as Run; 1749Run run = splitPosition.Parent as Run; 1852private static Inline GetScopingFlowDirectionInline(Run run) 1874Run run = TextRangeEdit.GetNextRun(start, end); 1949if (commonAncestor is Run) 1951ApplyStructuralInlinePropertyAcrossRun(start, end, (Run)commonAncestor, formattingProperty, value); 2076private static Run GetNextRun(TextPointer pointer, TextPointer limit) 2078Run run = null; 2083(run = pointer.GetAdjacentElement(LogicalDirection.Forward) as Run) != null) 2091Invariant.Assert(pointer.Parent is Run); 2092run = pointer.Parent as Run; 2131private static void ApplyStructuralInlinePropertyAcrossRun(TextPointer start, TextPointer end, Run run, DependencyProperty formattingProperty, object value) 2148run = (Run)start.GetAdjacentElement(LogicalDirection.Forward); 2164(forwardElement is Run || forwardElement is Span))
System\Windows\Documents\TextRangeEditTables.cs (6)
893if (position.GetAdjacentElementFromOuterPosition(LogicalDirection.Forward) is Run) 899else if (position.GetAdjacentElementFromOuterPosition(LogicalDirection.Backward) is Run) 907Run implicitRun = Run.CreateImplicitRun(position.Parent); 922Run implicitRun = Run.CreateImplicitRun(implicitParagraph);
System\Windows\Documents\TextRangeSerialization.cs (2)
191if (elementLevel == EmptyDocumentDepth && typeof(Run).IsAssignableFrom(rangeStart.ParentType)) 194xmlWriter.WriteStartElement(nameof(Run));
System\Windows\Documents\TextSchema.cs (7)
259typeof(Run).IsAssignableFrom(elementType) || 364if (typeof(Run).IsAssignableFrom(type)) 367return typeof(Run); 386return reduceElement ? typeof(Run) : typeof(InlineUIContainer); 478if (typeof(Run).IsAssignableFrom(type)) 802typeof(Run).IsAssignableFrom(parentType) || 1216Run.TextProperty,
System\Windows\Documents\TextStore.cs (1)
1259if (commonAncestor is Run)
System\Windows\Markup\Baml2006\Baml2006KnownTypes.cs (1)
635case 542: t = () => typeof(Run); break;
System\Windows\Markup\Baml2006\WpfGeneratedKnownProperties.cs (3)
5921Type type = typeof(System.Windows.Documents.Run); 5922DependencyProperty dp = System.Windows.Documents.Run.TextProperty; 5924this.GetXamlType(typeof(System.Windows.Documents.Run)), // DeclaringType
System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
9557typeof(System.Windows.Documents.Run),
System\Windows\Markup\KnownTypes.cs (2)
1869return System.Windows.Documents.Run.TextProperty; 6089case KnownElements.Run: t = typeof(System.Windows.Documents.Run); break;