Class TextWidget
A dashboard widget that displays MarkDown.
Implements
Inherited Members
Namespace: Amazon.CDK.AWS.CloudWatch
Assembly: Amazon.CDK.AWS.CloudWatch.dll
Syntax (csharp)
public class TextWidget : ConcreteWidget, IWidget
Syntax (vb)
Public Class TextWidget
Inherits ConcreteWidget
Implements IWidget
Remarks
ExampleMetadata: infused
Examples
Dashboard dashboard;
dashboard.AddWidgets(new TextWidget(new TextWidgetProps {
Markdown = "# Key Performance Indicators"
}));
Synopsis
Constructors
TextWidget(ITextWidgetProps) | |
TextWidget(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
TextWidget(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
Methods
Position(Double, Double) | Place the widget at a given position. |
ToJson() | Return the widget JSON for use in the dashboard. |
Constructors
TextWidget(ITextWidgetProps)
TextWidget(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected TextWidget(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
TextWidget(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected TextWidget(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
Methods
Position(Double, Double)
Place the widget at a given position.
public override void Position(double x, double y)
Parameters
- x System.Double
- y System.Double
Overrides
ToJson()
Return the widget JSON for use in the dashboard.
public override object[] ToJson()
Returns
System.Object[]