Class TextWidget
A dashboard widget that displays MarkDown.
Implements
Inherited Members
Namespace: Amazon.CDK.AWS.CloudWatch
Assembly: Amazon.CDK.Lib.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) | A dashboard widget that displays MarkDown. |
Methods
| Position(double, double) | Place the widget at a given position. |
| ToJson() | Return the widget JSON for use in the dashboard. |
Constructors
TextWidget(ITextWidgetProps)
A dashboard widget that displays MarkDown.
public TextWidget(ITextWidgetProps props)
Parameters
- props ITextWidgetProps
Remarks
ExampleMetadata: infused
Examples
Dashboard dashboard;
dashboard.AddWidgets(new TextWidget(new TextWidgetProps {
Markdown = "# Key Performance Indicators"
}));
Methods
Position(double, double)
Place the widget at a given position.
public override void Position(double x, double y)
Parameters
Overrides
Remarks
ExampleMetadata: infused
ToJson()
Return the widget JSON for use in the dashboard.
public override object[] ToJson()
Returns
object[]
Overrides
Remarks
ExampleMetadata: infused