Class ShapeAnnotation
Inheritance
Inherited Members
Namespace: Com.Syncfusion.Charts
Assembly: Syncfusion.SfChart.Android.dll
Syntax
public abstract class ShapeAnnotation : ChartAnnotation
Constructors
ShapeAnnotation()
Declaration
public ShapeAnnotation()
Properties
FillColor
Gets or sets the Color that indicates color of the annotation.
Declaration
public Color FillColor { get; set; }
Property Value
Type | Description |
---|---|
Android.Graphics.Color | The color of the fill. |
LabelStyle
Gets the customized style for the annotation text using ChartAnnotationLabelStyle.
Declaration
public ChartAnnotationLabelStyle LabelStyle { get; }
Property Value
Type | Description |
---|---|
ChartAnnotationLabelStyle | The label style. |
StrokeColor
Gets or sets the Color that indicates stroke color of the annotation.
Declaration
public Color StrokeColor { get; set; }
Property Value
Type | Description |
---|---|
Android.Graphics.Color | The stroke. |
StrokeDashArray
Gets or sets the NSArray that represents dashes for annotation stroke.
Declaration
public PathEffect StrokeDashArray { get; set; }
Property Value
Type | Description |
---|---|
Android.Graphics.PathEffect | The stroke dash array. |
StrokeWidth
Gets or sets the float value that represents stroke width of the annotation.
Declaration
public float StrokeWidth { get; set; }
Property Value
Type | Description |
---|---|
System.Single | The width of the stroke. |
Text
Gets or sets the string value that represents text to be displayed on the annotation.
Declaration
public string Text { get; set; }
Property Value
Type | Description |
---|---|
System.String | The annotation text. |
X2
Gets or sets the date time or double that represents x2 position of annotation.
Declaration
public object X2 { get; set; }
Property Value
Type | Description |
---|---|
System.Object | The x2. |
Y2
Gets or sets the double that represents y2 position of annotation.
Declaration
public double Y2 { get; set; }
Property Value
Type | Description |
---|---|
System.Double | The y2. |
Methods
Draw(Canvas)
Method used to draw annotation in chart area.
Declaration
protected override void Draw(Canvas context)
Parameters
Type | Name | Description |
---|---|---|
Android.Graphics.Canvas | context | The context. |
Overrides
DrawLabel(Canvas, String, Double, Double)
Draws the annotation label.
Declaration
protected virtual void DrawLabel(Canvas context, string label, double pointX, double pointY)
Parameters
Type | Name | Description |
---|---|---|
Android.Graphics.Canvas | context | The context. |
System.String | label | The label. |
System.Double | pointX | The x coordinate. |
System.Double | pointY | The y coordinate. |
DrawLabelBackground(Canvas, RectangleF)
Draws the annotation label background.
Declaration
protected virtual void DrawLabelBackground(Canvas context, RectangleF rect)
Parameters
Type | Name | Description |
---|---|---|
Android.Graphics.Canvas | context | The context. |
System.Drawing.RectangleF | rect | The rectangle. |