Intersoft ClientUI Documentation
Span Class
Members  See Also  Send Feedback
Intersoft.Client.Documents Namespace : Span Class






Groups other Inline flow content elements.

Object Model

Span Class

Syntax

Visual Basic (Declaration) 
<ContentPropertyAttribute("Inlines")>
Public Class Span 
   Inherits Inline
Visual Basic (Usage)Copy Code
Dim instance As Span
C# 
[ContentPropertyAttribute("Inlines")]
public class Span : Inline 
Delphi 
public class Span = class(Inline)
JScript 
ContentPropertyAttribute("Inlines")
public class Span extends Inline
Managed Extensions for C++ 
[ContentPropertyAttribute("Inlines")]
public __gc class Span : public Inline 
C++/CLI 
[ContentPropertyAttribute("Inlines")]
public ref class Span : public Inline 

Remarks

Span groups other inline content elements together. Span is useful for applying common attributes to a group of inline elements, such as the same font attributes to multiple Run elements. Span is used in a similar manner to the <SPAN> tag in HTML.

XAML Copy Code
<Intersoft:FlowDocument>
    <Intersoft:Paragraph>
        <Intersoft:Span Foreground="DodgerBlue">
            <Intersoft:Run Text="lorem ipsum dolor sit amet, "/>
            <Intersoft:Underline>
                <Intersoft:Run>
                    consectetur adipisicing elit
                </Intersoft:Run>
            </Intersoft:Underline>
            <Intersoft:Run Text=", sed do eiusmod tempor incididunt ut labore et dolore magna aliqua."/>
        </Intersoft:Span>
    </Intersoft:Paragraph>
</Intersoft:FlowDocument>

The Inline elements that are inherited from Span are Bold, Italic, Underline, and Hyperlink.

Inheritance Hierarchy

System.Object
   System.Windows.DependencyObject
      Intersoft.Client.Documents.TextElement
         Intersoft.Client.Documents.Inline
            Intersoft.Client.Documents.Span
               Intersoft.Client.Documents.Bold
               Intersoft.Client.Documents.Hyperlink
               Intersoft.Client.Documents.Italic
               Intersoft.Client.Documents.Underline

Requirements

Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© 2012 All Rights Reserved.