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