4 types derived from Span
PresentationFramework (4)
System\Windows\Documents\Bold.cs (1)
19
public class Bold :
Span
System\Windows\Documents\Hyperlink.cs (1)
34
public class Hyperlink :
Span
, ICommandSource, IUriContext
System\Windows\Documents\Italic.cs (1)
19
public class Italic :
Span
System\Windows\Documents\Underline.cs (1)
19
public class Underline :
Span
6 instantiations of Span
PresentationFramework (6)
System\Windows\Documents\TextRangeEdit.cs (4)
504
span = new
Span
();
986
span = new
Span
(firstChild.ElementStart, lastChild.ElementEnd);
1761
Span span = new
Span
(run.ElementStart, run.ElementEnd);
2200
span = new
Span
();
System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
9151
bamlType.DefaultConstructor = delegate() { return new System.Windows.Documents.
Span
(); };
System\Windows\Markup\KnownTypes.cs (1)
1544
case KnownElements.Span: o = new System.Windows.Documents.
Span
(); break;
71 references to Span
PresentationFramework (71)
System\Windows\Documents\FixedElement.cs (1)
384
return typeof(
Span
);
System\Windows\Documents\FlowDocument.cs (1)
55
/// <see cref="Run"/>, <see cref="
Span
"/>, <see cref="InlineUIContainer"/>, <see cref="Floater"/>, <see cref="Figure"/>.
System\Windows\Documents\Span.cs (1)
155
Invariant.Assert(TextSchema.IsValidChild(/*position*/start, /*childType*/typeof(
Span
)));
System\windows\Documents\TextEditorCopyPaste.cs (2)
719
if ((element is Section || element is
Span
) && PasteTextElement(This, (TextElement)element))
796
if ((textElement is Section || textElement is
Span
) && PasteTextElement(This, textElement))
System\Windows\Documents\TextRangeBase.cs (2)
1574
if (!(element is Section) && !(element is
Span
))
1591
if (!(textElement is Section) && !(textElement is
Span
))
System\Windows\Documents\TextRangeEdit.cs (44)
136
DependencyProperty[] noninheritableProperties = TextSchema.GetNoninheritableProperties(typeof(
Span
));
187
(inline.GetType() == typeof(Run) || inline.GetType() == typeof(
Span
)) &&
296
(firstInline is Run && secondInline is Run || firstInline is
Span
&& secondInline is
Span
) &&
337
Span
parentSpan = (
Span
)inline.Parent;
348
DependencyProperty[] inheritableProperties = TextSchema.GetInheritableProperties(typeof(
Span
));
373
DependencyProperty[] nonInheritableProperties = TextSchema.GetNoninheritableProperties(typeof(
Span
));
427
if (parent is
Span
&& parent.ContentEnd.CompareTo(end) > 0)
434
else if (parent is
Span
&& TextSchema.IsKnownType(parent.GetType()))
440
Span
newSpan = TransferNonFormattingInlineProperties((
Span
)parent);
490
private static
Span
TransferNonFormattingInlineProperties(
Span
source)
492
Span
span = null;
933
firstChild is
Span
&&
936
firstChild = ((
Span
)firstChild).Inlines.FirstInline;
937
lastChild = ((
Span
)lastChild).Inlines.LastInline;
982
Span
span = firstChild.Parent as
Span
;
1292
if (!(commonAncestor is
Span
|| commonAncestor is Paragraph))
1761
Span
span = new Span(run.ElementStart, run.ElementEnd);
1863
inline = (
Span
)inline.Parent;
1979
for (Inline searchInline = inline; searchInline != null; searchInline = searchInline.Parent as
Span
)
1991
for (Inline searchInline = inline; searchInline != null; searchInline = searchInline.Parent as
Span
)
2006
Span
topmostSpan = inline as
Span
;
2007
Span
parent = inline.Parent as
Span
;
2013
parent = parent.Parent as
Span
;
2029
topmostSpan = child as
Span
;
2036
Span
conflictingParent = null;
2038
for (
Span
parent = child.Parent as
Span
;
2040
parent = parent.Parent as
Span
)
2055
Span
parent = (
Span
)end.GetAdjacentElement(LogicalDirection.Backward);
2061
Span
nextSpan = parent.Inlines.FirstInline as
Span
;
2167
(forwardElement is Run || forwardElement is
Span
))
2178
if (forwardElement is
Span
)
2186
Span
span;
2188
if (commonAncestor is
Span
&&
2195
span = (
Span
)commonAncestor;
System\Windows\Documents\TextRangeSerialization.cs (6)
668
rootType = typeof(
Span
);
710
if (rootType == typeof(
Span
))
714
WriteNoninheritableProperties(typeof(
Span
), context, xmlWriter, /*onlyAffected:*/false, complexProperties);
857
Invariant.Assert(elementTypeStandardized == typeof(
Span
), "Request for contextual properties is expected for Span wrapper only");
1264
Invariant.Assert(fragment is Section || fragment is
Span
, "The wrapper element must be a Section or Span");
1305
if (fragment is
Span
)
System\Windows\Documents\TextSchema.cs (5)
262
typeof(
Span
).IsAssignableFrom(elementType);
378
else if (typeof(
Span
).IsAssignableFrom(type))
381
return typeof(
Span
);
492
else if (typeof(
Span
).IsAssignableFrom(type))
833
else if (typeof(
Span
).IsAssignableFrom(parentType) ||
System\windows\Documents\TextSelection.cs (1)
1481
DependencyProperty[] noninheritableProperties = TextSchema.GetNoninheritableProperties(typeof(
Span
));
System\Windows\Documents\TextStore.cs (1)
1282
else if (commonAncestor is Paragraph || commonAncestor is
Span
)
System\Windows\Markup\Baml2006\Baml2006KnownTypes.cs (1)
676
case 580: t = () => typeof(
Span
); break;
System\Windows\Markup\Baml2006\WpfGeneratedKnownProperties.cs (3)
5653
Type type = typeof(System.Windows.Documents.
Span
);
5655
this.GetXamlType(typeof(System.Windows.Documents.
Span
)), // DeclaringType
5661
bamlMember.GetDelegate = delegate(object target) { return ((System.Windows.Documents.
Span
)target).Inlines; };
System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
9149
typeof(System.Windows.Documents.
Span
),
System\Windows\Markup\KnownTypes.cs (2)
2465
return (o as System.Windows.Documents.
Span
).Inlines;
6134
case KnownElements.Span: t = typeof(System.Windows.Documents.
Span
); break;