menu

WinForms

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

    Show / Hide Table of Contents

    Class ChartAdornment

    Represents chart adornment.

    Inheritance
    System.Object
    ChartSegment
    ChartAdornment
    ChartAdornment3D
    ChartPieAdornment
    TriangularAdornment
    Implements
    System.ComponentModel.INotifyPropertyChanged
    Inherited Members
    ChartSegment.AlignHiLoSegment(Double, Double, Double, Double)
    ChartSegment.Interior
    ChartSegment.InteriorProperty
    ChartSegment.IsEmptySegmentInterior
    ChartSegment.Item
    ChartSegment.OnPropertyChanged(String)
    ChartSegment.PolygonPoints
    ChartSegment.PropertyChanged
    ChartSegment.SetData(ChartPoint, ChartPoint, ChartPoint, ChartPoint)
    ChartSegment.SetData(ChartPoint, ChartPoint, ChartPoint, ChartPoint, Boolean)
    ChartSegment.SetData(ChartPoint, ChartPoint, ChartPoint, ChartPoint, ChartPoint, ChartPoint, Boolean)
    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, Boolean)
    ChartSegment.SetData(Point, Point, Point, Point, Point, Point)
    ChartSegment.SetData(Point, Point, Point, Point, Point, Point, Boolean)
    ChartSegment.SetVisualBindings(Shape)
    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 ChartAdornment : ChartSegment, INotifyPropertyChanged
    Remarks

    Class instance is created automatically by WINRT Chart building system.

    Constructors

    ChartAdornment()

    Constructor

    Declaration
    public ChartAdornment()

    ChartAdornment(Double, Double, Double, Double, ChartSeriesBase)

    Called when instance created for ChartAdornment

    Declaration
    public ChartAdornment(double xVal, double yVal, double x, double y, ChartSeriesBase series)
    Parameters
    Type Name Description
    System.Double xVal
    System.Double yVal
    System.Double x
    System.Double y
    ChartSeriesBase series

    Fields

    BackgroundProperty

    The DependencyProperty for Background property.

    Declaration
    public static readonly DependencyProperty BackgroundProperty
    Field Value
    Type
    System.Windows.DependencyProperty

    BorderBrushProperty

    The DependencyProperty for BorderBrush property.

    Declaration
    public static readonly DependencyProperty BorderBrushProperty
    Field Value
    Type
    System.Windows.DependencyProperty

    BorderThicknessProperty

    The DependencyProperty for BorderThickness property.

    Declaration
    public static readonly DependencyProperty BorderThicknessProperty
    Field Value
    Type
    System.Windows.DependencyProperty

    ConnectorHeightProperty

    The DependencyProperty for ConnectorHeight property.

    Declaration
    public static readonly DependencyProperty ConnectorHeightProperty
    Field Value
    Type
    System.Windows.DependencyProperty

    ConnectorRotationAngleProperty

    The DependencyProperty for ConnectorRotationAngle property.

    Declaration
    public static readonly DependencyProperty ConnectorRotationAngleProperty
    Field Value
    Type
    System.Windows.DependencyProperty

    FontFamilyProperty

    The DependencyProperty for FontFamily property.

    Declaration
    public static readonly DependencyProperty FontFamilyProperty
    Field Value
    Type
    System.Windows.DependencyProperty

    FontSizeProperty

    The DependencyProperty for FontSize property.

    Declaration
    public static readonly DependencyProperty FontSizeProperty
    Field Value
    Type
    System.Windows.DependencyProperty

    FontStyleProperty

    The DependencyProperty for FontStyle property.

    Declaration
    public static readonly DependencyProperty FontStyleProperty
    Field Value
    Type
    System.Windows.DependencyProperty

    ForegroundProperty

    The DependencyProperty for Foreground property.

    Declaration
    public static readonly DependencyProperty ForegroundProperty
    Field Value
    Type
    System.Windows.DependencyProperty

    MarginProperty

    The DependencyProperty for Margin property.

    Declaration
    public static readonly DependencyProperty MarginProperty
    Field Value
    Type
    System.Windows.DependencyProperty

    Properties

    ActualContent

    Gets the actual content displayed visually. Actual content is resolved based on SegmentLabelContent.

    Declaration
    public object ActualContent { get; }
    Property Value
    Type
    System.Object

    Background

    Gets or sets the background brush to apply to the label content.

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

    The System.Windows.Media.Brush value.

    BorderBrush

    Gets or sets the brush that draws the outer border color.

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

    The System.Windows.Media.Brush value.

    BorderThickness

    Gets or sets the outer border thickness of the adornment label.

    Declaration
    public Thickness BorderThickness { get; set; }
    Property Value
    Type
    System.Windows.Thickness

    ConnectorHeight

    Gets or sets the height of the connector line.

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

    ConnectorRotationAngle

    Gets or sets the rotation angle for the connectors.

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

    FontFamily

    Gets or sets the font family for the adornment label.

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

    FontFamily

    Remarks

    Identifies font family that should be used to display adornment's text.

    FontSize

    Gets or sets the font size for the label.

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

    FontStyle

    Gets or sets the font style for the adornment.

    Declaration
    public FontStyle FontStyle { get; set; }
    Property Value
    Type Description
    System.Windows.FontStyle

    FontStyle

    Foreground

    Gets or sets the foreground brush to be applied for the label content.

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

    The System.Windows.Media.Brush value.

    Margin

    Gets or sets the outer margin of a label.

    Declaration
    public Thickness Margin { get; set; }
    Property Value
    Type
    System.Windows.Thickness

    Series

    Gets or sets series property

    Declaration
    public ChartSeriesBase Series { get; protected set; }
    Property Value
    Type
    ChartSeriesBase

    X

    Gets or sets the x screen coordinate relative to series

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

    XData

    Gets or sets the x-value to be bind in ChartAdornment.

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

    Y

    Gets or sets the y screen coordinate relative to series

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

    YData

    Gets or sets the y-value to be bind in ChartAdornment.

    Declaration
    public double YData { 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()

    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(Double[])

    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
    public override void SetData(params double[] Values)
    Parameters
    Type Name Description
    System.Double[] Values
    Overrides
    ChartSegment.SetData(Double[])

    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

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