menu

WinForms

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class SpanAdv - WindowsForms API Reference | Syncfusion

    Show / Hide Table of Contents

    Class SpanAdv

    Inheritance
    System.Object
    Inline
    SpanAdv
    Inherited Members
    Inline.HasEqualHighlightStyle(Inline)
    Inline.HasEqualStrikeThroStyle(Inline)
    Inline.HasEqualTextStyle(Inline)
    Inline.HasEqualUnderlineStyle(Inline)
    Inline.IsEqualInStyle(Inline)
    Namespace: Syncfusion.Windows.Tools.Controls
    Assembly: Syncfusion.RichTextBoxAdv.WPF.dll
    Syntax
    public class SpanAdv : Inline

    Constructors

    SpanAdv()

    Initializes the instance of span class

    Declaration
    public SpanAdv()

    Fields

    ParentSpanProperty

    Registers the attached property ParentSpan

    Declaration
    public static readonly DependencyProperty ParentSpanProperty
    Field Value
    Type
    System.Windows.DependencyProperty

    Properties

    Baseline

    Gets or Sets the baseline

    Declaration
    public Baseline Baseline { get; set; }
    Property Value
    Type
    Baseline

    FontFamily

    Gets or Sets the font family

    Declaration
    public FontFamily FontFamily { get; set; }
    Property Value
    Type
    System.Windows.Media.FontFamily

    FontSize

    Gets or Sets the font size. Reffered in pixels

    Declaration
    public double FontSize { get; set; }
    Property Value
    Type
    System.Double

    FontStyle

    Gets or Sets the font style

    Declaration
    public FontStyle FontStyle { get; set; }
    Property Value
    Type
    System.Windows.FontStyle

    FontWeight

    Gets or Sets the font style

    Declaration
    public FontWeight FontWeight { get; set; }
    Property Value
    Type
    System.Windows.FontWeight

    Foreground

    Gets or Sets the foreground

    Declaration
    public Color Foreground { get; set; }
    Property Value
    Type
    System.Windows.Media.Color

    HighlightColor

    Gets or Sets the highlight color

    Declaration
    public Color HighlightColor { get; set; }
    Property Value
    Type
    System.Windows.Media.Color

    IsSubScript

    Gets a value indicating whether the text is Subscript

    Declaration
    public bool IsSubScript { get; }
    Property Value
    Type
    System.Boolean

    IsSuperscript

    Gets a value indicating whether the text is Superscript

    Declaration
    public bool IsSuperscript { get; }
    Property Value
    Type
    System.Boolean

    StrikeThrough

    Gets or Sets the Strike through

    Declaration
    public StrikeThrough StrikeThrough { get; set; }
    Property Value
    Type
    StrikeThrough

    Text

    Gets or Sets the text

    Declaration
    public string Text { get; set; }
    Property Value
    Type
    System.String

    Underline

    Gets or Sets the under line

    Declaration
    public bool Underline { get; set; }
    Property Value
    Type
    System.Boolean

    Methods

    Clone(SpanAdv)

    Copies properties to specified span

    Declaration
    public void Clone(SpanAdv span)
    Parameters
    Type Name Description
    SpanAdv span

    CreateNewSpan()

    Declaration
    public SpanAdv CreateNewSpan()
    Returns
    Type
    SpanAdv

    GetCurrentSpan()

    Returns the current span

    Declaration
    public static SpanAdv GetCurrentSpan()
    Returns
    Type
    SpanAdv

    GetLength()

    Returns the length of the inline

    Declaration
    public override double GetLength()
    Returns
    Type
    System.Double
    Overrides
    Inline.GetLength()

    GetParentSpan(UIElement)

    Gets the Parent Span

    Declaration
    public static SpanAdv GetParentSpan(UIElement uiElement)
    Parameters
    Type Name Description
    System.Windows.UIElement uiElement
    Returns
    Type
    SpanAdv

    OnFontFamilyChanged(DependencyObject, DependencyPropertyChangedEventArgs)

    Declaration
    protected static void OnFontFamilyChanged(DependencyObject dependencyObject, DependencyPropertyChangedEventArgs args)
    Parameters
    Type Name Description
    System.Windows.DependencyObject dependencyObject
    System.Windows.DependencyPropertyChangedEventArgs args

    OnFontFamilyChanged(DependencyPropertyChangedEventArgs)

    Declaration
    protected virtual void OnFontFamilyChanged(DependencyPropertyChangedEventArgs args)
    Parameters
    Type Name Description
    System.Windows.DependencyPropertyChangedEventArgs args

    OnFontSizeChanged(DependencyObject, DependencyPropertyChangedEventArgs)

    Declaration
    protected static void OnFontSizeChanged(DependencyObject dependencyObject, DependencyPropertyChangedEventArgs args)
    Parameters
    Type Name Description
    System.Windows.DependencyObject dependencyObject
    System.Windows.DependencyPropertyChangedEventArgs args

    OnFontSizeChanged(DependencyPropertyChangedEventArgs)

    Declaration
    protected virtual void OnFontSizeChanged(DependencyPropertyChangedEventArgs args)
    Parameters
    Type Name Description
    System.Windows.DependencyPropertyChangedEventArgs args

    OnFontStylePropertyChanged(DependencyObject, DependencyPropertyChangedEventArgs)

    Declaration
    protected static void OnFontStylePropertyChanged(DependencyObject dependencyObject, DependencyPropertyChangedEventArgs args)
    Parameters
    Type Name Description
    System.Windows.DependencyObject dependencyObject
    System.Windows.DependencyPropertyChangedEventArgs args

    OnFontStylePropertyChanged(DependencyPropertyChangedEventArgs)

    Declaration
    protected virtual void OnFontStylePropertyChanged(DependencyPropertyChangedEventArgs args)
    Parameters
    Type Name Description
    System.Windows.DependencyPropertyChangedEventArgs args

    OnFontWeightPropertyChanged(DependencyObject, DependencyPropertyChangedEventArgs)

    Declaration
    protected static void OnFontWeightPropertyChanged(DependencyObject dependencyObject, DependencyPropertyChangedEventArgs args)
    Parameters
    Type Name Description
    System.Windows.DependencyObject dependencyObject
    System.Windows.DependencyPropertyChangedEventArgs args

    OnFontWeightPropertyChanged(DependencyPropertyChangedEventArgs)

    Declaration
    protected virtual void OnFontWeightPropertyChanged(DependencyPropertyChangedEventArgs args)
    Parameters
    Type Name Description
    System.Windows.DependencyPropertyChangedEventArgs args

    OnForegroundPropertyChanged(DependencyPropertyChangedEventArgs)

    Declaration
    protected virtual void OnForegroundPropertyChanged(DependencyPropertyChangedEventArgs args)
    Parameters
    Type Name Description
    System.Windows.DependencyPropertyChangedEventArgs args

    OnTextChanged()

    Declaration
    protected override void OnTextChanged()
    Overrides
    Inline.OnTextChanged()

    OnTextPropertyChanged(DependencyObject, DependencyPropertyChangedEventArgs)

    Declaration
    protected static void OnTextPropertyChanged(DependencyObject dependencyObject, DependencyPropertyChangedEventArgs args)
    Parameters
    Type Name Description
    System.Windows.DependencyObject dependencyObject
    System.Windows.DependencyPropertyChangedEventArgs args

    SetParentSpan(UIElement, SpanAdv)

    Sets the value for Parent Span property

    Declaration
    public static void SetParentSpan(UIElement uiElement, SpanAdv span)
    Parameters
    Type Name Description
    System.Windows.UIElement uiElement
    SpanAdv span

    SplitInToWord(String)

    Splits the text into words

    Declaration
    public static List<string> SplitInToWord(string text)
    Parameters
    Type Name Description
    System.String text
    Returns
    Type
    System.Collections.Generic.List<System.String>
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved