5 instantiations of Run
PresentationFramework (5)
MS\Internal\Controls\StickyNote\StickyNoteContentControl.cs (1)
196((RichTextBox)InnerControl).Document = new FlowDocument(new Paragraph(new Run()));
System\Windows\Controls\AccessText.cs (1)
590_accessKey = new Run(keyText);
System\Windows\Documents\Inline.cs (1)
157return new Run();
System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
8648bamlType.DefaultConstructor = delegate() { return new System.Windows.Documents.Run(); };
System\Windows\Markup\KnownTypes.cs (1)
1516case KnownElements.Run: o = new System.Windows.Documents.Run(); break;
93 references to Run
PresentationFramework (93)
MS\Internal\Annotations\Component\AnnotationHighlightLayer.cs (2)
1002if (typeof(Run).IsAssignableFrom(elementType) || 1017if (typeof(Run).IsAssignableFrom(elementType) ||
System\Windows\Controls\AccessText.cs (7)
453Run accessKey = o as Run; 544Run inlineScope = o as Run; 557Style accessKeyStyle = new Style(typeof(Run)); 725Run run = Inline.CreateImplicitRun(this); 786private Run _accessKey;
System\Windows\Controls\DeferredRunTextReference.cs (2)
26internal DeferredRunTextReference(Run run) 64private readonly Run _run;
System\Windows\Controls\RichTextBox.cs (1)
481firstInline is Run &&
System\Windows\Controls\TextBlock.cs (2)
202Run implicitRun = Inline.CreateImplicitRun(this); 2848Run implicitRun = Inline.CreateImplicitRun(((TextPointer)position).Parent);
System\Windows\Documents\FixedElement.cs (1)
381return 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)
20[ContentWrapper(typeof(Run))] 206Run implicitRun = Run.CreateImplicitRun(this.Parent); 239InlineUIContainer 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)
114Invariant.Assert(start.Parent is Run); 116Invariant.Assert(end.Parent is Run); 145if (start.Parent is Run) 149if (end.Parent is Run)
System\Windows\Documents\TextContainer.cs (1)
309if (property.Property == Run.TextProperty)
System\windows\Documents\TextEditorSpelling.cs (1)
209if (typeof(Run).IsAssignableFrom(textStart.ParentType) &&
System\Windows\Documents\TextElement.cs (2)
884if (TextSchema.IsValidChild(/*parent:*/this, /*childType:*/typeof(Run))) 888Run implicitRun = Inline.CreateImplicitRun(this);
System\Windows\Documents\TextPointer.cs (7)
29/// <para>c) Get characters preceding or following the TextPointer when it is positioned within text run - <see cref="Run"/> element;</para> 509/// is positioned within <see cref="Run"/> element and has some non-emty sequence of characters 563/// If the TetPointer is positioned not inside a <see cref="Run"/> element, 639/// <para>Each 16-bit unicode character inside a <see cref="Run"/> element 3559Invariant.Assert(position.Parent is Run, "EnsureInsertionPosition() must return a position in text content"); 3560Run run = (Run)position.Parent;
System\Windows\Documents\TextPointerBase.cs (4)
168run is Run && 182if (TextSchema.IsValidChild(/*position*/backwardPosition, /*childType*/typeof(Run))) 208typeof(Inline).IsAssignableFrom(backwardType) && !TextSchema.IsMergeableInline(backwardType) && !typeof(Run).IsAssignableFrom(forwardType) && 212typeof(Inline).IsAssignableFrom(forwardType) && !TextSchema.IsMergeableInline(forwardType) && !typeof(Run).IsAssignableFrom(backwardType) &&
System\Windows\Documents\TextRangeBase.cs (1)
1300((TextPointer)thisRange.Start).Parent is Run &&
System\Windows\Documents\TextRangeEdit.cs (23)
187(inline.GetType() == typeof(Run) || inline.GetType() == typeof(Span)) && 234start.Parent is Run && 296(firstInline is Run && secondInline is Run || firstInline is Span && secondInline is Span) && 1015if (inline is Run && 1305Run previousRun = previousPosition.Parent as Run; 1314Run nextRun = nextPosition.Parent as Run; 1752Run run = splitPosition.Parent as Run; 1855private static Inline GetScopingFlowDirectionInline(Run run) 1877Run run = TextRangeEdit.GetNextRun(start, end); 1952if (commonAncestor is Run) 1954ApplyStructuralInlinePropertyAcrossRun(start, end, (Run)commonAncestor, formattingProperty, value); 2079private static Run GetNextRun(TextPointer pointer, TextPointer limit) 2081Run run = null; 2086(run = pointer.GetAdjacentElement(LogicalDirection.Forward) as Run) != null) 2094Invariant.Assert(pointer.Parent is Run); 2095run = pointer.Parent as Run; 2134private static void ApplyStructuralInlinePropertyAcrossRun(TextPointer start, TextPointer end, Run run, DependencyProperty formattingProperty, object value) 2151run = (Run)start.GetAdjacentElement(LogicalDirection.Forward); 2167(forwardElement is Run || forwardElement is Span))
System\Windows\Documents\TextRangeEditTables.cs (6)
892if (position.GetAdjacentElementFromOuterPosition(LogicalDirection.Forward) is Run) 898else if (position.GetAdjacentElementFromOuterPosition(LogicalDirection.Backward) is Run) 906Run implicitRun = Run.CreateImplicitRun(position.Parent); 921Run implicitRun = Run.CreateImplicitRun(implicitParagraph);
System\Windows\Documents\TextRangeSerialization.cs (2)
198if (elementLevel == EmptyDocumentDepth && typeof(Run).IsAssignableFrom(rangeStart.ParentType)) 201xmlWriter.WriteStartElement(typeof(Run).Name);
System\Windows\Documents\TextSchema.cs (7)
261typeof(Run).IsAssignableFrom(elementType) || 366if (typeof(Run).IsAssignableFrom(type)) 369return typeof(Run); 388return reduceElement ? typeof(Run) : typeof(InlineUIContainer); 480if (typeof(Run).IsAssignableFrom(type)) 809typeof(Run).IsAssignableFrom(parentType) || 1226Run.TextProperty,
System\Windows\Documents\TextStore.cs (1)
1274if (commonAncestor is Run)
System\Windows\Markup\Baml2006\Baml2006KnownTypes.cs (1)
638case 542: t = () => typeof(Run); break;
System\Windows\Markup\Baml2006\WpfGeneratedKnownProperties.cs (3)
5550Type type = typeof(System.Windows.Documents.Run); 5551DependencyProperty dp = System.Windows.Documents.Run.TextProperty; 5553this.GetXamlType(typeof(System.Windows.Documents.Run)), // DeclaringType
System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
8646typeof(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;