Class SpanAdv
Inheritance
System.Object
SpanAdv
Assembly: Syncfusion.RichTextBoxAdv.WPF.dll
public class SpanAdv : Inline
Constructors
Initializes the instance of span class
Declaration
Fields
Registers the attached property ParentSpan
Declaration
public static readonly DependencyProperty ParentSpanProperty
Field Value
Type |
System.Windows.DependencyProperty |
Properties
Gets or Sets the baseline
Declaration
public Baseline Baseline { get; set; }
Property Value
Gets or Sets the font family
Declaration
public FontFamily FontFamily { get; set; }
Property Value
Type |
System.Windows.Media.FontFamily |
Gets or Sets the font size. Reffered in pixels
Declaration
public double FontSize { get; set; }
Property Value
Gets or Sets the font style
Declaration
public FontStyle FontStyle { get; set; }
Property Value
Type |
System.Windows.FontStyle |
Gets or Sets the font style
Declaration
public FontWeight FontWeight { get; set; }
Property Value
Type |
System.Windows.FontWeight |
Gets or Sets the foreground
Declaration
public Color Foreground { get; set; }
Property Value
Type |
System.Windows.Media.Color |
Gets or Sets the highlight color
Declaration
public Color HighlightColor { get; set; }
Property Value
Type |
System.Windows.Media.Color |
Gets a value indicating whether the text is Subscript
Declaration
public bool IsSubScript { get; }
Property Value
Gets a value indicating whether the text is Superscript
Declaration
public bool IsSuperscript { get; }
Property Value
Gets or Sets the Strike through
Declaration
public StrikeThrough StrikeThrough { get; set; }
Property Value
Text
Declaration
public string Text { get; set; }
Property Value
Gets or Sets the under line
Declaration
public bool Underline { get; set; }
Property Value
Methods
Copies properties to specified span
Declaration
public void Clone(SpanAdv span)
Parameters
Declaration
public SpanAdv CreateNewSpan()
Returns
Declaration
public static SpanAdv GetCurrentSpan()
Returns
Returns the length of the inline
Declaration
public override double GetLength()
Returns
Overrides
Declaration
public static SpanAdv GetParentSpan(UIElement uiElement)
Parameters
Type |
Name |
Description |
System.Windows.UIElement |
uiElement |
|
Returns
Declaration
protected static void OnFontFamilyChanged(DependencyObject dependencyObject, DependencyPropertyChangedEventArgs args)
Parameters
Type |
Name |
Description |
System.Windows.DependencyObject |
dependencyObject |
|
System.Windows.DependencyPropertyChangedEventArgs |
args |
|
Declaration
protected virtual void OnFontFamilyChanged(DependencyPropertyChangedEventArgs args)
Parameters
Type |
Name |
Description |
System.Windows.DependencyPropertyChangedEventArgs |
args |
|
Declaration
protected static void OnFontSizeChanged(DependencyObject dependencyObject, DependencyPropertyChangedEventArgs args)
Parameters
Type |
Name |
Description |
System.Windows.DependencyObject |
dependencyObject |
|
System.Windows.DependencyPropertyChangedEventArgs |
args |
|
Declaration
protected virtual void OnFontSizeChanged(DependencyPropertyChangedEventArgs args)
Parameters
Type |
Name |
Description |
System.Windows.DependencyPropertyChangedEventArgs |
args |
|
Declaration
protected static void OnFontStylePropertyChanged(DependencyObject dependencyObject, DependencyPropertyChangedEventArgs args)
Parameters
Type |
Name |
Description |
System.Windows.DependencyObject |
dependencyObject |
|
System.Windows.DependencyPropertyChangedEventArgs |
args |
|
Declaration
protected virtual void OnFontStylePropertyChanged(DependencyPropertyChangedEventArgs args)
Parameters
Type |
Name |
Description |
System.Windows.DependencyPropertyChangedEventArgs |
args |
|
Declaration
protected static void OnFontWeightPropertyChanged(DependencyObject dependencyObject, DependencyPropertyChangedEventArgs args)
Parameters
Type |
Name |
Description |
System.Windows.DependencyObject |
dependencyObject |
|
System.Windows.DependencyPropertyChangedEventArgs |
args |
|
Declaration
protected virtual void OnFontWeightPropertyChanged(DependencyPropertyChangedEventArgs args)
Parameters
Type |
Name |
Description |
System.Windows.DependencyPropertyChangedEventArgs |
args |
|
Declaration
protected virtual void OnForegroundPropertyChanged(DependencyPropertyChangedEventArgs args)
Parameters
Type |
Name |
Description |
System.Windows.DependencyPropertyChangedEventArgs |
args |
|
OnTextChanged()
Declaration
protected override void OnTextChanged()
Overrides
OnTextPropertyChanged(DependencyObject, DependencyPropertyChangedEventArgs)
Declaration
protected static void OnTextPropertyChanged(DependencyObject dependencyObject, DependencyPropertyChangedEventArgs args)
Parameters
Type |
Name |
Description |
System.Windows.DependencyObject |
dependencyObject |
|
System.Windows.DependencyPropertyChangedEventArgs |
args |
|
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 |
|
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> |