Class SparkView
Inherited Members
Namespace: Telerik.WinControls.UI
Assembly: Telerik.WinControls.UI.dll
Syntax
public class SparkView : UISparkElement, IDisposable, INotifyPropertyChanged, ICustomTypeDescriptor, IStylableElement, IStylableNode, IShapedElement, ISparkView, ISparkElementPresenter
  Constructors
SparkView(ISparkViewHost)
Initializes a new instance of the SparkView class.
Declaration
public SparkView(ISparkViewHost owner)
  Parameters
| 
        ISparkViewHost
        owner
         The owner.  | 
    
SparkView(RadSparkline)
Initializes a new instance of the SparkView class.
Declaration
public SparkView(RadSparkline owner)
  Parameters
| 
        RadSparkline
        owner
         The owner.  | 
    
SparkView(RadSparklineElement)
Initializes a new instance of the SparkView class.
Declaration
public SparkView(RadSparklineElement owner)
  Parameters
| 
        RadSparklineElement
        owner
         The owner.  | 
    
Fields
MarginProperty
MinSizeProperty
Properties
Annotations
Gets the annotations.
Declaration
public SparkAnnotationCollection Annotations { get; }
  Property Value
| 
        SparkAnnotationCollection
         The annotations.  | 
    
Area
AreaDesign
Gets or sets the area design.
Declaration
public SparkArea AreaDesign { get; set; }
  Property Value
| 
        SparkArea
         The area design.  | 
    
Axes
Gets the axes.
Declaration
public SparkAxisCollection Axes { get; }
  Property Value
| 
        SparkAxisCollection
         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
| 
        AxisDrawMode
         
  | 
    
ClientRectangle
Gets the client rectangle.
Declaration
public RectangleF ClientRectangle { get; }
  Property Value
| 
        System.Drawing.RectangleF
         The client rectangle.  | 
    
Controllers
Gets the controllers.
Declaration
public SparkViewControllerCollection Controllers { get; }
  Property Value
| 
        SparkViewControllerCollection
         The controllers.  | 
    
DataMember
Gets or sets the name of the list or table in the data source for which the SparkSeries is bound.
Declaration
public string DataMember { get; set; }
  Property Value
| 
        System.String
         
  | 
    
DataSource
Gets or sets the data source of the SparkSeries.
Declaration
public object DataSource { get; set; }
  Property Value
| 
        System.Object
         
  | 
    
EmptyPointBehavior
Declaration
public EmptyPointBehavior EmptyPointBehavior { get; set; }
  Property Value
| 
        EmptyPointBehavior
         
  | 
    
Margin
Gets or sets the margin.
Declaration
public Padding Margin { get; set; }
  Property Value
| 
        System.Windows.Forms.Padding
         The margin.  | 
    
MinSize
Gets or sets the minimum size.
Declaration
public SizeF MinSize { get; set; }
  Property Value
| 
        System.Drawing.SizeF
         The size of the min.  | 
    
Owner
Gets or sets the owner.
Declaration
public ISparkViewHost Owner { get; set; }
  Property Value
| 
        ISparkViewHost
         The owner.  | 
    
Renderer
Gets the renderer.
Declaration
public ISparkRenderer Renderer { get; }
  Property Value
| 
        ISparkRenderer
         The renderer.  | 
    
Series
Gets the series.
Declaration
public SparkSeries Series { get; set; }
  Property Value
| 
        SparkSeries
         The series.  | 
    
ShowAxis
Shows or hides the horizontal axis in the sparkline.
Declaration
public bool ShowAxis { get; set; }
  Property Value
| 
        System.Boolean
         
  | 
    
ShowFirstPointIndicator
Gets or sets whether the first point indicator will be painted.
Declaration
public bool ShowFirstPointIndicator { get; set; }
  Property Value
| 
        System.Boolean
         
  | 
    
ShowHighPointIndicator
Gets or sets whether the high point marker will be painted.
Declaration
public bool ShowHighPointIndicator { get; set; }
  Property Value
| 
        System.Boolean
         
  | 
    
ShowLastPointIndicator
Gets or sets whether the last point indicator will be painted.
Declaration
public bool ShowLastPointIndicator { get; set; }
  Property Value
| 
        System.Boolean
         
  | 
    
ShowLowPointIndicator
Gets or sets whether the low point indicator will be painted.
Declaration
public bool ShowLowPointIndicator { get; set; }
  Property Value
| 
        System.Boolean
         
  | 
    
ShowNegativePointIndicators
Gets or sets whether the negative point markers will be painted.
Declaration
public bool ShowNegativePointIndicators { get; set; }
  Property Value
| 
        System.Boolean
         
  | 
    
ShowToolTip
Gets or sets whether the tool tip will be shown.
Declaration
public bool ShowToolTip { get; set; }
  Property Value
| 
        System.Boolean
         The show tool tip.  | 
    
Viewport
Gets or sets the viewport.
Declaration
public RadRect Viewport { get; set; }
  Property Value
| 
        RadRect
         The viewport.  | 
    
ViewResult
Gets or sets the view result.
Declaration
public ViewResult ViewResult { get; set; }
  Property Value
| 
        ViewResult
         The view result.  | 
    
Methods
DeferRefresh()
Defers the refresh.
Declaration
public virtual IDisposable DeferRefresh()
  Returns
| 
        System.IDisposable
         
  | 
    
Draw(Object)
Draws the specified context.
Declaration
public virtual void Draw(object context)
  Parameters
| 
        System.Object
        context
         The context.  | 
    
GetArea<T>()
Gets the area.
Declaration
public T GetArea<T>()
    where T : SparkArea
  Returns
| 
        T
         
  | 
    
Type Parameters
| 
        T
         The type of the T.  | 
    
Layout()
Layouts the sparkline.
Declaration
public void Layout()
  Layout(Boolean)
Layouts the sparkline indicating whether to invalidate.
Declaration
public void Layout(bool redraw)
  Parameters
| 
        System.Boolean
        redraw
         The redraw.  | 
    
Layout(RadRect)
Layouts in the specified rect.
Declaration
public void Layout(RadRect rect)
  Parameters
| 
        RadRect
        rect
         The rect.  | 
    
OnAttached(UISparkElement)
Called when [attached].
Declaration
protected override void OnAttached(UISparkElement parent)
  Parameters
| 
        UISparkElement
        parent
         The parent.  | 
    
Overrides
OnCreatePoint(SparklineCreatePointEventArgs)
Raises the CreatePoint event.
Declaration
protected virtual void OnCreatePoint(SparklineCreatePointEventArgs e)
  Parameters
| 
        SparklineCreatePointEventArgs
        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
| 
        System.Object
        sender
         The sender.  | 
    
| 
        SparklineCreateRendererEventArgs
        e
         The SparklineCreateRendererEventArgs instance containing the event data.  | 
    
OnDataError(Exception)
Called when data error occurs.
Declaration
protected virtual void OnDataError(Exception exception)
  Parameters
| 
        System.Exception
        exception
         The exception.  | 
    
OnGesture(GestureEventArgs)
Raises the Gesture event.
Declaration
protected virtual void OnGesture(GestureEventArgs e)
  Parameters
| 
        GestureEventArgs
        e
         The GestureEventArgs instance containing the event data.  | 
    
OnKeyDown(KeyEventArgs)
Raises the KeyDown event.
Declaration
protected virtual void OnKeyDown(KeyEventArgs e)
  Parameters
| 
        System.Windows.Forms.KeyEventArgs
        e
         The System.Windows.Forms.KeyEventArgs instance containing the event data.  | 
    
OnKeyPress(KeyPressEventArgs)
Raises the KeyPress event.
Declaration
protected virtual void OnKeyPress(KeyPressEventArgs e)
  Parameters
| 
        System.Windows.Forms.KeyPressEventArgs
        e
         The System.Windows.Forms.KeyPressEventArgs instance containing the event data.  | 
    
OnKeyUp(KeyEventArgs)
Raises the KeyUp event.
Declaration
protected virtual void OnKeyUp(KeyEventArgs e)
  Parameters
| 
        System.Windows.Forms.KeyEventArgs
        e
         The System.Windows.Forms.KeyEventArgs instance containing the event data.  | 
    
OnMouseCaptureChanged(EventArgs)
Raises the MouseCaptureChanged event.
Declaration
protected virtual void OnMouseCaptureChanged(EventArgs e)
  Parameters
| 
        System.EventArgs
        e
         The System.EventArgs instance containing the event data.  | 
    
OnMouseClick(MouseEventArgs)
Raises the MouseClick event.
Declaration
protected virtual void OnMouseClick(MouseEventArgs e)
  Parameters
| 
        System.Windows.Forms.MouseEventArgs
        e
         The System.Windows.Forms.MouseEventArgs instance containing the event data.  | 
    
OnMouseDoubleClick(MouseEventArgs)
Raises the MouseDoubleClick event.
Declaration
protected virtual void OnMouseDoubleClick(MouseEventArgs e)
  Parameters
| 
        System.Windows.Forms.MouseEventArgs
        e
         The System.Windows.Forms.MouseEventArgs instance containing the event data.  | 
    
OnMouseDown(MouseEventArgs)
Raises the MouseDown event.
Declaration
protected virtual void OnMouseDown(MouseEventArgs e)
  Parameters
| 
        System.Windows.Forms.MouseEventArgs
        e
         The System.Windows.Forms.MouseEventArgs instance containing the event data.  | 
    
OnMouseEnter(EventArgs)
Raises the MouseEnter event.
Declaration
protected virtual void OnMouseEnter(EventArgs e)
  Parameters
| 
        System.EventArgs
        e
         The System.EventArgs instance containing the event data.  | 
    
OnMouseHover(EventArgs)
Raises the MouseHover event.
Declaration
protected virtual void OnMouseHover(EventArgs e)
  Parameters
| 
        System.EventArgs
        e
         The System.EventArgs instance containing the event data.  | 
    
OnMouseLeave(EventArgs)
Raises the MouseLeave event.
Declaration
protected virtual void OnMouseLeave(EventArgs e)
  Parameters
| 
        System.EventArgs
        e
         The System.EventArgs instance containing the event data.  | 
    
OnMouseMove(MouseEventArgs)
Raises the MouseMove event.
Declaration
protected virtual void OnMouseMove(MouseEventArgs e)
  Parameters
| 
        System.Windows.Forms.MouseEventArgs
        e
         The System.Windows.Forms.MouseEventArgs instance containing the event data.  | 
    
OnMouseUp(MouseEventArgs)
Raises the MouseUp event.
Declaration
protected virtual void OnMouseUp(MouseEventArgs e)
  Parameters
| 
        System.Windows.Forms.MouseEventArgs
        e
         The System.Windows.Forms.MouseEventArgs instance containing the event data.  | 
    
OnMouseWheel(MouseEventArgs)
Raises the MouseWheel event.
Declaration
protected virtual void OnMouseWheel(MouseEventArgs e)
  Parameters
| 
        System.Windows.Forms.MouseEventArgs
        e
         The System.Windows.Forms.MouseEventArgs instance containing the event data.  | 
    
OnPanGesture(PanGestureEventArgs)
Raises the PanGesture event.
Declaration
protected virtual void OnPanGesture(PanGestureEventArgs e)
  Parameters
| 
        PanGestureEventArgs
        e
         The PanGestureEventArgs instance containing the event data.  | 
    
OnPressAndTapGesture(PressAndTapGestureEventArgs)
Raises the PressAndTapGesture event.
Declaration
protected void OnPressAndTapGesture(PressAndTapGestureEventArgs e)
  Parameters
| 
        PressAndTapGestureEventArgs
        e
         The PressAndTapGestureEventArgs instance containing the event data.  | 
    
OnPropertyChanged(RadPropertyChangedEventArgs)
Declaration
protected override void OnPropertyChanged(RadPropertyChangedEventArgs e)
  Parameters
| 
        RadPropertyChangedEventArgs
        e
         
  | 
    
Overrides
OnRotateGesture(RotateGestureEventArgs)
Raises the RotateGesture event.
Declaration
protected virtual void OnRotateGesture(RotateGestureEventArgs e)
  Parameters
| 
        RotateGestureEventArgs
        e
         The RotateGestureEventArgs instance containing the event data.  | 
    
OnTwoFingerTapGesture(GestureEventArgs)
Raises the TwoFingerTapGesture event.
Declaration
protected virtual void OnTwoFingerTapGesture(GestureEventArgs e)
  Parameters
| 
        GestureEventArgs
        e
         The GestureEventArgs instance containing the event data.  | 
    
OnZoomGesture(ZoomGestureEventArgs)
Raises the ZoomGesture event.
Declaration
protected virtual void OnZoomGesture(ZoomGestureEventArgs e)
  Parameters
| 
        ZoomGestureEventArgs
        e
         The ZoomGestureEventArgs instance containing the event data.  | 
    
PerformRefresh(UISparkElement, Boolean)
Performs refreshing the view.
Declaration
public void PerformRefresh(UISparkElement element, bool updateLayout)
  Parameters
| 
        UISparkElement
        element
         The element.  | 
    
| 
        System.Boolean
        updateLayout
         The update layout.  | 
    
ProcessResult(ActionResult)
Processes the result.
Declaration
protected virtual bool ProcessResult(ActionResult actionResult)
  Parameters
| 
        ActionResult
        actionResult
         The action result.  | 
    
Returns
| 
        System.Boolean
         
  | 
    
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()
  SyncViewProperties()
Declaration
public virtual void SyncViewProperties()
  Events
CreatePoint
Occurs when a new DataPoint is created.
Declaration
public event SparklineCreatePointEventHandler CreatePoint
  Event Type
| 
        SparklineCreatePointEventHandler
         
  | 
    
CreateRenderer
Fired when the area requires an renderer for the first time.
Declaration
public event SparklineCreateRendererEventHandler CreateRenderer
  Event Type
| 
        SparklineCreateRendererEventHandler
         
  | 
    
DataError
Occurs when a data error is detected.
Declaration
public event ChartViewDataErrorEventHandler DataError
  Event Type
| 
        ChartViewDataErrorEventHandler
         
  | 
    
Explicit Interface Implementations
ISparkElementPresenter.IsVisible
Declaration
bool ISparkElementPresenter.IsVisible { get; }
  Returns
| 
        System.Boolean
         
  | 
    
Implements
ISparkElementPresenter.MeasureContent(SparkNode, Object)
Declaration
RadSize ISparkElementPresenter.MeasureContent(SparkNode owner, object content)
  Parameters
| 
        SparkNode
        owner
         
  | 
    
| 
        System.Object
        content
         
  | 
    
Returns
| 
        RadSize
         
  | 
    
Implements
ISparkElementPresenter.RefreshNode(SparkNode)
Declaration
void ISparkElementPresenter.RefreshNode(SparkNode node)
  Parameters
| 
        SparkNode
        node
         
  | 
    
Implements
ISparkView.PlotAreaClip
ISparkView.ViewportHeight
Declaration
double ISparkView.ViewportHeight { get; }
  Returns
| 
        System.Double
         
  | 
    
Implements
ISparkView.ViewportWidth
Declaration
double ISparkView.ViewportWidth { get; }
  Returns
| 
        System.Double
         
  |