ClassSparkView
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.UI.dll
Syntax:
public class SparkView : UISparkElement, IDisposable, INotifyPropertyChanged, ICustomTypeDescriptor, IStylableElement, IStylableNode, IShapedElement, ISparkView, ISparkElementPresenter
Inheritance: objectDisposableObjectRadObjectUISparkElementSparkView
Implements:
Inherited Members
Constructors
SparkView(ISparkViewHost)
Initializes a new instance of the SparkView class.
Declaration
public SparkView(ISparkViewHost owner)
Parameters
owner
The owner.
SparkView(RadSparkline)
Initializes a new instance of the SparkView class.
Declaration
public SparkView(RadSparkline owner)
Parameters
owner
The owner.
SparkView(RadSparklineElement)
Initializes a new instance of the SparkView class.
Declaration
public SparkView(RadSparklineElement owner)
Parameters
owner
The owner.
Fields
Properties
Annotations
Gets the annotations.
Declaration
public SparkAnnotationCollection Annotations { get; }
Property Value
The annotations.
Area
Gets the area.
Declaration
[Browsable(false)]
public SparkArea Area { get; }
Property Value
The area.
Axes
Gets the axes.
Declaration
public SparkAxisCollection Axes { get; }
Property Value
The axes.
AxisDrawMode
Gets or sets whether the horizontal axis will be painted on top of the series.
Declaration
public AxisDrawMode AxisDrawMode { get; set; }
Property Value
ClientRectangle
Gets the client rectangle.
Declaration
public RectangleF ClientRectangle { get; }
Property Value
The client rectangle.
Controllers
Gets the controllers.
Declaration
public SparkViewControllerCollection Controllers { get; }
Property Value
The controllers.
DataMember
Gets or sets the name of the list or table in the data source for which the SparkSeries is bound.
Declaration
[Browsable(true)]
public string DataMember { get; set; }
Property Value
DataSource
Gets or sets the data source of the SparkSeries.
EmptyPointBehavior
Declaration
public EmptyPointBehavior EmptyPointBehavior { get; set; }
Property Value
Margin
Gets or sets the margin.
Declaration
public Padding Margin { get; set; }
Property Value
The margin.
MinSize
Gets or sets the minimum size.
Declaration
public SizeF MinSize { get; set; }
Property Value
The size of the min.
Owner
Gets or sets the owner.
Declaration
public ISparkViewHost Owner { get; set; }
Property Value
The owner.
Renderer
Gets the renderer.
Declaration
public ISparkRenderer Renderer { get; }
Property Value
The renderer.
Series
Gets the series.
Declaration
public SparkSeries Series { get; set; }
Property Value
The series.
ShowAxis
Shows or hides the horizontal axis in the sparkline.
ShowFirstPointIndicator
Gets or sets whether the first point indicator will be painted.
ShowHighPointIndicator
Gets or sets whether the high point marker will be painted.
ShowLastPointIndicator
Gets or sets whether the last point indicator will be painted.
ShowLowPointIndicator
Gets or sets whether the low point indicator will be painted.
ShowNegativePointIndicators
Gets or sets whether the negative point markers will be painted.
Declaration
public bool ShowNegativePointIndicators { get; set; }
Property Value
ShowToolTip
Gets or sets whether the tool tip will be shown.
Declaration
public bool ShowToolTip { get; set; }
Property Value
The show tool tip.
ViewResult
Gets or sets the view result.
Declaration
public ViewResult ViewResult { get; set; }
Property Value
The view result.
Methods
DeferRefresh()
Defers the refresh.
Draw(object)
Draws the specified context.
Declaration
public virtual void Draw(object context)
Parameters
context
The context.
GetArea<T>()
Gets the area.
Declaration
public T GetArea<T>() where T : SparkArea
Returns
T
Layout(RadRect)
Layouts in the specified rect.
Layout(bool)
Layouts the sparkline indicating whether to invalidate.
OnAttached(UISparkElement)
Called when [attached].
Declaration
protected override void OnAttached(UISparkElement parent)
Parameters
parent
The parent.
Overrides
OnCreatePoint(SparklineCreatePointEventArgs)
Raises the event.
Declaration
protected virtual void OnCreatePoint(SparklineCreatePointEventArgs e)
Parameters
e
The SparklineCreatePointEventArgs instance containing the event data.
OnCreateRenderer(object, SparklineCreateRendererEventArgs)
Fires the CreateRenderer event.
Declaration
protected virtual void OnCreateRenderer(object sender, SparklineCreateRendererEventArgs e)
Parameters
sender
The sender.
e
SparklineCreateRendererEventArgs
The SparklineCreateRendererEventArgs instance containing the event data.
OnDataError(Exception)
Called when data error occurs.
Declaration
protected virtual void OnDataError(Exception exception)
Parameters
exception
The exception.
OnGesture(GestureEventArgs)
Raises the event.
Declaration
protected virtual void OnGesture(GestureEventArgs e)
Parameters
e
The GestureEventArgs instance containing the event data.
OnKeyDown(KeyEventArgs)
Raises the event.
Declaration
protected virtual void OnKeyDown(KeyEventArgs e)
Parameters
e
The KeyEventArgs instance containing the event data.
OnKeyPress(KeyPressEventArgs)
Raises the event.
Declaration
protected virtual void OnKeyPress(KeyPressEventArgs e)
Parameters
e
The KeyPressEventArgs instance containing the event data.
OnKeyUp(KeyEventArgs)
Raises the event.
Declaration
protected virtual void OnKeyUp(KeyEventArgs e)
Parameters
e
The KeyEventArgs instance containing the event data.
OnMouseCaptureChanged(EventArgs)
Raises the event.
OnMouseClick(MouseEventArgs)
Raises the event.
Declaration
protected virtual void OnMouseClick(MouseEventArgs e)
Parameters
e
The MouseEventArgs instance containing the event data.
OnMouseDoubleClick(MouseEventArgs)
Raises the event.
Declaration
protected virtual void OnMouseDoubleClick(MouseEventArgs e)
Parameters
e
The MouseEventArgs instance containing the event data.
OnMouseDown(MouseEventArgs)
Raises the event.
Declaration
protected virtual void OnMouseDown(MouseEventArgs e)
Parameters
e
The MouseEventArgs instance containing the event data.
OnMouseEnter(EventArgs)
Raises the event.
OnMouseHover(EventArgs)
Raises the event.
OnMouseLeave(EventArgs)
Raises the event.
OnMouseMove(MouseEventArgs)
Raises the event.
Declaration
protected virtual void OnMouseMove(MouseEventArgs e)
Parameters
e
The MouseEventArgs instance containing the event data.
OnMouseUp(MouseEventArgs)
Raises the event.
Declaration
protected virtual void OnMouseUp(MouseEventArgs e)
Parameters
e
The MouseEventArgs instance containing the event data.
OnMouseWheel(MouseEventArgs)
Raises the event.
Declaration
protected virtual void OnMouseWheel(MouseEventArgs e)
Parameters
e
The MouseEventArgs instance containing the event data.
OnPanGesture(PanGestureEventArgs)
Raises the event.
Declaration
protected virtual void OnPanGesture(PanGestureEventArgs e)
Parameters
e
The PanGestureEventArgs instance containing the event data.
OnPressAndTapGesture(PressAndTapGestureEventArgs)
Raises the event.
Declaration
protected void OnPressAndTapGesture(PressAndTapGestureEventArgs e)
Parameters
e
The PressAndTapGestureEventArgs instance containing the event data.
OnPropertyChanged(RadPropertyChangedEventArgs)
Raises the RadPropertyChanged event and the standard .NET PropertyChanged event to notify subscribers of property value changes.
Declaration
protected override void OnPropertyChanged(RadPropertyChangedEventArgs e)
Parameters
e
The RadPropertyChangedEventArgs containing information about the property change.
Overrides
OnRotateGesture(RotateGestureEventArgs)
Raises the event.
Declaration
protected virtual void OnRotateGesture(RotateGestureEventArgs e)
Parameters
e
The RotateGestureEventArgs instance containing the event data.
OnTwoFingerTapGesture(GestureEventArgs)
Raises the event.
Declaration
protected virtual void OnTwoFingerTapGesture(GestureEventArgs e)
Parameters
e
The GestureEventArgs instance containing the event data.
OnZoomGesture(ZoomGestureEventArgs)
Raises the event.
Declaration
protected virtual void OnZoomGesture(ZoomGestureEventArgs e)
Parameters
e
The ZoomGestureEventArgs instance containing the event data.
PerformRefresh(UISparkElement, bool)
Performs refreshing the view.
Declaration
public void PerformRefresh(UISparkElement element, bool updateLayout)
Parameters
element
The element.
updateLayout
The update layout.
ProcessResult(ActionResult)
Processes the result.
Declaration
protected virtual bool ProcessResult(ActionResult actionResult)
Parameters
actionResult
The action result.
Returns
ResumeRefresh()
Resumes refreshing the view.
Declaration
public void ResumeRefresh()
SuspendRefresh()
Suspends refreshing the view.
Declaration
public void SuspendRefresh()
SyncViewProperties()
Declaration
public virtual void SyncViewProperties()
Events
CreatePoint
Occurs when a new DataPoint is created.
Declaration
public event SparklineCreatePointEventHandler CreatePoint
Event Value
CreateRenderer
Fired when the area requires an renderer for the first time.
Declaration
public event SparklineCreateRendererEventHandler CreateRenderer
Event Value
DataError
Occurs when a data error is detected.
Declaration
public event ChartViewDataErrorEventHandler DataError
Event Value