5 instantiations of Run
PresentationFramework (5)
src\Framework\MS\Internal\Controls\StickyNote\StickyNoteContentControl.cs (1)
202((RichTextBox)InnerControl).Document = new FlowDocument(new Paragraph(new Run()));
src\Framework\System\Windows\Controls\AccessText.cs (1)
590_accessKey = new Run(keyText);
src\Framework\System\Windows\Documents\Inline.cs (1)
162return new Run();
src\Framework\System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
8644bamlType.DefaultConstructor = delegate() { return new System.Windows.Documents.Run(); };
src\Framework\System\Windows\Markup\KnownTypes.cs (1)
1517case KnownElements.Run: o = new System.Windows.Documents.Run(); break;
93 references to Run
PresentationFramework (93)
src\Framework\MS\Internal\Annotations\Component\AnnotationHighlightLayer.cs (2)
1019if (typeof(Run).IsAssignableFrom(elementType) || 1035if (typeof(Run).IsAssignableFrom(elementType) ||
src\Framework\System\Windows\Controls\AccessText.cs (7)
453Run accessKey = o as Run; 544Run inlineScope = o as Run; 557Style accessKeyStyle = new Style(typeof(Run)); 727Run run = Inline.CreateImplicitRun(this); 788private Run _accessKey;
src\Framework\System\Windows\Controls\DeferredRunTextReference.cs (2)
28internal DeferredRunTextReference(Run run) 66private readonly Run _run;
src\Framework\System\Windows\Controls\RichTextBox.cs (1)
492firstInline is Run &&
src\Framework\System\Windows\Controls\TextBlock.cs (2)
214Run implicitRun = Inline.CreateImplicitRun(this); 2937Run implicitRun = Inline.CreateImplicitRun(((TextPointer)position).Parent);
src\Framework\System\Windows\Documents\FixedElement.cs (1)
387return typeof(Run);
src\Framework\System\Windows\Documents\FlowDocument.cs (2)
60/// <see cref="Run"/>, <see cref="Span"/>, <see cref="InlineUIContainer"/>, <see cref="Floater"/>, <see cref="Figure"/>. 63/// Only <see cref="Run"/> element can contain text directly. All other elements can only contain
src\Framework\System\Windows\Documents\Inline.cs (1)
160internal static Run CreateImplicitRun(DependencyObject parent)
src\Framework\System\Windows\Documents\InlineCollection.cs (4)
19[ContentWrapper(typeof(Run))] 210Run implicitRun = Run.CreateImplicitRun(this.Parent); 247InlineUIContainer implicitInlineUIContainer = Run.CreateImplicitInlineUIContainer(this.Parent);
src\Framework\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))
src\Framework\System\Windows\Documents\Span.cs (4)
120Invariant.Assert(start.Parent is Run); 122Invariant.Assert(end.Parent is Run); 151if (start.Parent is Run) 155if (end.Parent is Run)
src\Framework\System\Windows\Documents\TextContainer.cs (1)
324if (property.Property == Run.TextProperty)
src\Framework\System\windows\Documents\TextEditorSpelling.cs (1)
211if (typeof(Run).IsAssignableFrom(textStart.ParentType) &&
src\Framework\System\Windows\Documents\TextElement.cs (2)
928if (TextSchema.IsValidChild(/*parent:*/this, /*childType:*/typeof(Run))) 933Run implicitRun = Inline.CreateImplicitRun(this);
src\Framework\System\Windows\Documents\TextPointer.cs (7)
31/// <para>c) Get characters preceding or following the TextPointer when it is positioned within text run - <see cref="Run"/> element;</para> 520/// is positioned within <see cref="Run"/> element and has some non-emty sequence of characters 574/// If the TetPointer is positioned not inside a <see cref="Run"/> element, 650/// <para>Each 16-bit unicode character inside a <see cref="Run"/> element 3585Invariant.Assert(position.Parent is Run, "EnsureInsertionPosition() must return a position in text content"); 3586Run run = (Run)position.Parent;
src\Framework\System\Windows\Documents\TextPointerBase.cs (4)
170run is Run && 184if (TextSchema.IsValidChild(/*position*/backwardPosition, /*childType*/typeof(Run))) 210typeof(Inline).IsAssignableFrom(backwardType) && !TextSchema.IsMergeableInline(backwardType) && !typeof(Run).IsAssignableFrom(forwardType) && 214typeof(Inline).IsAssignableFrom(forwardType) && !TextSchema.IsMergeableInline(forwardType) && !typeof(Run).IsAssignableFrom(backwardType) &&
src\Framework\System\Windows\Documents\TextRangeBase.cs (1)
1314((TextPointer)thisRange.Start).Parent is Run &&
src\Framework\System\Windows\Documents\TextRangeEdit.cs (23)
189(inline.GetType() == typeof(Run) || inline.GetType() == typeof(Span)) && 236start.Parent is Run && 298(firstInline is Run && secondInline is Run || firstInline is Span && secondInline is Span) && 1017if (inline is Run && 1307Run previousRun = previousPosition.Parent as Run; 1316Run nextRun = nextPosition.Parent as Run; 1754Run run = splitPosition.Parent as Run; 1857private static Inline GetScopingFlowDirectionInline(Run run) 1879Run run = TextRangeEdit.GetNextRun(start, end); 1954if (commonAncestor is Run) 1956ApplyStructuralInlinePropertyAcrossRun(start, end, (Run)commonAncestor, formattingProperty, value); 2081private static Run GetNextRun(TextPointer pointer, TextPointer limit) 2083Run run = null; 2088(run = pointer.GetAdjacentElement(LogicalDirection.Forward) as Run) != null) 2096Invariant.Assert(pointer.Parent is Run); 2097run = pointer.Parent as Run; 2136private static void ApplyStructuralInlinePropertyAcrossRun(TextPointer start, TextPointer end, Run run, DependencyProperty formattingProperty, object value) 2153run = (Run)start.GetAdjacentElement(LogicalDirection.Forward); 2169(forwardElement is Run || forwardElement is Span))
src\Framework\System\Windows\Documents\TextRangeEditTables.cs (6)
895if (position.GetAdjacentElementFromOuterPosition(LogicalDirection.Forward) is Run) 901else if (position.GetAdjacentElementFromOuterPosition(LogicalDirection.Backward) is Run) 909Run implicitRun = Run.CreateImplicitRun(position.Parent); 924Run implicitRun = Run.CreateImplicitRun(implicitParagraph);
src\Framework\System\Windows\Documents\TextRangeSerialization.cs (2)
204if (elementLevel == EmptyDocumentDepth && typeof(Run).IsAssignableFrom(rangeStart.ParentType)) 207xmlWriter.WriteStartElement(typeof(Run).Name);
src\Framework\System\Windows\Documents\TextSchema.cs (7)
263typeof(Run).IsAssignableFrom(elementType) || 368if (typeof(Run).IsAssignableFrom(type)) 371return typeof(Run); 390return reduceElement ? typeof(Run) : typeof(InlineUIContainer); 482if (typeof(Run).IsAssignableFrom(type)) 811typeof(Run).IsAssignableFrom(parentType) || 1228Run.TextProperty,
src\Framework\System\Windows\Documents\TextStore.cs (1)
1146if (commonAncestor is Run)
src\Framework\System\Windows\Markup\Baml2006\Baml2006KnownTypes.cs (1)
634case 542: t = () => typeof(Run); break;
src\Framework\System\Windows\Markup\Baml2006\WpfGeneratedKnownProperties.cs (3)
5508Type type = typeof(System.Windows.Documents.Run); 5509DependencyProperty dp = System.Windows.Documents.Run.TextProperty; 5511this.GetXamlType(typeof(System.Windows.Documents.Run)), // DeclaringType
src\Framework\System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
8642typeof(System.Windows.Documents.Run),
src\Framework\System\Windows\Markup\KnownTypes.cs (2)
1875return System.Windows.Documents.Run.TextProperty; 6086case KnownElements.Run: t = typeof(System.Windows.Documents.Run); break;