New to Telerik UI for WinFormsStart a free 30-day trial

Definition

Namespace:Telerik.WinControls.UI

Assembly:Telerik.WinControls.UI.dll

Syntax:

C#
public class SparkView : UISparkElement, IDisposable, INotifyPropertyChanged, ICustomTypeDescriptor, IStylableElement, IStylableNode, IShapedElement, ISparkView, ISparkElementPresenter

Inheritance: objectDisposableObjectRadObjectUISparkElementSparkView

Implements: ICustomTypeDescriptorIDisposableINotifyPropertyChangedIShapedElementISparkElementPresenterISparkViewIStylableElementIStylableNode...

Inherited Members UISparkElement.IsVisiblePropertyUISparkElement.ClassPropertyUISparkElement.VisualStatePropertyUISparkElement.IsMouseDownPropertyUISparkElement.IsMouseOverPropertyUISparkElement.FontPropertyUISparkElement.CustomFontPropertyUISparkElement.CustomFontSizePropertyUISparkElement.CustomFontStylePropertyUISparkElement.ForeColorPropertyUISparkElement.BackColorPropertyUISparkElement.BorderWidthPropertyUISparkElement.BorderColorPropertyUISparkElement.BorderDashStylePropertyUISparkElement.ShapePropertyUISparkElement.SmoothingModePropertyUISparkElement.GetValue(RadProperty)UISparkElement.Attach(UISparkElement)UISparkElement.Dettach()UISparkElement.OnDettached()UISparkElement.Refresh()UISparkElement.Invalidate()UISparkElement.MeasureContentOverride(SparkNode, object)UISparkElement.DpiScaleChanged(SizeF)UISparkElement.GetScaledFont(float)UISparkElement.GetCurrentShape()UISparkElement.GetThemeEffectiveType()UISparkElement.ApplyStyleSettingsCore(PropertySettingGroup)UISparkElement.ApplyStyle()UISparkElement.BuildVisualState()UISparkElement.AddStylePropertySetting(IPropertySetting)UISparkElement.ApplyStyleByIndex(PropertySettingGroup, int)UISparkElement.ParentUISparkElement.LevelUISparkElement.ChildrenUISparkElement.IsMouseDownUISparkElement.IsMouseOverUISparkElement.ViewUISparkElement.IsVisibleUISparkElement.ForeColorUISparkElement.FontUISparkElement.BackColorUISparkElement.BorderWidthUISparkElement.BorderColorUISparkElement.BorderDashStyleUISparkElement.ShapeUISparkElement.SmoothingModeUISparkElement.IsAttachedUISparkElement.DpiScaleFactorUISparkElement.ClassUISparkElement.VisualStateUISparkElement.ThemeRoleUISparkElement.ChildrenHierarchyUISparkElement.StyleUISparkElement.StateManagerUISparkElement.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

Initializes a new instance of the SparkView class.

C#
public SparkView(ISparkViewHost owner)
Parameters:ownerISparkViewHost

The owner.

Initializes a new instance of the SparkView class.

C#
public SparkView(RadSparkline owner)
Parameters:ownerRadSparkline

The owner.

Initializes a new instance of the SparkView class.

C#
public SparkView(RadSparklineElement owner)
Parameters:ownerRadSparklineElement

The owner.

Fields

C#
public static RadProperty MarginProperty
C#
public static RadProperty MinSizeProperty

Properties

Gets the annotations.

C#
public SparkAnnotationCollection Annotations { get; }
Property Value:

The annotations.

Gets the area.

C#
[Browsable(false)]
public SparkArea Area { get; }
Property Value:

The area.

Gets the axes.

C#
public SparkAxisCollection Axes { get; }
Property Value:

The axes.

Gets or sets whether the horizontal axis will be painted on top of the series.

C#
public AxisDrawMode AxisDrawMode { get; set; }

Gets the client rectangle.

C#
public RectangleF ClientRectangle { get; }
Property Value:

The client rectangle.

Gets the controllers.

C#
public SparkViewControllerCollection Controllers { get; }
Property Value:

The controllers.

Gets or sets the name of the list or table in the data source for which the SparkSeries is bound.

C#
[Browsable(true)]
public string DataMember { get; set; }

Gets or sets the data source of the SparkSeries.

C#
public object DataSource { get; set; }
C#
public EmptyPointBehavior EmptyPointBehavior { get; set; }

Gets or sets the margin.

C#
public Padding Margin { get; set; }
Property Value:

The margin.

Gets or sets the minimum size.

C#
public SizeF MinSize { get; set; }
Property Value:

The size of the min.

Gets or sets the owner.

C#
public ISparkViewHost Owner { get; set; }
Property Value:

The owner.

Gets the renderer.

C#
public ISparkRenderer Renderer { get; }
Property Value:

The renderer.

Gets the series.

C#
public SparkSeries Series { get; set; }
Property Value:

The series.

Shows or hides the horizontal axis in the sparkline.

C#
public bool ShowAxis { get; set; }

Gets or sets whether the first point indicator will be painted.

C#
public bool ShowFirstPointIndicator { get; set; }

Gets or sets whether the high point marker will be painted.

C#
public bool ShowHighPointIndicator { get; set; }

Gets or sets whether the last point indicator will be painted.

C#
public bool ShowLastPointIndicator { get; set; }

Gets or sets whether the low point indicator will be painted.

C#
public bool ShowLowPointIndicator { get; set; }

Gets or sets whether the negative point markers will be painted.

C#
public bool ShowNegativePointIndicators { get; set; }

Gets or sets whether the tool tip will be shown.

C#
public bool ShowToolTip { get; set; }
Property Value:

The show tool tip.

Gets or sets the viewport.

C#
public RadRect Viewport { get; set; }
Property Value:

The viewport.

Gets or sets the view result.

C#
public ViewResult ViewResult { get; set; }
Property Value:

The view result.

Methods

Defers the refresh.

C#
public virtual IDisposable DeferRefresh()
Returns:

IDisposable

Draws the specified context.

C#
public virtual void Draw(object context)
Parameters:contextobject

The context.

Gets the area.

C#
public T GetArea<T>() where T : SparkArea
Returns:

T

Layouts the sparkline.

C#
public void Layout()

Layouts the sparkline indicating whether to invalidate.

C#
public void Layout(bool redraw)
Parameters:redrawbool

The redraw.

Layouts in the specified rect.

C#
public void Layout(RadRect rect)
Parameters:rectRadRect

The rect.

Called when [attached].

C#
protected override void OnAttached(UISparkElement parent)
Parameters:parentUISparkElement

The parent.

Overrides: UISparkElement.OnAttached(UISparkElement)

Raises the event.

C#
protected virtual void OnCreatePoint(SparklineCreatePointEventArgs e)
Parameters:eSparklineCreatePointEventArgs

The SparklineCreatePointEventArgs instance containing the event data.

Fires the CreateRenderer event.

C#
protected virtual void OnCreateRenderer(object sender, SparklineCreateRendererEventArgs e)
Parameters:senderobject

The sender.

eSparklineCreateRendererEventArgs

The SparklineCreateRendererEventArgs instance containing the event data.

Called when data error occurs.

C#
protected virtual void OnDataError(Exception exception)
Parameters:exceptionException

The exception.

Raises the event.

C#
protected virtual void OnGesture(GestureEventArgs e)
Parameters:eGestureEventArgs

The GestureEventArgs instance containing the event data.

Raises the event.

C#
protected virtual void OnKeyDown(KeyEventArgs e)
Parameters:eKeyEventArgs

The KeyEventArgs instance containing the event data.

Raises the event.

C#
protected virtual void OnKeyPress(KeyPressEventArgs e)
Parameters:eKeyPressEventArgs

The KeyPressEventArgs instance containing the event data.

Raises the event.

C#
protected virtual void OnKeyUp(KeyEventArgs e)
Parameters:eKeyEventArgs

The KeyEventArgs instance containing the event data.

Raises the event.

C#
protected virtual void OnMouseCaptureChanged(EventArgs e)
Parameters:eEventArgs

The EventArgs instance containing the event data.

Raises the event.

C#
protected virtual void OnMouseClick(MouseEventArgs e)
Parameters:eMouseEventArgs

The MouseEventArgs instance containing the event data.

Raises the event.

C#
protected virtual void OnMouseDoubleClick(MouseEventArgs e)
Parameters:eMouseEventArgs

The MouseEventArgs instance containing the event data.

Raises the event.

C#
protected virtual void OnMouseDown(MouseEventArgs e)
Parameters:eMouseEventArgs

The MouseEventArgs instance containing the event data.

Raises the event.

C#
protected virtual void OnMouseEnter(EventArgs e)
Parameters:eEventArgs

The EventArgs instance containing the event data.

Raises the event.

C#
protected virtual void OnMouseHover(EventArgs e)
Parameters:eEventArgs

The EventArgs instance containing the event data.

Raises the event.

C#
protected virtual void OnMouseLeave(EventArgs e)
Parameters:eEventArgs

The EventArgs instance containing the event data.

Raises the event.

C#
protected virtual void OnMouseMove(MouseEventArgs e)
Parameters:eMouseEventArgs

The MouseEventArgs instance containing the event data.

Raises the event.

C#
protected virtual void OnMouseUp(MouseEventArgs e)
Parameters:eMouseEventArgs

The MouseEventArgs instance containing the event data.

Raises the event.

C#
protected virtual void OnMouseWheel(MouseEventArgs e)
Parameters:eMouseEventArgs

The MouseEventArgs instance containing the event data.

Raises the event.

C#
protected virtual void OnPanGesture(PanGestureEventArgs e)
Parameters:ePanGestureEventArgs

The PanGestureEventArgs instance containing the event data.

Raises the event.

C#
protected void OnPressAndTapGesture(PressAndTapGestureEventArgs e)
Parameters:ePressAndTapGestureEventArgs

The PressAndTapGestureEventArgs instance containing the event data.

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

C#
protected override void OnPropertyChanged(RadPropertyChangedEventArgs e)
Parameters:eRadPropertyChangedEventArgs

The RadPropertyChangedEventArgs containing information about the property change.

Overrides: UISparkElement.OnPropertyChanged(RadPropertyChangedEventArgs)

Raises the event.

C#
protected virtual void OnRotateGesture(RotateGestureEventArgs e)
Parameters:eRotateGestureEventArgs

The RotateGestureEventArgs instance containing the event data.

Raises the event.

C#
protected virtual void OnTwoFingerTapGesture(GestureEventArgs e)
Parameters:eGestureEventArgs

The GestureEventArgs instance containing the event data.

Raises the event.

C#
protected virtual void OnZoomGesture(ZoomGestureEventArgs e)
Parameters:eZoomGestureEventArgs

The ZoomGestureEventArgs instance containing the event data.

Performs refreshing the view.

C#
public void PerformRefresh(UISparkElement element, bool updateLayout)
Parameters:elementUISparkElement

The element.

updateLayoutbool

The update layout.

Processes the result.

C#
protected virtual bool ProcessResult(ActionResult actionResult)
Parameters:actionResultActionResult

The action result.

Returns:

bool

Resets the view.

C#
public void Reset()

Resumes refreshing the view.

C#
public void ResumeRefresh()

Suspends refreshing the view.

C#
public void SuspendRefresh()
C#
public virtual void SyncViewProperties()

Events

Occurs when a new DataPoint is created.

C#
public event SparklineCreatePointEventHandler CreatePoint

Fired when the area requires an renderer for the first time.

C#
public event SparklineCreateRendererEventHandler CreateRenderer

Occurs when a data error is detected.

C#
public event ChartViewDataErrorEventHandler DataError