Class ChartView
Inherited Members
Namespace: Telerik.WinControls.UI
Assembly: Telerik.WinControls.ChartView.dll
Syntax
public class ChartView : UIChartElement, IDisposable, INotifyPropertyChanged, ICustomTypeDescriptor, IStylableElement, IStylableNode, IFillElement, IBorderElement, IBoxStyle, IBoxElement, IShapedElement, IChartView, IChartElementPresenter
Constructors
ChartView(IChartViewHost)
Initializes a new instance of the Chart
Declaration
public ChartView(IChartViewHost owner)
Parameters
IChart The owner. |
ChartView(RadChartElement)
Initializes a new instance of the Chart
Declaration
public ChartView(RadChartElement owner)
Parameters
Rad The owner. |
ChartView(RadChartView)
Initializes a new instance of the Chart
Declaration
public ChartView(RadChartView owner)
Parameters
Rad The owner. |
Fields
MarginProperty
MinSizeProperty
Properties
Annotations
Gets the annotations.
Declaration
public ChartAnnotationCollection Annotations { get; }
Property Value
Chart The annotations. |
Area
AreaDesign
Gets or sets the area design.
Declaration
public ChartArea AreaDesign { get; set; }
Property Value
Chart The area design. |
AreaType
Gets or sets the type of the area.
Declaration
public ChartAreaType AreaType { get; set; }
Property Value
Chart The type of the area. |
Axes
Gets the axes.
Declaration
public ChartAxisCollection Axes { get; }
Property Value
Chart The axes. |
ClientRectangle
Gets the client rectangle.
Declaration
public RectangleF ClientRectangle { get; }
Property Value
System. The client rectangle. |
Controllers
Gets the controllers.
Declaration
public ChartViewControllerCollection Controllers { get; }
Property Value
Chart The controllers. |
DataMember
Gets or sets the name of the list or table in the data source for which the Chart
Declaration
public string DataMember { get; set; }
Property Value
System.
|
DataSource
Gets or sets the data source of the Chart
Declaration
public object DataSource { get; set; }
Property Value
System.
|
Margin
Gets or sets the margin.
Declaration
public Padding Margin { get; set; }
Property Value
System. The margin. |
MinSize
Gets or sets the minimum size.
Declaration
public SizeF MinSize { get; set; }
Property Value
System. The size of the min. |
Owner
Gets or sets the owner.
Declaration
public IChartViewHost Owner { get; set; }
Property Value
IChart The owner. |
Palette
Gets or sets the palette.
Declaration
public ChartPalette Palette { get; set; }
Property Value
Chart The palette. |
Renderer
Gets the renderer.
Declaration
public IChartRenderer Renderer { get; }
Property Value
IChart The renderer. |
SelectionMode
Gets or sets the selection mode.
Declaration
public ChartSelectionMode SelectionMode { get; set; }
Property Value
Chart The selection mode. |
Series
Gets the series.
Declaration
public ChartSeriesCollection Series { get; }
Property Value
Chart The series. |
ShowPanZoom
Gets or sets whether the pan and zoom controller will be activated.
Declaration
public bool ShowPanZoom { get; set; }
Property Value
System. The show pan zoom. |
ShowSmartLabels
Gets or sets whether to show the smart labels.
Declaration
public bool ShowSmartLabels { get; set; }
Property Value
System. The show smart labels. |
ShowStillIndicators
Gets or sets whether to show the still indicators.
Declaration
public bool ShowStillIndicators { get; set; }
Property Value
System. Indicates whether to show still indicators. |
ShowToolTip
Gets or sets whether the tool tip will be shown.
Declaration
public bool ShowToolTip { get; set; }
Property Value
System. The show tool tip. |
ShowTrackBall
Gets or sets whether the track ball will be shown.
Declaration
public bool ShowTrackBall { get; set; }
Property Value
System. The show track ball. |
UseDataSource
Automatically setup DataSource of ChartSeries on attaching using this DataSource only when DataSource property of ChartSeries is null
Declaration
public bool UseDataSource { get; set; }
Property Value
System.
|
ViewName
Gets or sets the name of the view.
Declaration
public virtual string ViewName { get; set; }
Property Value
System. The name of the view. |
Viewport
Gets or sets the viewport.
Declaration
public RadRect Viewport { get; set; }
Property Value
Rad The viewport. |
ViewResult
Gets or sets the view result.
Declaration
public ViewResult ViewResult { get; set; }
Property Value
View The view result. |
Methods
DeferRefresh()
Defers the refresh.
Declaration
public virtual IDisposable DeferRefresh()
Returns
System.
|
Draw(Object)
Draws the specified context.
Declaration
public virtual void Draw(object context)
Parameters
System. The context. |
GetArea<T>()
Gets the area.
Declaration
public T GetArea<T>()
where T : ChartArea
Returns
T
|
Type Parameters
T
The type of the T. |
Layout()
Layouts the chart.
Declaration
public void Layout()
Layout(Boolean)
Layouts the chart indicating whether to invalidate.
Declaration
public void Layout(bool redraw)
Parameters
System. The redraw. |
Layout(RadRect)
Layouts in the specified rect.
Declaration
public void Layout(RadRect rect)
Parameters
Rad The rect. |
OnAttached(UIChartElement)
Called when [attached].
Declaration
protected override void OnAttached(UIChartElement parent)
Parameters
UIChart The parent. |
Overrides
OnAxisLabelFormatting(Object, ChartAxisLabelFormattingEventArgs)
Called when formatting axes' labels.
Declaration
protected virtual void OnAxisLabelFormatting(object sender, ChartAxisLabelFormattingEventArgs e)
Parameters
System. The label element. |
Chart The Chart |
OnCreatePoint(ChartViewCreatePointEventArgs)
Raises the Create
Declaration
protected virtual void OnCreatePoint(ChartViewCreatePointEventArgs e)
Parameters
Chart The Chart |
OnCreatePointElement(ChartViewCreatePointElementEventArgs)
Raises the Create
Declaration
protected virtual void OnCreatePointElement(ChartViewCreatePointElementEventArgs e)
Parameters
Chart The Chart |
OnCreateRenderer(Object, ChartViewCreateRendererEventArgs)
Fires the CreateRenderer event.
Declaration
protected virtual void OnCreateRenderer(object sender, ChartViewCreateRendererEventArgs e)
Parameters
System. The sender. |
Chart The Chart |
OnDataError(Exception)
Called when data error occurs.
Declaration
protected virtual void OnDataError(Exception exception)
Parameters
System. The exception. |
OnGesture(GestureEventArgs)
Raises the Gesture event.
Declaration
protected virtual void OnGesture(GestureEventArgs e)
Parameters
Gesture The Gesture |
OnKeyDown(KeyEventArgs)
Raises the Key
Declaration
protected virtual void OnKeyDown(KeyEventArgs e)
Parameters
System. The System. |
OnKeyPress(KeyPressEventArgs)
Raises the Key
Declaration
protected virtual void OnKeyPress(KeyPressEventArgs e)
Parameters
System. The System. |
OnKeyUp(KeyEventArgs)
Raises the Key
Declaration
protected virtual void OnKeyUp(KeyEventArgs e)
Parameters
System. The System. |
OnLabelFormatting(Object, ChartViewLabelFormattingEventArgs)
Raises the Label
Declaration
protected virtual void OnLabelFormatting(object sender, ChartViewLabelFormattingEventArgs e)
Parameters
System.
|
Chart
|
OnMouseCaptureChanged(EventArgs)
Raises the Mouse
Declaration
protected virtual void OnMouseCaptureChanged(EventArgs e)
Parameters
System. The System. |
OnMouseClick(MouseEventArgs)
Raises the Mouse
Declaration
protected virtual void OnMouseClick(MouseEventArgs e)
Parameters
System. The System. |
OnMouseDoubleClick(MouseEventArgs)
Raises the Mouse
Declaration
protected virtual void OnMouseDoubleClick(MouseEventArgs e)
Parameters
System. The System. |
OnMouseDown(MouseEventArgs)
Raises the Mouse
Declaration
protected virtual void OnMouseDown(MouseEventArgs e)
Parameters
System. The System. |
OnMouseEnter(EventArgs)
Raises the Mouse
Declaration
protected virtual void OnMouseEnter(EventArgs e)
Parameters
System. The System. |
OnMouseHover(EventArgs)
Raises the Mouse
Declaration
protected virtual void OnMouseHover(EventArgs e)
Parameters
System. The System. |
OnMouseLeave(EventArgs)
Raises the Mouse
Declaration
protected virtual void OnMouseLeave(EventArgs e)
Parameters
System. The System. |
OnMouseMove(MouseEventArgs)
Raises the Mouse
Declaration
protected virtual void OnMouseMove(MouseEventArgs e)
Parameters
System. The System. |
OnMouseUp(MouseEventArgs)
Raises the Mouse
Declaration
protected virtual void OnMouseUp(MouseEventArgs e)
Parameters
System. The System. |
OnMouseWheel(MouseEventArgs)
Raises the Mouse
Declaration
protected virtual void OnMouseWheel(MouseEventArgs e)
Parameters
System. The System. |
OnPanChanged(EventArgs)
Raises the Pan
Declaration
public virtual void OnPanChanged(EventArgs e)
Parameters
System. The System. |
OnPanChanging(PanChangingEventArgs)
Raises the Pan
Declaration
public virtual void OnPanChanging(PanChangingEventArgs e)
Parameters
Pan The Pan |
OnPanGesture(PanGestureEventArgs)
Raises the Pan
Declaration
protected virtual void OnPanGesture(PanGestureEventArgs e)
Parameters
Pan The Pan |
OnPressAndTapGesture(PressAndTapGestureEventArgs)
Raises the Press
Declaration
protected void OnPressAndTapGesture(PressAndTapGestureEventArgs e)
Parameters
Press The Press |
OnPropertyChanged(RadPropertyChangedEventArgs)
Declaration
protected override void OnPropertyChanged(RadPropertyChangedEventArgs e)
Parameters
Overrides
OnRotateGesture(RotateGestureEventArgs)
Raises the Rotate
Declaration
protected virtual void OnRotateGesture(RotateGestureEventArgs e)
Parameters
Rotate The Rotate |
OnSelectedPointChanged(ChartViewSelectedPointChangedEventArgs)
Raises the Selected
Declaration
protected virtual void OnSelectedPointChanged(ChartViewSelectedPointChangedEventArgs e)
Parameters
Chart The Chart |
OnSelectedPointChanging(ChartViewSelectedPointChangingEventArgs)
Raises the Selected
Declaration
protected virtual void OnSelectedPointChanging(ChartViewSelectedPointChangingEventArgs e)
Parameters
Chart The Chart |
OnTwoFingerTapGesture(GestureEventArgs)
Raises the Two
Declaration
protected virtual void OnTwoFingerTapGesture(GestureEventArgs e)
Parameters
Gesture The Gesture |
OnZoomChanged(EventArgs)
Raises the Zoom
Declaration
public virtual void OnZoomChanged(EventArgs e)
Parameters
System. The System. |
OnZoomChanging(ZoomChangingEventArgs)
Raises the Zoom
Declaration
public virtual void OnZoomChanging(ZoomChangingEventArgs e)
Parameters
Zoom The Zoom |
OnZoomGesture(ZoomGestureEventArgs)
Raises the Zoom
Declaration
protected virtual void OnZoomGesture(ZoomGestureEventArgs e)
Parameters
Zoom The Zoom |
Pan(Double, Double)
Pans with the specified x,y offset.
Declaration
public void Pan(double offsetX, double offsetY)
Parameters
System. The offset X. |
System. The offset Y. |
PerformRefresh(UIChartElement, Boolean)
Performs refreshing the view.
Declaration
public void PerformRefresh(UIChartElement element, bool updateLayout)
Parameters
UIChart The element. |
System. The update layout. |
ProcessResult(ActionResult)
Processes the result.
Declaration
protected virtual bool ProcessResult(ActionResult actionResult)
Parameters
Action The action result. |
Returns
System.
|
Reset()
Resets the view.
Declaration
public void Reset()
ResumeRefresh()
Resumes refreshing the view.
Declaration
public void ResumeRefresh()
SuspendRefresh()
Suspends refreshing the view.
Declaration
public void SuspendRefresh()
UpdatePanOnZoom(Double, Double)
Updates the pan on zoom with the specified horizontal/vertical scale factor.
Declaration
protected virtual void UpdatePanOnZoom(double horizontalScaleFactor, double verticalScaleFactor)
Parameters
System. The horizontal scale factor. |
System. The vertical scale factor. |
Zoom(Double, Double)
Zooms the view with the specified horizontal/vertical scale factor.
Declaration
public void Zoom(double horizontalScaleFactor, double verticalScaleFactor)
Parameters
System. The horizontal scale factor. |
System. The vertical scale factor. |
Events
AxisLabelFormatting
Occurs when the content of a axis label needs to be formatted for display.
Declaration
public event ChartAxisLabelFormattingEventHandler AxisLabelFormatting
Event Type
CreatePoint
Occurs when a new DataPoint is created.
Declaration
public event ChartViewCreatePointEventHandler CreatePoint
Event Type
CreatePointElement
Occurs when a new DataPointElement is created.
Declaration
public event ChartViewCreatePointElementEventHandler CreatePointElement
Event Type
CreateRenderer
Fired when the area requires an renderer for the first time.
Declaration
public event ChartViewCreateRendererEventHandler CreateRenderer
Event Type
DataError
Occurs when a data error is detected.
Declaration
public event ChartViewDataErrorEventHandler DataError
Event Type
LabelFormatting
Fires when the content of a point label needs to be formatted for display.
Declaration
public event ChartViewLabelFormattingEventHandler LabelFormatting
Event Type
PanChanged
Occurs when [pan changed].
Declaration
public event EventHandler PanChanged
Event Type
System.
|
PanChanging
Occurs when [pan changing].
Declaration
public event PanChangingEventHandler PanChanging
Event Type
SelectedPointChanged
Occurs when the selected point changes
Declaration
public event ChartViewSelectedChangedEventHandler SelectedPointChanged
Event Type
SelectedPointChanging
Occurs when the selected point is changing
Declaration
public event ChartViewSelectedChangingEventHandler SelectedPointChanging
Event Type
ZoomChanged
Occurs when [zoom changed].
Declaration
public event EventHandler ZoomChanged
Event Type
System.
|
ZoomChanging
Occurs when [zoom changing].
Declaration
public event ZoomChangingEventHandler ZoomChanging
Event Type
Explicit Interface Implementations
IChartElementPresenter.InvalidatePalette()
Declaration
void IChartElementPresenter.InvalidatePalette()
Implements
IChartElementPresenter.IsVisible
Declaration
bool IChartElementPresenter.IsVisible { get; }
Returns
System.
|
Implements
IChartElementPresenter.MeasureContent(ChartNode, Object)
Declaration
RadSize IChartElementPresenter.MeasureContent(ChartNode owner, object content)
Parameters
Chart
|
System.
|
Returns
Implements
IChartElementPresenter.RefreshNode(ChartNode)
Declaration
void IChartElementPresenter.RefreshNode(ChartNode node)
Parameters
Chart
|
Implements
IChartView.PlotAreaClip
Declaration
RadRect IChartView.PlotAreaClip { get; }
Returns
Implements
IChartView.PlotOriginX
Declaration
double IChartView.PlotOriginX { get; }
Returns
System.
|
Implements
IChartView.PlotOriginY
Declaration
double IChartView.PlotOriginY { get; }
Returns
System.
|
Implements
IChartView.ViewportHeight
Declaration
double IChartView.ViewportHeight { get; }
Returns
System.
|
Implements
IChartView.ViewportWidth
Declaration
double IChartView.ViewportWidth { get; }
Returns
System.
|
Implements
IChartView.ZoomHeight
Declaration
double IChartView.ZoomHeight { get; }
Returns
System.
|
Implements
IChartView.ZoomWidth
Declaration
double IChartView.ZoomWidth { get; }
Returns
System.
|