Show / Hide Table of Contents

Class Spacer

A widget that doesn't display anything but takes up space.

Inheritance
object
Spacer
Implements
IWidget
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?)

A widget that doesn't display anything but takes up space.

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?)

A widget that doesn't display anything but takes up space.

public Spacer(ISpacerProps? props = null)
Parameters
props ISpacerProps
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
            });

Properties

Height

The amount of vertical grid units the widget will take up.

public virtual double Height { get; }
Property Value

double

Remarks

ExampleMetadata: fixture=_generated

Width

The amount of horizontal grid units the widget will take up.

public virtual double Width { get; }
Property Value

double

Remarks

ExampleMetadata: fixture=_generated

Methods

Position(double, double)

Place the widget at a given position.

public virtual void Position(double x, double y)
Parameters
x double
y double
Remarks

ExampleMetadata: fixture=_generated

ToJson()

Return the widget JSON for use in the dashboard.

public virtual object[] ToJson()
Returns

object[]

Remarks

ExampleMetadata: fixture=_generated

Implements

IWidget
Back to top Generated by DocFX