New to Telerik UI for WinFormsStart a free 30-day trial

Base text appearance settings class (Font, Color)

Definition

Namespace:Telerik.Charting.Styles

Assembly:Telerik.WinControls.RadChart.dll

Syntax:

C#
[TypeConverter(typeof(ExpandableObjectConverter))]
public class TextProperties : StateManagedObject, IChartingStateManagedItem, IChartingStateManager, ICloneable

Inheritance: objectStateManagedObjectTextProperties

Derived Classes: TextPropertiesAxisItemTextPropertiesAxisLabelTextPropertiesErrorTextPropertiesSeriesItemTextPropertiesTitle

Implements: IChartingStateManagedItemIChartingStateManagerICloneable

Inherited Members StateManagedObject.CloneState()StateManagedObject.SaveViewState()StateManagedObject.TrackViewState()StateManagedObject.LoadViewState(object)StateManagedObject.SetDirty()StateManagedObject.ViewStateIgnoresCase...

Constructors

Creates a new class instance

C#
public TextProperties()

Creates a new class instance

C#
public TextProperties(Color color, Font font)
Parameters:colorColor

Text color

fontFont

Text font

Creates a new class instance

C#
public TextProperties(Color color, string familyName, float emSize, FontStyle fontStyle, GraphicsUnit grUnit)
Parameters:colorColor

Text color

familyNamestring

Font family

emSizefloat

Font size in EM

fontStyleFontStyle

Font style

grUnitGraphicsUnit

Graphics measurement unit

Creates a new class instance

C#
public TextProperties(Color color)
Parameters:colorColor

Text color

Properties

Specifies the text color property

C#
[TypeConverter(typeof(ColorConverter))]
[SkinnableProperty]
public virtual Color Color { get; set; }

Specifies the text font properties

C#
[TypeConverter(typeof(FontConverter))]
[SkinnableProperty]
public virtual Font Font { get; set; }

Methods

Creates an object clone

C#
public object Clone()
Returns:

object

object

Implements: ICloneable.Clone()

Determines whether the specified System.Object is equal to the current System.Object.

C#
public override bool Equals(object obj)
Parameters:objobject

The System.Object to compare with the current System.Object

Returns:

bool

true if the specified System.Object is equal to the current System.Object; otherwise, false.

Overrides: object.Equals(object)

Serves as a hash function for a TextProperties type.

C#
public override int GetHashCode()
Returns:

int

A hash code for the current class instance

Overrides: object.GetHashCode()