Class ChartAdornment
Represents chart adornment.
Inheritance
Implements
Inherited Members
Namespace: Syncfusion.UI.Xaml.Charts
Assembly: Syncfusion.SfChart.UWP.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 |
---|
Windows.UI.Xaml.DependencyProperty |
BorderBrushProperty
The DependencyProperty for BorderBrush property.
Declaration
public static readonly DependencyProperty BorderBrushProperty
Field Value
Type |
---|
Windows.UI.Xaml.DependencyProperty |
BorderThicknessProperty
The DependencyProperty for BorderThickness property.
Declaration
public static readonly DependencyProperty BorderThicknessProperty
Field Value
Type |
---|
Windows.UI.Xaml.DependencyProperty |
ConnectorHeightProperty
The DependencyProperty for ConnectorHeight property.
Declaration
public static readonly DependencyProperty ConnectorHeightProperty
Field Value
Type |
---|
Windows.UI.Xaml.DependencyProperty |
ConnectorRotationAngleProperty
The DependencyProperty for ConnectorRotationAngle property.
Declaration
public static readonly DependencyProperty ConnectorRotationAngleProperty
Field Value
Type |
---|
Windows.UI.Xaml.DependencyProperty |
FontFamilyProperty
The DependencyProperty for FontFamily property.
Declaration
public static readonly DependencyProperty FontFamilyProperty
Field Value
Type |
---|
Windows.UI.Xaml.DependencyProperty |
FontSizeProperty
The DependencyProperty for FontSize property.
Declaration
public static readonly DependencyProperty FontSizeProperty
Field Value
Type |
---|
Windows.UI.Xaml.DependencyProperty |
FontStyleProperty
The DependencyProperty for FontStyle property.
Declaration
public static readonly DependencyProperty FontStyleProperty
Field Value
Type |
---|
Windows.UI.Xaml.DependencyProperty |
ForegroundProperty
The DependencyProperty for Foreground property.
Declaration
public static readonly DependencyProperty ForegroundProperty
Field Value
Type |
---|
Windows.UI.Xaml.DependencyProperty |
MarginProperty
The DependencyProperty for Margin property.
Declaration
public static readonly DependencyProperty MarginProperty
Field Value
Type |
---|
Windows.UI.Xaml.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 |
---|---|
Windows.UI.Xaml.Media.Brush | The Windows.UI.Xaml.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 |
---|---|
Windows.UI.Xaml.Media.Brush | The Windows.UI.Xaml.Media.Brush value. |
BorderThickness
Gets or sets the outer border thickness of the adornment label.
Declaration
public Thickness BorderThickness { get; set; }
Property Value
Type |
---|
Windows.UI.Xaml.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 |
---|---|
Windows.UI.Xaml.Media.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 |
---|---|
Windows.UI.Text.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 |
---|---|
Windows.UI.Xaml.Media.Brush | The Windows.UI.Xaml.Media.Brush value. |
Margin
Gets or sets the outer margin of a label.
Declaration
public Thickness Margin { get; set; }
Property Value
Type |
---|
Windows.UI.Xaml.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 |
---|---|---|
Windows.Foundation.Size | size | Size of the panel |
Returns
Type | Description |
---|---|
Windows.UI.Xaml.UIElement | retuns UIElement |
Overrides
GetRenderedVisual()
Gets the UIElement used for rendering this segment.
Declaration
public override UIElement GetRenderedVisual()
Returns
Type | Description |
---|---|
Windows.UI.Xaml.UIElement | reurns UIElement |
Overrides
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 |
---|---|---|
Windows.Foundation.Size | size |
Overrides
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
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) |