4 types derived from Span
PresentationFramework (4)
src\Framework\System\Windows\Documents\Bold.cs (1)
19public class Bold : Span
src\Framework\System\Windows\Documents\Hyperlink.cs (1)
36public class Hyperlink : Span, ICommandSource, IUriContext
src\Framework\System\Windows\Documents\Italic.cs (1)
19public class Italic : Span
src\Framework\System\Windows\Documents\Underline.cs (1)
18public class Underline : Span
6 instantiations of Span
PresentationFramework (6)
src\Framework\System\Windows\Documents\TextRangeEdit.cs (4)
506span = new Span(); 988span = new Span(firstChild.ElementStart, lastChild.ElementEnd); 1763Span span = new Span(run.ElementStart, run.ElementEnd); 2202span = new Span();
src\Framework\System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
9147bamlType.DefaultConstructor = delegate() { return new System.Windows.Documents.Span(); };
src\Framework\System\Windows\Markup\KnownTypes.cs (1)
1545case KnownElements.Span: o = new System.Windows.Documents.Span(); break;
71 references to Span
PresentationFramework (71)
src\Framework\System\Windows\Documents\FixedElement.cs (1)
390return typeof(Span);
src\Framework\System\Windows\Documents\FlowDocument.cs (1)
60/// <see cref="Run"/>, <see cref="Span"/>, <see cref="InlineUIContainer"/>, <see cref="Floater"/>, <see cref="Figure"/>.
src\Framework\System\Windows\Documents\Span.cs (1)
161Invariant.Assert(TextSchema.IsValidChild(/*position*/start, /*childType*/typeof(Span)));
src\Framework\System\windows\Documents\TextEditorCopyPaste.cs (2)
890if ((element is Section || element is Span) && PasteTextElement(This, (TextElement)element)) 967if ((textElement is Section || textElement is Span) && PasteTextElement(This, textElement))
src\Framework\System\Windows\Documents\TextRangeBase.cs (2)
1602if (!(element is Section) && !(element is Span)) 1619if (!(textElement is Section) && !(textElement is Span))
src\Framework\System\Windows\Documents\TextRangeEdit.cs (44)
138DependencyProperty[] noninheritableProperties = TextSchema.GetNoninheritableProperties(typeof(Span)); 189(inline.GetType() == typeof(Run) || inline.GetType() == typeof(Span)) && 298(firstInline is Run && secondInline is Run || firstInline is Span && secondInline is Span) && 339Span parentSpan = (Span)inline.Parent; 350DependencyProperty[] inheritableProperties = TextSchema.GetInheritableProperties(typeof(Span)); 375DependencyProperty[] nonInheritableProperties = TextSchema.GetNoninheritableProperties(typeof(Span)); 429if (parent is Span && parent.ContentEnd.CompareTo(end) > 0) 436else if (parent is Span && TextSchema.IsKnownType(parent.GetType())) 442Span newSpan = TransferNonFormattingInlineProperties((Span)parent); 492private static Span TransferNonFormattingInlineProperties(Span source) 494Span span = null; 935firstChild is Span && 938firstChild = ((Span)firstChild).Inlines.FirstInline; 939lastChild = ((Span)lastChild).Inlines.LastInline; 984Span span = firstChild.Parent as Span; 1294if (!(commonAncestor is Span || commonAncestor is Paragraph)) 1763Span span = new Span(run.ElementStart, run.ElementEnd); 1865inline = (Span)inline.Parent; 1981for (Inline searchInline = inline; searchInline != null; searchInline = searchInline.Parent as Span) 1993for (Inline searchInline = inline; searchInline != null; searchInline = searchInline.Parent as Span) 2008Span topmostSpan = inline as Span; 2009Span parent = inline.Parent as Span; 2015parent = parent.Parent as Span; 2031topmostSpan = child as Span; 2038Span conflictingParent = null; 2040for (Span parent = child.Parent as Span; 2042parent = parent.Parent as Span) 2057Span parent = (Span)end.GetAdjacentElement(LogicalDirection.Backward); 2063Span nextSpan = parent.Inlines.FirstInline as Span; 2169(forwardElement is Run || forwardElement is Span)) 2180if (forwardElement is Span) 2188Span span; 2190if (commonAncestor is Span && 2197span = (Span)commonAncestor;
src\Framework\System\Windows\Documents\TextRangeSerialization.cs (6)
675rootType = typeof(Span); 716if (rootType == typeof(Span)) 720WriteNoninheritableProperties(typeof(Span), context, xmlWriter, /*onlyAffected:*/false, complexProperties); 863Invariant.Assert(elementTypeStandardized == typeof(Span), "Request for contextual properties is expected for Span wrapper only"); 1288Invariant.Assert(fragment is Section || fragment is Span, "The wrapper element must be a Section or Span"); 1329if (fragment is Span)
src\Framework\System\Windows\Documents\TextSchema.cs (5)
264typeof(Span).IsAssignableFrom(elementType); 380else if (typeof(Span).IsAssignableFrom(type)) 383return typeof(Span); 494else if (typeof(Span).IsAssignableFrom(type)) 835else if (typeof(Span).IsAssignableFrom(parentType) ||
src\Framework\System\windows\Documents\TextSelection.cs (1)
1484DependencyProperty[] noninheritableProperties = TextSchema.GetNoninheritableProperties(typeof(Span));
src\Framework\System\Windows\Documents\TextStore.cs (1)
1154else if (commonAncestor is Paragraph || commonAncestor is Span)
src\Framework\System\Windows\Markup\Baml2006\Baml2006KnownTypes.cs (1)
672case 580: t = () => typeof(Span); break;
src\Framework\System\Windows\Markup\Baml2006\WpfGeneratedKnownProperties.cs (3)
5611Type type = typeof(System.Windows.Documents.Span); 5613this.GetXamlType(typeof(System.Windows.Documents.Span)), // DeclaringType 5619bamlMember.GetDelegate = delegate(object target) { return ((System.Windows.Documents.Span)target).Inlines; };
src\Framework\System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
9145typeof(System.Windows.Documents.Span),
src\Framework\System\Windows\Markup\KnownTypes.cs (2)
2458return (o as System.Windows.Documents.Span).Inlines; 6124case KnownElements.Span: t = typeof(System.Windows.Documents.Span); break;