New to Telerik ReportingStart a free 30-day trial

Base text appearance settings class (Font, Color)

Definition

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

Color

Color

Specifies the text color property

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

Font

Font

Specifies the text font properties

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

Methods

Clone()

object

Creates an object clone

C#
public object Clone()
Returns:

object

object

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()