Class TextElementBox
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Syncfusion.Windows.Tools.Controls
Assembly: Syncfusion.RichTextBoxAdv.WPF.dll
Syntax
public class TextElementBox : ElementBox
Constructors
TextElementBox()
Initializes the new instance of TextLayoutBox
Declaration
public TextElementBox()
TextElementBox(FrameworkElement)
Initializes the new instance of TextLayoutBox
Declaration
public TextElementBox(FrameworkElement element)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.FrameworkElement | element |
Properties
Baseline
Gets or Sets the baseline of the text
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
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 weight
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 |
Text
Gets or Sets the text present in the TextBlock
Declaration
public string Text { get; set; }
Property Value
Type |
---|
System.String |
Methods
DrawHighlight(Rect)
Declaration
public void DrawHighlight(Rect rect)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Rect | rect |
DrawStrikeThrough(Rect)
Declaration
public void DrawStrikeThrough(Rect rect)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Rect | rect |
DrawText()
Declaration
public void DrawText()
DrawUnderline(Rect)
Declaration
public void DrawUnderline(Rect rect)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Rect | rect |
GetBaselineOffset()
Declaration
public double GetBaselineOffset()
Returns
Type |
---|
System.Double |
OnTextChanged()
Declaration
protected override void OnTextChanged()
Overrides
Render()
Declaration
public override void Render()