Class SFChartBehavior
SFChartBehavior can be added to SFChart view You can handle the SFChart view events directly in chart behavior, which will be helpful in designing the chart application.
Inheritance
Namespace: Syncfusion.SfChart.iOS
Assembly: Syncfusion.SFChart.iOS.dll
Syntax
public abstract class SFChartBehavior : NSObject
Constructors
SFChartBehavior()
Declaration
public SFChartBehavior()
Properties
AdornmentLayer
Gets the adornment layer.
Declaration
public AdornmentLayer AdornmentLayer { get; }
Property Value
Type | Description |
---|---|
AdornmentLayer | You can also add your drawing content to the Chart, by making use of the adornment layer. This method returned the adornment layer which can be used to place the your drawing content at desired positions. |
Chart
Gets the chart.
Declaration
public SFChart Chart { get; }
Property Value
Type | Description |
---|---|
SFChart | The SFChart view the chart behavior is attached to. (read-only) You attach(or add) a chart behavior to a SFChart object using the Behavior collection property. |
Methods
DrawInContext(CGContext)
Called via the -display method when the `contents' property is being updated. Default implementation for each behaviors (like Selection Zooming Rectangle).
Declaration
public virtual void DrawInContext(CGContext context)
Parameters
Type | Name | Description |
---|---|---|
CoreGraphics.CGContext | context | The context. |
TouchesBegan(NSSet, UIEvent)
Tells the receiver when one or more fingers touch down in a SFChart view.
Declaration
public virtual void TouchesBegan(NSSet touches, UIEvent uiEvent)
Parameters
Type | Name | Description |
---|---|---|
Foundation.NSSet | touches | A set of UITouch instances that represent the touches for the starting phase of the event represented by event. |
UIKit.UIEvent | uiEvent | An object representing the event to which the touches belong. |
TouchesCancelled(NSSet, UIEvent)
Sent to the receiver when a system event (such as a low-memory warning) cancels a touch event.
Declaration
public virtual void TouchesCancelled(NSSet touches, UIEvent uiEvent)
Parameters
Type | Name | Description |
---|---|---|
Foundation.NSSet | touches | A set of UITouch instances that represent the touches for the ending phase of the event represented by event. |
UIKit.UIEvent | uiEvent | An object representing the event to which the touches belong. |
TouchesEnded(NSSet, UIEvent)
Tells the receiver when one or more fingers are raised from a SFChart view.
Declaration
public virtual void TouchesEnded(NSSet touches, UIEvent uiEvent)
Parameters
Type | Name | Description |
---|---|---|
Foundation.NSSet | touches | A set of UITouch instances that represent the touches for the ending phase of the event represented by event. |
UIKit.UIEvent | uiEvent | An object representing the event to which the touches belong. |
TouchesMoved(NSSet, UIEvent)
Tells the receiver when one or more fingers associated with an event move within a SFChart view.
Declaration
public virtual void TouchesMoved(NSSet touches, UIEvent uiEvent)
Parameters
Type | Name | Description |
---|---|---|
Foundation.NSSet | touches | A set of UITouch instances that represent the touches that are moving during the event represented by event. |
UIKit.UIEvent | uiEvent | An object representing the event to which the touches belong |