Class FastLineBitmapSeries
Inheritance
Inherited Members
Namespace: Syncfusion.UI.Xaml.Charts
Assembly: Syncfusion.SfChart.WPF.dll
Syntax
public class FastLineBitmapSeries : XyDataSeries, ICloneable, ISupportAxes2D, ISupportAxes, ISegmentSelectable
Constructors
FastLineBitmapSeries()
Declaration
public FastLineBitmapSeries()
Fields
EnableAntiAliasingProperty
Identifies the EnableAntiAliasing dependency property.
Declaration
public static readonly DependencyProperty EnableAntiAliasingProperty
Field Value
Type | Description |
---|---|
System.Windows.DependencyProperty | The identifier for EnableAntiAliasing dependency property. |
SegmentSelectionBrushProperty
The DependencyProperty for SegmentSelectionBrush property.
Declaration
public static readonly DependencyProperty SegmentSelectionBrushProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
SelectedIndexProperty
The DependencyProperty for SelectedIndex property.
Declaration
public static readonly DependencyProperty SelectedIndexProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
StrokeDashArrayProperty
Identifies the StrokeDashArray dependency property.
Declaration
public static readonly DependencyProperty StrokeDashArrayProperty
Field Value
Type | Description |
---|---|
System.Windows.DependencyProperty | The identifier for StrokeDashArray dependency property. |
Properties
EnableAntiAliasing
Gets or sets a value that indicates whether to enable anti-aliasing for FastLineBitmapSeries, to draw smooth edges.
Declaration
public bool EnableAntiAliasing { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean | Default value is false. |
IsBitmapSeries
Gets whether this series is a bitmap series or not.
Declaration
protected override bool IsBitmapSeries { get; }
Property Value
Type | Description |
---|---|
System.Boolean | Returns the bool value. |
Overrides
IsLinear
Gets the value which confirms whether this series in linearity.
Declaration
protected override bool IsLinear { get; }
Property Value
Type | Description |
---|---|
System.Boolean | Returns the bool value. |
Overrides
Remarks
Returns true
if its linear, otherwise it returns false
.
SegmentSelectionBrush
Gets or sets the interior (brush) for the selected segment(s).
Declaration
public Brush SegmentSelectionBrush { get; set; }
Property Value
Type | Description |
---|---|
System.Windows.Media.Brush | The System.Windows.Media.Brush value. |
See Also
SelectedIndex
Gets or sets the index of the selected segment.
Declaration
public int SelectedIndex { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
|
See Also
SelectedSegments
Gets the selected segments in this series, when we enable the multiple selection.
Declaration
protected override List<ChartSegment> SelectedSegments { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<ChartSegment> | It returns the list of ChartSegment. |
Overrides
See Also
StrokeDashArray
Gets or sets the stroke dash array for the line stroke.
Declaration
public DoubleCollection StrokeDashArray { get; set; }
Property Value
Type | Description |
---|---|
System.Windows.Media.DoubleCollection | It takes the System.Windows.Media.DoubleCollection value. The default value is null. |
Methods
CloneSeries(DependencyObject)
Returns the instance of FastHiLoBitmapSeries series.
Declaration
protected override DependencyObject CloneSeries(DependencyObject obj)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.DependencyObject | obj | object |
Returns
Type |
---|
System.Windows.DependencyObject |
Overrides
CreateSegment()
Creates an instance of series segment.
Declaration
protected override ChartSegment CreateSegment()
Returns
Type | Description |
---|---|
ChartSegment | Returns the instance of corresponding series segment. |
Overrides
Remarks
This customization is not supported for fast type series and technical indicators.
Examples
This sample shows how to call the CreateSegment() method to customize the line series segments.
public class LineSeriesExt : LineSeries
{
protected override ChartSegment CreateSegment()
{
return new LineSegmentExt();
}
}
public class LineSegmentExt : LineSegment
{
public override UIElement CreateVisual(Size size)
{
// Write your customization code here.
}
public override void Update(IChartTransformer transformer)
{
// Write your customization code here.
}
}
CreateSegments()
Used to create the segment of FastLineBitmapSeries.
Declaration
public override void CreateSegments()
Overrides
OnDataSourceChanged(IEnumerable, IEnumerable)
Called when ItemsSource property changed.
Declaration
protected override void OnDataSourceChanged(IEnumerable oldValue, IEnumerable newValue)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.IEnumerable | oldValue | ItemsSource old value. |
System.Collections.IEnumerable | newValue | ItemsSource new value |
Overrides
See Also
OnMouseMove(MouseEventArgs)
Called when pointer or mouse moving on chart area.
Declaration
protected override void OnMouseMove(MouseEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Input.MouseEventArgs | e | Event args that contains the event data. |
Overrides
OnVisibleRangeChanged(VisibleRangeChangedEventArgs)
Invoked when VisibleRange property changed.
Declaration
protected override void OnVisibleRangeChanged(VisibleRangeChangedEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
VisibleRangeChangedEventArgs | e | VisibleRangeChangedEventArgs that contains the event data. |
Overrides
SelectedIndexChanged(Int32, Int32)
Method used to trigger SelectionChanged event to SelectedIndex segment.
Declaration
protected override void SelectedIndexChanged(int newIndex, int oldIndex)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | newIndex | new index |
System.Int32 | oldIndex | old index |