Class TextPrimitive
Represents a text primitive.
Inheritance
System.Object
TextPrimitive
Implements
System.ICloneable
Assembly: Syncfusion.Shared.Base.dll
Syntax
public class TextPrimitive : Primitive, ICloneable
Constructors
TextPrimitive()
Declaration
TextPrimitive(GradientPanelExt)
Declaration
public TextPrimitive(GradientPanelExt owner)
Parameters
TextPrimitive(Size, String, GradientPanelExt)
Declaration
public TextPrimitive(Size size, string text, GradientPanelExt owner)
Parameters
Type |
Name |
Description |
System.Drawing.Size |
size |
|
System.String |
text |
|
GradientPanelExt |
owner |
|
TextPrimitive(String, GradientPanelExt)
Declaration
public TextPrimitive(string text, GradientPanelExt owner)
Parameters
Properties
Text
Gets or sets displayed text.
Declaration
public string Text { get; set; }
Property Value
TextColor
Gets or sets color of the displayed text.
Declaration
public Color TextColor { get; set; }
Property Value
Type |
System.Drawing.Color |
TextFont
Gets or sets font for displayed text.
Declaration
public Font TextFont { get; set; }
Property Value
Methods
Clone()
Declaration
public override object Clone()
Returns
Overrides
DrawBackground(Graphics)
Declaration
protected override void DrawBackground(Graphics g)
Parameters
Type |
Name |
Description |
System.Drawing.Graphics |
g |
|
Overrides
OnTextChanged()
Declaration
protected virtual void OnTextChanged()
OnTextColorChanged()
Declaration
protected virtual void OnTextColorChanged()
OnTextFontChanged()
Declaration
protected virtual void OnTextFontChanged()
Events
TextChanged
Declaration
public event EventHandler TextChanged
Event Type
TextColorChanged
Declaration
public event EventHandler TextColorChanged
Event Type
TextFontChanged
Declaration
public event EventHandler TextFontChanged
Event Type
Implements
System.ICloneable