Class
TextProperties

Base text appearance settings class (Font, Color)

Definition

Namespace:Telerik.Charting.Styles

Assembly:Telerik.WinControls.RadChart.dll

Syntax:

cs-api-definition
[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

TextProperties()

Creates a new class instance

Declaration

cs-api-definition
public TextProperties()

TextProperties(Color)

Creates a new class instance

Declaration

cs-api-definition
public TextProperties(Color color)

Parameters

color

Color

Text color

TextProperties(Color, Font)

Creates a new class instance

Declaration

cs-api-definition
public TextProperties(Color color, Font font)

Parameters

color

Color

Text color

font

Font

Text font

TextProperties(Color, string, float, FontStyle, GraphicsUnit)

Creates a new class instance

Declaration

cs-api-definition
public TextProperties(Color color, string familyName, float emSize, FontStyle fontStyle, GraphicsUnit grUnit)

Parameters

color

Color

Text color

familyName

string

Font family

emSize

float

Font size in EM

fontStyle

FontStyle

Font style

grUnit

GraphicsUnit

Graphics measurement unit

Properties

Color

Specifies the text color property

Declaration

cs-api-definition
[TypeConverter(typeof(ColorConverter))]
[SkinnableProperty]
public virtual Color Color { get; set; }

Property Value

Color

Font

Specifies the text font properties

Declaration

cs-api-definition
[TypeConverter(typeof(FontConverter))]
[SkinnableProperty]
public virtual Font Font { get; set; }

Property Value

Font

Methods

Clone()

Creates an object clone

Declaration

cs-api-definition
public object Clone()

Returns

object

object

Implements ICloneable.Clone()

Equals(object)

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

Declaration

cs-api-definition
public override bool Equals(object obj)

Parameters

obj

object

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)

GetHashCode()

Serves as a hash function for a TextProperties type.

Declaration

cs-api-definition
public override int GetHashCode()

Returns

int

A hash code for the current class instance

Overrides object.GetHashCode()