menu

WPF

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class CandleSegment - WPF API Reference | Syncfusion

    Show / Hide Table of Contents

    Class CandleSegment

    Represents chart candle segment.

    Inheritance
    System.Object
    ChartSegment
    CandleSegment
    Implements
    System.ComponentModel.INotifyPropertyChanged
    Inherited Members
    ChartSegment.AlignHiLoSegment(Double, Double, Double, Double)
    ChartSegment.Interior
    ChartSegment.InteriorProperty
    ChartSegment.IsEmptySegmentInterior
    ChartSegment.Item
    ChartSegment.PolygonPoints
    ChartSegment.PropertyChanged
    ChartSegment.Series
    ChartSegment.SetData(ChartPoint, ChartPoint, ChartPoint, ChartPoint)
    ChartSegment.SetData(ChartPoint, ChartPoint, ChartPoint, ChartPoint, ChartPoint, ChartPoint, Boolean)
    ChartSegment.SetData(Double[])
    ChartSegment.SetData(IList<Double>, IList<Double>)
    ChartSegment.SetData(IList<Double>, IList<Double>, Brush)
    ChartSegment.SetData(IList<Double>, IList<Double>, Brush, Int32)
    ChartSegment.SetData(IList<Double>, IList<Double>, IList<Double>)
    ChartSegment.SetData(IList<Double>, IList<Double>, IList<Double>, IList<Double>)
    ChartSegment.SetData(IList<Double>, IList<Double>, IList<Double>, IList<Double>, IList<Double>)
    ChartSegment.SetData(List<ChartPoint>)
    ChartSegment.SetData(List<Double>, IList<Double>, Double, Double)
    ChartSegment.SetData(List<Point>)
    ChartSegment.SetData(Point, Point, Point, Point)
    ChartSegment.SetData(Point, Point, Point, Point, Point, Point)
    ChartSegment.SetData(Point, Point, Point, Point, Point, Point, Boolean)
    ChartSegment.Stroke
    ChartSegment.StrokeDashArray
    ChartSegment.StrokeDashArrayProperty
    ChartSegment.StrokeProperty
    ChartSegment.StrokeThickness
    ChartSegment.StrokeThicknessProperty
    ChartSegment.XRange
    ChartSegment.YRange
    Namespace: Syncfusion.UI.Xaml.Charts
    Assembly: Syncfusion.SfChart.WPF.dll
    Syntax
    public class CandleSegment : ChartSegment, INotifyPropertyChanged
    Remarks

    Class instance is created automatically by WINRT Chart building system.

    Constructors

    CandleSegment()

    Declaration
    public CandleSegment()

    CandleSegment(Point, Point, Point, Point, Boolean, CandleSeries, Object)

    Called when Instance created for CandleSegment

    Declaration
    public CandleSegment(Point cdpBottomLeft, Point cdpRightTop, Point hipoint, Point lopoint, bool isbull, CandleSeries series, object item)
    Parameters
    Type Name Description
    System.Windows.Point cdpBottomLeft
    System.Windows.Point cdpRightTop
    System.Windows.Point hipoint
    System.Windows.Point lopoint
    System.Boolean isbull
    CandleSeries series
    System.Object item

    Properties

    ActualInterior

    Gets the actual color used to paint the interior of the segment.

    Declaration
    public Brush ActualInterior { get; }
    Property Value
    Type Description
    System.Windows.Media.Brush

    The System.Windows.Media.Brush value.

    ActualStroke

    Declaration
    public Brush ActualStroke { get; }
    Property Value
    Type
    System.Windows.Media.Brush

    BearFillColor

    Gets or sets the interior of the segment represents bear value.

    Declaration
    public Brush BearFillColor { get; set; }
    Property Value
    Type Description
    System.Windows.Media.Brush

    The System.Windows.Media.Brush value.

    BullFillColor

    Gets or sets the interior of the segment represents bull value.

    Declaration
    public Brush BullFillColor { get; set; }
    Property Value
    Type Description
    System.Windows.Media.Brush

    The System.Windows.Media.Brush value.

    Close

    Gets or sets the close value of this segment.

    Declaration
    public double Close { get; set; }
    Property Value
    Type
    System.Double

    High

    Gets or sets the high value of this segment.

    Declaration
    public double High { get; set; }
    Property Value
    Type
    System.Double

    Low

    Gets or sets the low value of this segment.

    Declaration
    public double Low { get; set; }
    Property Value
    Type
    System.Double

    Open

    Gets or sets the open value of this segment.

    Declaration
    public double Open { get; set; }
    Property Value
    Type
    System.Double

    Methods

    CreateVisual(Size)

    Used for creating UIElement for rendering this segment. This method is not intended to be called explicitly outside the Chart but it can be overriden by any derived class.

    Declaration
    public override UIElement CreateVisual(Size size)
    Parameters
    Type Name Description
    System.Windows.Size size

    Size of the panel

    Returns
    Type Description
    System.Windows.UIElement

    retuns UIElement

    Overrides
    ChartSegment.CreateVisual(Size)

    GetRenderedVisual()

    Gets the UIElement used for rendering this segment.

    Declaration
    public override UIElement GetRenderedVisual()
    Returns
    Type Description
    System.Windows.UIElement

    reurns UIElement

    Overrides
    ChartSegment.GetRenderedVisual()

    OnPropertyChanged(String)

    Called when Property changed

    Declaration
    protected override void OnPropertyChanged(string name)
    Parameters
    Type Name Description
    System.String name
    Overrides
    ChartSegment.OnPropertyChanged(String)

    OnSizeChanged(Size)

    Called whenever the segment's size changed. This method is not intended to be called explicitly outside the Chart but it can be overriden by any derived class.

    Declaration
    public override void OnSizeChanged(Size size)
    Parameters
    Type Name Description
    System.Windows.Size size
    Overrides
    ChartSegment.OnSizeChanged(Size)

    SetData(ChartPoint, ChartPoint, ChartPoint, ChartPoint, Boolean)

    Declaration
    public override void SetData(ChartPoint BottomLeft, ChartPoint RightTop, ChartPoint hipoint, ChartPoint loPoint, bool isBull)
    Parameters
    Type Name Description
    ChartPoint BottomLeft
    ChartPoint RightTop
    ChartPoint hipoint
    ChartPoint loPoint
    System.Boolean isBull
    Overrides
    ChartSegment.SetData(ChartPoint, ChartPoint, ChartPoint, ChartPoint, Boolean)

    SetData(Point, Point, Point, Point, Boolean)

    Sets the values for this segment. This method is not intended to be called explicitly outside the Chart but it can be overriden by any derived class.

    Declaration
    [Obsolete("Use SetData(ChartPoint point1, ChartPoint point2, ChartPoint point3,ChartPoint point4,bool isBull)")]
    public override void SetData(Point BottomLeft, Point RightTop, Point hipoint, Point loPoint, bool isBull)
    Parameters
    Type Name Description
    System.Windows.Point BottomLeft
    System.Windows.Point RightTop
    System.Windows.Point hipoint
    System.Windows.Point loPoint
    System.Boolean isBull
    Overrides
    ChartSegment.SetData(Point, Point, Point, Point, Boolean)

    SetVisualBindings(Shape)

    Method Implementation for set Binding to CandleSegment properties.

    Declaration
    protected override void SetVisualBindings(Shape element)
    Parameters
    Type Name Description
    System.Windows.Shapes.Shape element
    Overrides
    ChartSegment.SetVisualBindings(Shape)

    Update(IChartTransformer)

    Updates the segments based on its data point value. This method is not intended to be called explicitly outside the Chart but it can be overriden by any derived class.

    Declaration
    public override void Update(IChartTransformer transformer)
    Parameters
    Type Name Description
    Syncfusion.UI.Xaml.Charts.IChartTransformer transformer

    Reresents the view port of chart control.(refer Syncfusion.UI.Xaml.Charts.IChartTransformer)

    Overrides
    ChartSegment.Update(IChartTransformer)

    Implements

    System.ComponentModel.INotifyPropertyChanged

    See Also

    CandleSeries
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved