New to Telerik UI for ASP.NET AJAX? Start a free 30-day trial

Base class providing common label appearance configuration (format, text style, colors, border, client template and custom visual) for concrete chart label appearance implementations (series, axis, etc.). Handles serialization of the shared settings.

Definition

Namespace:Telerik.Web.UI.HtmlChart.PlotArea

Assembly:Telerik.Web.UI.dll

Syntax:

C#
public class LabelsAppearanceBase : AppearanceBase, IDefaultCheck

Inheritance: objectObjectWithStateAppearanceBaseLabelsAppearanceBase

Derived Classes: AxisLabelsAppearanceSeriesLabelsAppearanceBase

Implements: IDefaultCheck

Inherited Members AppearanceBase.VisibleAppearanceBase.RotationAngleobject.ToString()object.Equals(object)object.Equals(object, object)object.ReferenceEquals(object, object)object.GetHashCode()object.GetType()object.MemberwiseClone()...

Constructors

C#
public LabelsAppearanceBase(string prefix, StateBag OwnerStateBag)
Parameters:prefixstringOwnerStateBagStateBag

Properties

Specifies background color

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

Specifies the border settings of the outliers.

C#
[PersistenceMode(PersistenceMode.InnerProperty)]
public LabelBorderAppearance Border { get; }

A way to define a client-side template for the labels appearance.

#= value #

C#
[Browsable(true)]
[Bindable(true)]
[PersistenceMode(PersistenceMode.InnerProperty)]
public string ClientTemplate { get; set; }

Specifies text color of the labels

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

Get/Set the data format string of the labels

C#
public string DataFormatString { get; set; }

Defines the text style settings

C#
[PersistenceMode(PersistenceMode.InnerProperty)]
public TextStyle TextStyle { get; }

A function that can be used to create a custom visual for the labels. The available argument fields are: text - the label text; rect - the kendo.geometry.Rect that defines where the visual should be rendered; options - the label options; createVisual - a function that can be used to get the default visual;

C#
public string Visual { get; set; }