Class ShapeAnnotation
ShapeAnnotation allows you to add annotations in the form of shapes such as rectangle, ellipse,horizontal line and vertical line at the specific area of interest, in the chart area.
Inheritance
Inherited Members
Namespace: Syncfusion.SfChart.XForms
Assembly: Syncfusion.SfChart.XForms.dll
Syntax
public abstract class ShapeAnnotation : ChartAnnotation, IThemeElement
Constructors
ShapeAnnotation()
Initializes a new instance of the ShapeAnnotation class.
Declaration
public ShapeAnnotation()
Fields
FillColorProperty
Gets or sets the Color that indicates color of the annotation. This is a bindable property.
Declaration
public static readonly BindableProperty FillColorProperty
Field Value
Type |
---|
Xamarin.Forms.BindableProperty |
LabelStyleProperty
Gets the customized style for the annotation text by using the ChartAnnotationLabelStyle. This is a bindable property.
Declaration
public static readonly BindableProperty LabelStyleProperty
Field Value
Type |
---|
Xamarin.Forms.BindableProperty |
StrokeColorProperty
Gets or sets the Color that indicates stroke color of the annotation. This is a bindable property.
Declaration
public static readonly BindableProperty StrokeColorProperty
Field Value
Type |
---|
Xamarin.Forms.BindableProperty |
StrokeDashArrayProperty
Gets or sets the double array that represents dashes for annotation stroke. This is a bindable property.
Declaration
public static readonly BindableProperty StrokeDashArrayProperty
Field Value
Type |
---|
Xamarin.Forms.BindableProperty |
StrokeWidthProperty
Gets or sets the float value that represents stroke width of the annotation. This is a bindable property.
Declaration
public static readonly BindableProperty StrokeWidthProperty
Field Value
Type |
---|
Xamarin.Forms.BindableProperty |
TextProperty
Gets or sets the string value that represents text to be displayed on the annotation. This is a bindable property.
Declaration
public static readonly BindableProperty TextProperty
Field Value
Type |
---|
Xamarin.Forms.BindableProperty |
X2Property
Gets or sets the Date time or double that represents x2 position of annotation.
Declaration
public static readonly BindableProperty X2Property
Field Value
Type |
---|
Xamarin.Forms.BindableProperty |
Y2Property
Gets or sets the double that represents y2 position of annotation.
Declaration
public static readonly BindableProperty Y2Property
Field Value
Type |
---|
Xamarin.Forms.BindableProperty |
Properties
FillColor
Gets or sets the Color that indicates color of the annotation. This is a bindable property.
Declaration
public Color FillColor { get; set; }
Property Value
Type | Description |
---|---|
Xamarin.Forms.Color | This property takes the Color value. |
LabelStyle
Gets or sets the customized style for the annotation text by using the ChartAnnotationLabelStyle. This is a bindable property.
Declaration
public ChartAnnotationLabelStyle LabelStyle { get; set; }
Property Value
Type | Description |
---|---|
ChartAnnotationLabelStyle | This property takes the ChartAnnotationLabelStyle as its value. |
StrokeColor
Gets or sets the Color that indicates stroke color of the annotation. This is a bindable property.
Declaration
public Color StrokeColor { get; set; }
Property Value
Type | Description |
---|---|
Xamarin.Forms.Color | This property takes the Color value. |
StrokeDashArray
Gets or sets the double array that represents dashes for annotation stroke. This is a bindable property.
Declaration
public double[] StrokeDashArray { get; set; }
Property Value
Type | Description |
---|---|
System.Double[] | This property takes the double array as its value. |
StrokeWidth
Gets or sets the float value that represents stroke width of the annotation. This is a bindable property.
Declaration
public float StrokeWidth { get; set; }
Property Value
Type | Description |
---|---|
System.Single | This property takes the float value. |
Text
Gets or sets the string value that represents text to be displayed on the annotation. This is a bindable property.
Declaration
public string Text { get; set; }
Property Value
Type | Description |
---|---|
System.String | This property takes the string value. |
X2
Gets or sets the Datetime or double that represents x2 position of annotation.
Declaration
public object X2 { get; set; }
Property Value
Type | Description |
---|---|
System.Object | This property takes the object value. |
Y2
Gets or sets the double that represents y2 position of annotation.
Declaration
public double Y2 { get; set; }
Property Value
Type | Description |
---|---|
System.Double | This property takes the double value. |
Methods
OnBindingContextChanged()
Override this method to execute an action when the BindingContext changes.
Declaration
protected override void OnBindingContextChanged()
OnParentSet()
Declaration
protected override void OnParentSet()