Class Spacer
A widget that doesn't display anything but takes up space.
Inheritance
Implements
Namespace: Amazon.CDK.AWS.CloudWatch
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class Spacer : DeputyBase, IWidget
Syntax (vb)
Public Class Spacer
Inherits DeputyBase
Implements IWidget
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 spacer = new Spacer(new SpacerProps {
Height = 123,
Width = 123
});
Synopsis
Constructors
Spacer(ISpacerProps) | |
Spacer(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
Spacer(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
Properties
Height | The amount of vertical grid units the widget will take up. |
Width | The amount of horizontal grid units the widget will take up. |
Methods
Position(Double, Double) | Place the widget at a given position. |
ToJson() | Return the widget JSON for use in the dashboard. |
Constructors
Spacer(ISpacerProps)
Spacer(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected Spacer(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
Spacer(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected Spacer(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
Properties
Height
The amount of vertical grid units the widget will take up.
public virtual double Height { get; }
Property Value
System.Double
Width
The amount of horizontal grid units the widget will take up.
public virtual double Width { get; }
Property Value
System.Double
Methods
Position(Double, Double)
Place the widget at a given position.
public virtual void Position(double x, double y)
Parameters
- x System.Double
- y System.Double
ToJson()
Return the widget JSON for use in the dashboard.
public virtual object[] ToJson()
Returns
System.Object[]