Class
Axis

Definition

Namespace:Telerik.WinControls.UI

Assembly:Telerik.WinControls.ChartView.dll

Syntax:

cs-api-definition
public abstract class Axis : UIChartElement, IDisposable, INotifyPropertyChanged, ICustomTypeDescriptor, IChartElementPresenter, IStylableElement, IStylableNode, IFillElement, IBorderElement, IBoxStyle, IBoxElement, IShapedElement

Inheritance: objectDisposableObjectRadObjectUIChartElementAxis

Derived Classes: LineAxisRadialAxis

Implements: IBorderElementIBoxElementIBoxStyleIChartElementPresenterICustomTypeDescriptorIDisposableIFillElementINotifyPropertyChangedIShapedElementIStylableElementIStylableNode

Inherited Members UIChartElement.IsVisiblePropertyUIChartElement.ClassPropertyUIChartElement.VisualStatePropertyUIChartElement.IsMouseDownPropertyUIChartElement.IsMouseOverPropertyUIChartElement.FontPropertyUIChartElement.CustomFontPropertyUIChartElement.CustomFontSizePropertyUIChartElement.CustomFontStylePropertyUIChartElement.ForeColorPropertyUIChartElement.BackColorPropertyUIChartElement.BackColor2PropertyUIChartElement.BackColor3PropertyUIChartElement.BackColor4PropertyUIChartElement.NumberOfColorsPropertyUIChartElement.GradientStylePropertyUIChartElement.GradientAnglePropertyUIChartElement.GradientPercentagePropertyUIChartElement.GradientPercentage2PropertyUIChartElement.BorderBoxStylePropertyUIChartElement.BorderDrawModePropertyUIChartElement.BorderWidthPropertyUIChartElement.BorderLeftWidthPropertyUIChartElement.BorderRightWidthPropertyUIChartElement.BorderTopWidthPropertyUIChartElement.BorderBottomWidthPropertyUIChartElement.BorderGradientAnglePropertyUIChartElement.BorderGradientStylePropertyUIChartElement.BorderColorPropertyUIChartElement.BorderColor2PropertyUIChartElement.BorderColor3PropertyUIChartElement.BorderColor4PropertyUIChartElement.BorderInnerColorPropertyUIChartElement.BorderInnerColor2PropertyUIChartElement.BorderInnerColor3PropertyUIChartElement.BorderInnerColor4PropertyUIChartElement.BorderLeftColorPropertyUIChartElement.BorderTopColorPropertyUIChartElement.BorderRightColorPropertyUIChartElement.BorderBottomColorPropertyUIChartElement.BorderLeftShadowColorPropertyUIChartElement.BorderTopShadowColorPropertyUIChartElement.BorderRightShadowColorPropertyUIChartElement.BorderBottomShadowColorPropertyUIChartElement.BackgroundShapePropertyUIChartElement.BorderDashStylePropertyUIChartElement.BorderDashPatternPropertyUIChartElement.BorderCornerRadiusPropertyUIChartElement.ShapePropertyUIChartElement.PaddingPropertyUIChartElement.SmoothingModePropertyUIChartElement.GetValue(RadProperty)UIChartElement.Attach(UIChartElement)UIChartElement.Dettach()UIChartElement.Refresh()UIChartElement.Invalidate()UIChartElement.DpiScaleChanged(SizeF)UIChartElement.GetScaledFont(float)UIChartElement.GetCurrentShape()UIChartElement.GetThemeEffectiveType()UIChartElement.ApplyStyleSettingsCore(PropertySettingGroup)UIChartElement.ApplyStyle()UIChartElement.AddStylePropertySetting(IPropertySetting)UIChartElement.ApplyStyleByIndex(PropertySettingGroup, int)UIChartElement.ParentUIChartElement.LevelUIChartElement.ChildrenUIChartElement.IsMouseDownUIChartElement.IsMouseOverUIChartElement.ViewUIChartElement.IsVisibleUIChartElement.ForeColorUIChartElement.FontUIChartElement.BackColorUIChartElement.BackColor2UIChartElement.BackColor3UIChartElement.BackColor4UIChartElement.GradientStyleUIChartElement.GradientAngleUIChartElement.GradientPercentageUIChartElement.GradientPercentage2UIChartElement.NumberOfColorsUIChartElement.BorderLeftColorUIChartElement.BorderTopColorUIChartElement.BorderRightColorUIChartElement.BorderBottomColorUIChartElement.BorderLeftShadowColorUIChartElement.BorderTopShadowColorUIChartElement.BorderRightShadowColorUIChartElement.BorderBottomShadowColorUIChartElement.BorderBoxStyleUIChartElement.BorderDrawModeUIChartElement.BorderWidthUIChartElement.BorderLeftWidthUIChartElement.BorderTopWidthUIChartElement.BorderRightWidthUIChartElement.BorderBottomWidthUIChartElement.BorderGradientAngleUIChartElement.BorderGradientStyleUIChartElement.BorderColorUIChartElement.BorderColor2UIChartElement.BorderColor3UIChartElement.BorderColor4UIChartElement.BorderInnerColorUIChartElement.BorderInnerColor2UIChartElement.BorderInnerColor3UIChartElement.BorderInnerColor4UIChartElement.BorderDashStyleUIChartElement.BorderDashPatternUIChartElement.BorderCornerRadiusUIChartElement.SizeUIChartElement.ShapeUIChartElement.BackgroundShapeUIChartElement.PaddingUIChartElement.SmoothingModeUIChartElement.IsAttachedUIChartElement.DpiScaleFactorUIChartElement.ClassUIChartElement.VisualStateUIChartElement.ThemeRoleUIChartElement.ChildrenHierarchyUIChartElement.StyleUIChartElement.StateManagerUIChartElement.FallbackToDefaultThemeRadObject.BindingContextPropertyRadObject.RadTypeRadObject.ReplaceDefaultDescriptors(PropertyDescriptorCollection)RadObject.DisposeManagedResources()RadObject.ClearPropertyStore()RadObject.SuspendPropertyNotifications()RadObject.ResumePropertyNotifications()RadObject.GetPropertyValue(RadProperty)RadObject.SetDefaultValueOverride(RadProperty, object)RadObject.SetValue(RadProperty, object)RadObject.ResetValue(RadProperty)RadObject.ResetLocalValue(RadProperty)RadObject.ResetValue(RadProperty, ValueResetFlags)RadObject.UpdateValue(RadProperty)RadObject.GetValueSource(RadProperty)RadObject.GetRegisteredRadProperty(string)RadObject.UpdateValueCore(RadPropertyValue)RadObject.SetValueCore(RadPropertyValue, object, object, ValueSource)RadObject.ResetValueCore(RadPropertyValue, ValueResetFlags)RadObject.GetDefaultValue(RadPropertyValue, object)RadObject.CoerceValue(RadPropertyValue, object)RadObject.ShouldSerializeProperty(RadProperty)RadObject.CanRaisePropertyChangeNotifications(RadPropertyValue)RadObject.BindProperty(RadProperty, RadObject, RadProperty, PropertyBindingOptions)RadObject.UnbindProperty(RadProperty)RadObject.GetInheritedValue(RadProperty)RadObject.OnPropertyChanging(RadPropertyChangingEventArgs)RadObject.OnNotifyPropertyChanged(string)RadObject.OnNotifyPropertyChanged(PropertyChangedEventArgs)RadObject.OnShouldSerializeProperty(ShouldSerializePropertyEventArgs)RadObject.IsPropertyCancelable(RadPropertyMetadata)RadObject.PropertyValuesRadObject.PropertyFilterRadObject.RadObjectTypeRadObject.BindingContextRadObject.PropertyChangedRadObject.RadPropertyChangedRadObject.RadPropertyChangingDisposableObject.GetBitState(long)DisposableObject.SetBitState(long, bool)DisposableObject.OnBitStateChanged(long, bool, bool)DisposableObject.Dispose()DisposableObject.Dispose(bool)DisposableObject.PerformDispose(bool)DisposableObject.DisposeUnmanagedResources()DisposableObject.BitStateDisposableObject.EventsDisposableObject.IsDisposingDisposableObject.IsDisposedDisposableObject.DisposedDisposableObject.Disposing

Constructors

Axis()

Initializes a new instance of the Axis class.

Declaration

cs-api-definition
public Axis()

Fields

LabelFitModeProperty

Declaration

cs-api-definition
public static RadProperty LabelFitModeProperty

Field Value

RadProperty

LabelFormatProperty

Declaration

cs-api-definition
public static RadProperty LabelFormatProperty

Field Value

RadProperty

LabelIntervalProperty

Declaration

cs-api-definition
public static RadProperty LabelIntervalProperty

Field Value

RadProperty

LabelOffsetProperty

Declaration

cs-api-definition
public static RadProperty LabelOffsetProperty

Field Value

RadProperty

LabelRotationAngleProperty

Declaration

cs-api-definition
public static RadProperty LabelRotationAngleProperty

Field Value

RadProperty

LastLabelVisibilityProperty

Declaration

cs-api-definition
public static RadProperty LastLabelVisibilityProperty

Field Value

RadProperty

MajorTickOffsetProperty

Declaration

cs-api-definition
public static RadProperty MajorTickOffsetProperty

Field Value

RadProperty

ShowLabelsProperty

Declaration

cs-api-definition
public static RadProperty ShowLabelsProperty

Field Value

RadProperty

TickLengthProperty

Declaration

cs-api-definition
public static RadProperty TickLengthProperty

Field Value

RadProperty

TickWidthProperty

Declaration

cs-api-definition
public static RadProperty TickWidthProperty

Field Value

RadProperty

TitleProperty

Declaration

cs-api-definition
public static RadProperty TitleProperty

Field Value

RadProperty

Properties

AxisType

Gets or sets the type of the axis.

Declaration

cs-api-definition
[Browsable(true)]
public AxisType AxisType { get; set; }

Property Value

AxisType

The type of the axis.

EnableElementCache

Gets or sets a value indicating whether element caching is enabled.

Declaration

cs-api-definition
[Browsable(true)]
public bool EnableElementCache { get; set; }

Property Value

bool

IsPrimary

Gets or sets whether the axis is primary.

Declaration

cs-api-definition
[Browsable(false)]
public bool IsPrimary { get; set; }

Property Value

bool

The is primary.

LabelFitMode

Gets or sets a value that determines how the axis labels will be laid out when they are overlapping each other.

Declaration

cs-api-definition
public AxisLabelFitMode LabelFitMode { get; set; }

Property Value

AxisLabelFitMode

LabelFormat

Gets or sets the format used to format all the labels present on the axis.

Declaration

cs-api-definition
public string LabelFormat { get; set; }

Property Value

string

LabelFormatProvider

Gets or sets the format provider to be used for the labels of the axis.

Declaration

cs-api-definition
[Browsable(false)]
public IFormatProvider LabelFormatProvider { get; set; }

Property Value

IFormatProvider

LabelInterval

Gets or sets the step at which labels are positioned.

Declaration

cs-api-definition
public int LabelInterval { get; set; }

Property Value

int

LabelOffset

Gets or sets index-based offset of the first tick to be displayed.

Declaration

cs-api-definition
public int LabelOffset { get; set; }

Property Value

int

LabelRotationAngle

Gets or sets the rotation angle of the labels when LabelFitMode equals Rotate.

Declaration

cs-api-definition
public double LabelRotationAngle { get; set; }

Property Value

double

LastLabelVisibility

Gets or sets the strategy that defines the last axis label visibility.

Declaration

cs-api-definition
[Browsable(true)]
public AxisLastLabelVisibility LastLabelVisibility { get; set; }

Property Value

AxisLastLabelVisibility

LineWidth

Gets or sets the thickness used to display the line of the axis.

Declaration

cs-api-definition
public float LineWidth { get; set; }

Property Value

float

MajorTickOffset

Gets or sets index-based offset of the first tick to be displayed.

Declaration

cs-api-definition
public int MajorTickOffset { get; set; }

Property Value

int

Model

Gets the model.

Declaration

cs-api-definition
public AxisModel Model { get; }

Property Value

AxisModel

The model.

ShowLabels

Gets or sets a value indicating whether labels will be displayed on this axis.

Declaration

cs-api-definition
public bool ShowLabels { get; set; }

Property Value

bool

TickLength

Gets or sets the length of a single tick present on the axis. Useful when custom tick templates are specified.

Declaration

cs-api-definition
public double TickLength { get; set; }

Property Value

double

TickWidth

Gets or sets the thickness of a single tick present on the axis. Useful when custom tick templates are specified.

Declaration

cs-api-definition
public float TickWidth { get; set; }

Property Value

float

Title

Gets or sets the title of the associated logical axis model.

Declaration

cs-api-definition
public string Title { get; set; }

Property Value

string

TitleElement

Gets or sets the title element of the axis.

Declaration

cs-api-definition
public AxisTitleElement TitleElement { get; set; }

Property Value

AxisTitleElement

Methods

BuildVisualState()

Builds the visual state.

Declaration

cs-api-definition
protected override void BuildVisualState()

Overrides UIChartElement.BuildVisualState()

CreateLabelElement(AxisLabelModel)

Creates the label element.

Declaration

cs-api-definition
protected AxisLabelElement CreateLabelElement(AxisLabelModel label)

Parameters

label

AxisLabelModel

The label.

Returns

AxisLabelElement

GetLabelCacheKey(AxisLabelModel)

Gets the label cache key.

Declaration

cs-api-definition
protected virtual string GetLabelCacheKey(AxisLabelModel label)

Parameters

label

AxisLabelModel

The label.

Returns

string

MeasureContentOverride(ChartNode, object)

Measures the content.

Declaration

cs-api-definition
protected override RadSize MeasureContentOverride(ChartNode owner, object content)

Parameters

owner

ChartNode

The owner.

content

object

The content.

Returns

RadSize

Overrides UIChartElement.MeasureContentOverride(ChartNode, object)

MeasureLabel(ChartNode, object)

Measures the label.

Declaration

cs-api-definition
protected virtual RadSize MeasureLabel(ChartNode owner, object content)

Parameters

owner

ChartNode

The owner.

content

object

The content.

Returns

RadSize

MeasureTitle(object)

Measures the title.

Declaration

cs-api-definition
protected virtual RadSize MeasureTitle(object content)

Parameters

content

object

The content.

Returns

RadSize

OnAttached(UIChartElement)

Called when [attached].

Declaration

cs-api-definition
protected override void OnAttached(UIChartElement parent)

Parameters

parent

UIChartElement

The parent.

Overrides UIChartElement.OnAttached(UIChartElement)

OnDettached()

Called when [dettached].

Declaration

cs-api-definition
protected override void OnDettached()

Overrides UIChartElement.OnDettached()

OnPropertyChanged(RadPropertyChangedEventArgs)

Raises the RadPropertyChanged event and the standard .NET PropertyChanged event to notify subscribers of property value changes.

Declaration

cs-api-definition
protected override void OnPropertyChanged(RadPropertyChangedEventArgs e)

Parameters

e

RadPropertyChangedEventArgs

The RadPropertyChangedEventArgs containing information about the property change.

Overrides UIChartElement.OnPropertyChanged(RadPropertyChangedEventArgs)

ToString()

Returns a string that represents the current object.

Declaration

cs-api-definition
public override string ToString()

Returns

string

A string that represents the current object.

Overrides object.ToString()