Span.Span(Inline) Constructor

Initializes a new instance of the Span class with the specified Inline object as the initial contents.

Namespace: System.Windows.Documents
Assembly: PresentationFramework (in presentationframework.dll)

public Span (
	Inline childInline
)
public Span (
	Inline childInline
)
public function Span (
	childInline : Inline
)
You cannot use constructors in XAML.

Parameters

childInline

The initial contents of the new Span.

The following example shows how to use this constructor to create a new Span that contains a Run.

// A child Inline element for the new Span element.
Run runx = new Run("The Run element derives from Inline, and is therefore" +
    "an acceptable child element for this new Span.");

// After this line executes, the new element "spanx"
// contains the specified Inline element, "runx".
Span spanx = new Span(runx);

Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0

Community Additions

ADD
Show: