12 instantiations of Run
Microsoft.CodeAnalysis.EditorFeatures.Wpf (2)
InlineDiagnostics\InlineDiagnosticsTag.cs (1)
144var id = new Run(_diagnostic.Id);
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)
61inlines.Insert(0, new Run(prefixString)); 62inlines.Add(new Run(suffixString));
UnusedReferences\Dialog\UnusedReferencesTableProvider.ColumnDefinitions.cs (1)
72block.Inlines.Add(new Run(text)
Microsoft.VisualStudio.LanguageServices.UnitTests (1)
Options\OptionPageSearchHandlerTests.vb (1)
190Return New Run(content)
PresentationFramework (5)
MS\Internal\Controls\StickyNote\StickyNoteContentControl.cs (1)
191((RichTextBox)InnerControl).Document = new FlowDocument(new Paragraph(new Run()));
System\Windows\Controls\AccessText.cs (1)
588_accessKey = new Run(keyText);
System\Windows\Documents\Inline.cs (1)
157return new Run();
System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
8646bamlType.DefaultConstructor = delegate() { return new System.Windows.Documents.Run(); };
System\Windows\Markup\KnownTypes.cs (1)
1516case KnownElements.Run: o = new System.Windows.Documents.Run(); break;
114 references to Run
Microsoft.CodeAnalysis.EditorFeatures.Wpf (8)
InlineDiagnostics\InlineDiagnosticsTag.cs (3)
67var idRun = GetRunForId(out var hyperlink); 142Run GetRunForId(out Hyperlink? link) 144var 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.UnitTests (8)
InheritanceMargin\InheritanceMarginViewModelTests.vb (1)
120.OfType(Of Run).Select(Function(run) run.Text) _
Options\OptionPageSearchHandlerTests.vb (7)
164Private Shared Sub TestSearchString(controlContent As String, searchString As String, ParamArray runs As Run()) 177Dim actualRuns = textBlock.Inlines.OfType(Of Run).ToArray() 189Private Shared Function Normal(content As String) As Run 193Private Shared Function Underline(content As String) As Run 199Private Shared Function Highlight(content As String) As Run 203Private Shared Function Highlight(run As Run) As Run
PresentationFramework (93)
MS\Internal\Annotations\Component\AnnotationHighlightLayer.cs (2)
995if (typeof(Run).IsAssignableFrom(elementType) || 1010if (typeof(Run).IsAssignableFrom(elementType) ||
System\Windows\Controls\AccessText.cs (7)
451Run accessKey = o as Run; 542Run inlineScope = o as Run; 555Style accessKeyStyle = new Style(typeof(Run)); 723Run run = Inline.CreateImplicitRun(this); 784private Run _accessKey;
System\Windows\Controls\DeferredRunTextReference.cs (2)
26internal DeferredRunTextReference(Run run) 64private readonly Run _run;
System\Windows\Controls\RichTextBox.cs (1)
477firstInline is Run &&
System\Windows\Controls\TextBlock.cs (2)
192Run implicitRun = Inline.CreateImplicitRun(this); 2838Run implicitRun = Inline.CreateImplicitRun(((TextPointer)position).Parent);
System\Windows\Documents\FixedElement.cs (1)
373return typeof(Run);
System\Windows\Documents\FlowDocument.cs (2)
55/// <see cref="Run"/>, <see cref="Span"/>, <see cref="InlineUIContainer"/>, <see cref="Floater"/>, <see cref="Figure"/>. 58/// Only <see cref="Run"/> element can contain text directly. All other elements can only contain
System\Windows\Documents\Inline.cs (1)
155internal static Run CreateImplicitRun(DependencyObject parent)
System\Windows\Documents\InlineCollection.cs (4)
19[ContentWrapper(typeof(Run))] 205Run implicitRun = Run.CreateImplicitRun(this.Parent); 238InlineUIContainer implicitInlineUIContainer = Run.CreateImplicitInlineUIContainer(this.Parent);
System\Windows\Documents\Run.cs (5)
105public static readonly DependencyProperty TextProperty = DependencyProperty.Register("Text", typeof(string), typeof(Run), 230Run run = (Run)d; 280if (rtb != null && run.HasExpression(run.LookupEntry(Run.TextProperty.GlobalIndex), Run.TextProperty))
System\Windows\Documents\Span.cs (4)
113Invariant.Assert(start.Parent is Run); 115Invariant.Assert(end.Parent is Run); 144if (start.Parent is Run) 148if (end.Parent is Run)
System\Windows\Documents\TextContainer.cs (1)
304if (property.Property == Run.TextProperty)
System\windows\Documents\TextEditorSpelling.cs (1)
208if (typeof(Run).IsAssignableFrom(textStart.ParentType) &&
System\Windows\Documents\TextElement.cs (2)
883if (TextSchema.IsValidChild(/*parent:*/this, /*childType:*/typeof(Run))) 887Run implicitRun = Inline.CreateImplicitRun(this);
System\Windows\Documents\TextPointer.cs (7)
24/// <para>c) Get characters preceding or following the TextPointer when it is positioned within text run - <see cref="Run"/> element;</para> 504/// is positioned within <see cref="Run"/> element and has some non-emty sequence of characters 558/// If the TetPointer is positioned not inside a <see cref="Run"/> element, 634/// <para>Each 16-bit unicode character inside a <see cref="Run"/> element 3554Invariant.Assert(position.Parent is Run, "EnsureInsertionPosition() must return a position in text content"); 3555Run run = (Run)position.Parent;
System\Windows\Documents\TextPointerBase.cs (4)
166run is Run && 180if (TextSchema.IsValidChild(/*position*/backwardPosition, /*childType*/typeof(Run))) 206typeof(Inline).IsAssignableFrom(backwardType) && !TextSchema.IsMergeableInline(backwardType) && !typeof(Run).IsAssignableFrom(forwardType) && 210typeof(Inline).IsAssignableFrom(forwardType) && !TextSchema.IsMergeableInline(forwardType) && !typeof(Run).IsAssignableFrom(backwardType) &&
System\Windows\Documents\TextRangeBase.cs (1)
1297((TextPointer)thisRange.Start).Parent is Run &&
System\Windows\Documents\TextRangeEdit.cs (23)
185(inline.GetType() == typeof(Run) || inline.GetType() == typeof(Span)) && 232start.Parent is Run && 294(firstInline is Run && secondInline is Run || firstInline is Span && secondInline is Span) && 1013if (inline is Run && 1303Run previousRun = previousPosition.Parent as Run; 1312Run nextRun = nextPosition.Parent as Run; 1750Run run = splitPosition.Parent as Run; 1853private static Inline GetScopingFlowDirectionInline(Run run) 1875Run run = TextRangeEdit.GetNextRun(start, end); 1950if (commonAncestor is Run) 1952ApplyStructuralInlinePropertyAcrossRun(start, end, (Run)commonAncestor, formattingProperty, value); 2077private static Run GetNextRun(TextPointer pointer, TextPointer limit) 2079Run run = null; 2084(run = pointer.GetAdjacentElement(LogicalDirection.Forward) as Run) != null) 2092Invariant.Assert(pointer.Parent is Run); 2093run = pointer.Parent as Run; 2132private static void ApplyStructuralInlinePropertyAcrossRun(TextPointer start, TextPointer end, Run run, DependencyProperty formattingProperty, object value) 2149run = (Run)start.GetAdjacentElement(LogicalDirection.Forward); 2165(forwardElement is Run || forwardElement is Span))
System\Windows\Documents\TextRangeEditTables.cs (6)
890if (position.GetAdjacentElementFromOuterPosition(LogicalDirection.Forward) is Run) 896else if (position.GetAdjacentElementFromOuterPosition(LogicalDirection.Backward) is Run) 904Run implicitRun = Run.CreateImplicitRun(position.Parent); 919Run implicitRun = Run.CreateImplicitRun(implicitParagraph);
System\Windows\Documents\TextRangeSerialization.cs (2)
192if (elementLevel == EmptyDocumentDepth && typeof(Run).IsAssignableFrom(rangeStart.ParentType)) 195xmlWriter.WriteStartElement(typeof(Run).Name);
System\Windows\Documents\TextSchema.cs (7)
260typeof(Run).IsAssignableFrom(elementType) || 365if (typeof(Run).IsAssignableFrom(type)) 368return typeof(Run); 387return reduceElement ? typeof(Run) : typeof(InlineUIContainer); 479if (typeof(Run).IsAssignableFrom(type)) 808typeof(Run).IsAssignableFrom(parentType) || 1225Run.TextProperty,
System\Windows\Documents\TextStore.cs (1)
1263if (commonAncestor is Run)
System\Windows\Markup\Baml2006\Baml2006KnownTypes.cs (1)
636case 542: t = () => typeof(Run); break;
System\Windows\Markup\Baml2006\WpfGeneratedKnownProperties.cs (3)
5548Type type = typeof(System.Windows.Documents.Run); 5549DependencyProperty dp = System.Windows.Documents.Run.TextProperty; 5551this.GetXamlType(typeof(System.Windows.Documents.Run)), // DeclaringType
System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
8644typeof(System.Windows.Documents.Run),
System\Windows\Markup\KnownTypes.cs (2)
1876return System.Windows.Documents.Run.TextProperty; 6096case KnownElements.Run: t = typeof(System.Windows.Documents.Run); break;