Span Constructor (TextPointer, TextPointer)
Assembly: PresentationFramework (in PresentationFramework.dll)
This constructor is intended to initialize a new Span element such that it encloses a selection of pre-existing content.
The following example shows how to use this constructor to create a new Span that is applied to a range of content. The range of content is determined by the start and end TextPointer objects specified by the constructor.
The following figure shows how this example renders in a FlowDocument.
Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.