Click or drag to resize

TradingChart Methods

LightningChart .NET Help

The TradingChart type exposes the following members.

Methods
  NameDescription
Public methodAddData
Adds new data points to the chart. Does not remove or replace the existing data points.
Public methodAddHandler(RoutedEvent, Delegate)
Adds a routed event handler for a specified routed event, adding the handler to the handler collection on the current element.
(Inherited from UIElement.)
Public methodAddHandler(RoutedEvent, Delegate, Boolean)
Adds a routed event handler for a specified routed event, adding the handler to the handler collection on the current element. Specify handledEventsToo as true to have the provided handler be invoked for routed event that had already been marked as handled by another element along the event route.
(Inherited from UIElement.)
Public methodAddToEventRoute
Adds handlers to the specified EventRoute for the current UIElement event handler collection.
(Inherited from UIElement.)
Public methodApplyAnimationClock(DependencyProperty, AnimationClock)
Applies an animation to a specified dependency property on this element. Any existing animations are stopped and replaced with the new animation.
(Inherited from UIElement.)
Public methodApplyAnimationClock(DependencyProperty, AnimationClock, HandoffBehavior)
Applies an animation to a specified dependency property on this element, with the ability to specify what happens if the property already has a running animation.
(Inherited from UIElement.)
Public methodApplyTemplate
Builds the current template's visual tree if necessary, and returns a value that indicates whether the visual tree was rebuilt by this call.
(Inherited from FrameworkElement.)
Public methodArrange
Positions child elements and determines a size for a UIElement. Parent elements call this method from their ArrangeCore(Rect) implementation (or a WPF framework-level equivalent) to form a recursive layout update. This method constitutes the second pass of a layout update.
(Inherited from UIElement.)
Public methodBeginAnimation(DependencyProperty, AnimationTimeline)
Starts an animation for a specified animated property on this element.
(Inherited from UIElement.)
Public methodBeginAnimation(DependencyProperty, AnimationTimeline, HandoffBehavior)
Starts a specific animation for a specified animated property on this element, with the option of specifying what happens if the property already has a running animation.
(Inherited from UIElement.)
Public methodBeginInit
Starts the initialization process for this element.
(Inherited from FrameworkElement.)
Public methodBeginStoryboard(Storyboard)
Begins the sequence of actions that are contained in the provided storyboard.
(Inherited from FrameworkElement.)
Public methodBeginStoryboard(Storyboard, HandoffBehavior)
Begins the sequence of actions contained in the provided storyboard, with options specified for what should happen if the property is already animated.
(Inherited from FrameworkElement.)
Public methodBeginStoryboard(Storyboard, HandoffBehavior, Boolean)
Begins the sequence of actions contained in the provided storyboard, with specified state for control of the animation after it is started.
(Inherited from FrameworkElement.)
Public methodBeginUpdate
Begin update. Disables control repaints when a property is changed. Handy when updating status of many properties or setting data of various objects.
Public methodBringIntoView
Attempts to bring this element into view, within any scrollable regions it is contained within.
(Inherited from FrameworkElement.)
Public methodBringIntoView(Rect)
Attempts to bring the provided region size of this element into view, within any scrollable regions it is contained within.
(Inherited from FrameworkElement.)
Public methodCaptureMouse
Attempts to force capture of the mouse to this element.
(Inherited from UIElement.)
Public methodCaptureStylus
Attempts to force capture of the stylus to this element.
(Inherited from UIElement.)
Public methodCaptureTouch
Attempts to force capture of a touch to this element.
(Inherited from UIElement.)
Public methodClearData
Clears all trading data.
Public methodClearValue(DependencyProperty)
Clears the local value of a property. The property to be cleared is specified by a DependencyProperty identifier.
(Inherited from DependencyObject.)
Public methodClearValue(DependencyPropertyKey)
Clears the local value of a read-only property. The property to be cleared is specified by a DependencyPropertyKey.
(Inherited from DependencyObject.)
Public methodCoerceValue
Coerces the value of the specified dependency property. This is accomplished by invoking any CoerceValueCallback function specified in property metadata for the dependency property as it exists on the calling DependencyObject.
(Inherited from DependencyObject.)
Public methodCopyToClipboard
Copy the chart to clipboard image. Custom size can be defined via width and height parameters.
Public methodDateTimeToXValue
Converts given DateTime to actual X-axis value. Due to removal of non-trading days, the X-axis is not linear. Therefore, it is not possible to convert values outside the visible time range. Returns minimum or maximum axis value if given time is outside the range.
Public methodDispose
Disposes the chart and all its indicators and drawing tools.
Public methodDisposeAllDrawingTools
Removes and disposes all Drawing Tools in the chart.
Public methodDisposeAllIndicators
Removes and disposes all Indicators in the chart.
Public methodEndInit
Indicates that the initialization process for the element is complete.
(Inherited from FrameworkElement.)
Public methodEndUpdate
End update. Enables control repainting, and refreshes the control.
Public methodEquals
Determines whether a provided DependencyObject is equivalent to the current DependencyObject.
(Inherited from DependencyObject.)
Public methodFindCommonVisualAncestor
Returns the common ancestor of two visual objects.
(Inherited from Visual.)
Public methodFindName
Finds an element that has the provided identifier name.
(Inherited from FrameworkElement.)
Public methodFindResource
Searches for a resource with the specified key, and throws an exception if the requested resource is not found.
(Inherited from FrameworkElement.)
Public methodFocus
Attempts to set focus to this element.
(Inherited from UIElement.)
Public methodGetAllRangeButtons
Gets list of all time range buttons
Public methodGetAnimationBaseValue
Returns the base property value for the specified property on this element, disregarding any possible animated value from a running or stopped animation.
(Inherited from UIElement.)
Public methodGetBindingExpression
Returns the BindingExpression that represents the binding on the specified property.
(Inherited from FrameworkElement.)
Public methodGetHashCode
Gets a hash code for this DependencyObject.
(Inherited from DependencyObject.)
Public methodGetInternalChart
Gets a LightningChart instance which this trading chart API is built on. Gives you direct control of the chart, and allows customizing it in further level.
Public methodGetLocalValueEnumerator
Creates a specialized enumerator for determining which dependency properties have locally set values on this DependencyObject.
(Inherited from DependencyObject.)
Public methodGetOhlcData
Gets the current data set as an Ohlc-data array. Returns the whole loaded data set, not only the current visible time range.
Public methodGetOhlcDataFromFile
Converts CSV formatted data into OHLC data. Requires data to have the following columns: Date / Time, Open, High, Low, Close. Can have two optional columns: Volume, OpenInterest.
Public methodGetTimeRange
Gets the time range of the current data set.
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodGetValue
Returns the current effective value of a dependency property on this instance of a DependencyObject.
(Inherited from DependencyObject.)
Public methodGetXAxisMinMax
Gets the actual minimum and maximum double values of the time range X-axis. To get the start/end dates, use GetTimeRange() -method.
Public methodGetYAxisMinMax
Gets the minimum and maximum values of the price Y-axis.
Public methodInitializeComponent
InitializeComponent
Public methodInputHitTest
Returns the input element within the current element that is at the specified coordinates, relative to the current element's origin.
(Inherited from UIElement.)
Public methodInvalidateArrange
Invalidates the arrange state (layout) for the element. After the invalidation, the element will have its layout updated, which will occur asynchronously unless subsequently forced by UpdateLayout.
(Inherited from UIElement.)
Public methodInvalidateMeasure
Invalidates the measurement state (layout) for the element.
(Inherited from UIElement.)
Public methodInvalidateProperty
Re-evaluates the effective value for the specified dependency property
(Inherited from DependencyObject.)
Public methodInvalidateVisual
Invalidates the rendering of the element, and forces a complete new layout pass. OnRender(DrawingContext) is called after the layout cycle is completed.
(Inherited from UIElement.)
Public methodIsAncestorOf
Determines whether the visual object is an ancestor of the descendant visual object.
(Inherited from Visual.)
Public methodIsDescendantOf
Determines whether the visual object is a descendant of the ancestor visual object.
(Inherited from Visual.)
Public methodMeasure
Updates the DesiredSize of a UIElement. Parent elements call this method from their own MeasureCore(Size) implementations to form a recursive layout update. Calling this method constitutes the first pass (the "Measure" pass) of a layout update.
(Inherited from UIElement.)
Public methodMoveFocus
Moves the keyboard focus away from this element and to another element in a provided traversal direction.
(Inherited from FrameworkElement.)
Public methodOnApplyTemplate
When overridden in a derived class, is invoked whenever application code or internal processes call ApplyTemplate.
(Inherited from FrameworkElement.)
Public methodOpenSymbol
Opens the security by Symbol. Uses the currently set time range.
Public methodOpenSymbol(DateTime, DateTime)
Opens the security by Symbol. Manually define a new time range.
Public methodPointFromScreen
Converts a Point in screen coordinates into a Point that represents the current coordinate system of the Visual.
(Inherited from Visual.)
Public methodPointToScreen
Converts a Point that represents the current coordinate system of the Visual into a Point in screen coordinates.
(Inherited from Visual.)
Public methodPredictFocus
Determines the next element that would receive focus relative to this element for a provided focus movement direction, but does not actually move the focus.
(Inherited from FrameworkElement.)
Public methodRaiseEvent
Raises a specific routed event. The RoutedEvent to be raised is identified within the RoutedEventArgs instance that is provided (as the RoutedEvent property of that event data).
(Inherited from UIElement.)
Public methodReadLocalValue
Returns the local value of a dependency property, if it exists.
(Inherited from DependencyObject.)
Public methodRegisterName
Provides an accessor that simplifies access to the NameScope registration method.
(Inherited from FrameworkElement.)
Public methodReleaseAllTouchCaptures
Releases all captured touch devices from this element.
(Inherited from UIElement.)
Public methodReleaseMouseCapture
Releases the mouse capture, if this element held the capture.
(Inherited from UIElement.)
Public methodReleaseStylusCapture
Releases the stylus device capture, if this element held the capture.
(Inherited from UIElement.)
Public methodReleaseTouchCapture
Attempts to release the specified touch device from this element.
(Inherited from UIElement.)
Public methodRemoveAndDisposeIndicator
Removes and disposes an Indicator
Public methodRemoveHandler
Removes the specified routed event handler from this element.
(Inherited from UIElement.)
Public methodSaveToFile
Save the chart into a image file. Custom size can be defined via width and height parameters.
Public methodSaveToStream
Save the chart into stream in given format. Custom size can be defined via width and height parameters.
Public methodSetAppearance
Set appearance, such as colors and fonts based. Overrides object colors you might have set explicitly.
Public methodSetBinding(DependencyProperty, String)
Attaches a binding to this element, based on the provided source property name as a path qualification to the data source.
(Inherited from FrameworkElement.)
Public methodSetBinding(DependencyProperty, BindingBase)
Attaches a binding to this element, based on the provided binding object.
(Inherited from FrameworkElement.)
Public methodSetCurrentValue
Sets the value of a dependency property without changing its value source.
(Inherited from DependencyObject.)
Public methodSetData
Set data to chart
Public methodSetProvider
Changes the used data provider. Affects the search bar and methods such as OpenSymbol().
(Inherited from DataAwareControl.)
Public methodSetResourceReference
Searches for a resource with the specified name and sets up a resource reference to it for the specified property.
(Inherited from FrameworkElement.)
Public methodSetRestApiKey
Sets the customer-specific rest API key for the data provider. If this is not set, LightningChart's own connection will be used. Call this method only after DataProvider has been set, as changing DataProvider -property resets the current API key.
Public methodSetSecurityInfo
Manually updates the security information.
Public methodSetTimeRange
Manually set the time range of the loaded data. Can automatically adjust the current data set according to given time range. If no data has been loaded, the next data set loaded from a provider will use this range unless set otherwise.
Public methodSetValue(DependencyProperty, Object)
Sets the local value of a dependency property, specified by its dependency property identifier.
(Inherited from DependencyObject.)
Public methodSetValue(DependencyPropertyKey, Object)
Sets the local value of a read-only dependency property, specified by the DependencyPropertyKey identifier of the dependency property.
(Inherited from DependencyObject.)
Public methodToString
Returns the string representation of a Control object.
(Inherited from Control.)
Public methodTransformToAncestor(Visual)
Returns a transform that can be used to transform coordinates from the Visual to the specified Visual ancestor of the visual object.
(Inherited from Visual.)
Public methodTransformToAncestor(Visual3D)
Returns a transform that can be used to transform coordinates from the Visual to the specified Visual3D ancestor of the visual object.
(Inherited from Visual.)
Public methodTransformToDescendant
Returns a transform that can be used to transform coordinates from the Visual to the specified visual object descendant.
(Inherited from Visual.)
Public methodTransformToVisual
Returns a transform that can be used to transform coordinates from the Visual to the specified visual object.
(Inherited from Visual.)
Public methodTranslatePoint
Translates a point relative to this element to coordinates that are relative to the specified element.
(Inherited from UIElement.)
Public methodTryFindResource
Searches for a resource with the specified key, and returns that resource if found.
(Inherited from FrameworkElement.)
Public methodUnregisterName
Simplifies access to the NameScope de-registration method.
(Inherited from FrameworkElement.)
Public methodUpdateDefaultStyle
Reapplies the default style to the current FrameworkElement.
(Inherited from FrameworkElement.)
Public methodUpdateLayout
Ensures that all visual child elements of this element are properly updated for layout.
(Inherited from UIElement.)
Public methodZoomToFit
Zoom the data to fit the whole graph. Use ZoomToFitVerticalPadding to leave some empty space above and below the graph.
Top
See Also