Interface IHorizontalAnnotation
Horizontal annotation to be added to a graph.
Namespace: Amazon.CDK.AWS.CloudWatch
Assembly: Amazon.CDK.AWS.CloudWatch.dll
Syntax (csharp)
public interface IHorizontalAnnotation
Syntax (vb)
Public Interface IHorizontalAnnotation
Remarks
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.CloudWatch;
var horizontalAnnotation = new HorizontalAnnotation {
Value = 123,
// the properties below are optional
Color = "color",
Fill = Shading.NONE,
Label = "label",
Visible = false
};
Synopsis
Properties
Color | The hex color code, prefixed with '#' (e.g. '#00ff00'), to be used for the annotation. The |
Fill | Add shading above or below the annotation. |
Label | Label for the annotation. |
Value | The value of the annotation. |
Visible | Whether the annotation is visible. |
Properties
Color
The hex color code, prefixed with '#' (e.g. '#00ff00'), to be used for the annotation. The Color
class has a set of standard colors that can be used here.
virtual string Color { get; }
Property Value
System.String
Remarks
Default: - Automatic color
Fill
Add shading above or below the annotation.
virtual Nullable<Shading> Fill { get; }
Property Value
System.Nullable<Shading>
Remarks
Default: No shading
Label
Label for the annotation.
virtual string Label { get; }
Property Value
System.String
Remarks
Default: - No label
Value
The value of the annotation.
double Value { get; }
Property Value
System.Double
Visible
Whether the annotation is visible.
virtual Nullable<bool> Visible { get; }
Property Value
System.Nullable<System.Boolean>
Remarks
Default: true