# Cloud Monitoring Dashboards V1 API - Class Google::Cloud::Monitoring::Dashboard::V1::Text (v1.7.0)

1.7.0 (latest) 1.6.0 1.5.0 1.4.1 1.3.0 1.2.1 1.1.0 1.0.1 0.16.0 0.15.0 0.14.2 0.13.0 0.12.1 0.11.0 0.10.0 0.9.1 0.8.0 0.7.0 0.6.6 Reference documentation and code samples for the Cloud Monitoring Dashboards V1 API class Google::Cloud::Monitoring::Dashboard::V1::Text.

A widget that displays textual content.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #content

    def content() -> ::String

**Returns**

- (::String) --- The text content to be displayed.

### #content=

    def content=(value) -> ::String

**Parameter**

- **value** (::String) --- The text content to be displayed.
**Returns**

- (::String) --- The text content to be displayed.

### #format

    def format() -> ::Google::Cloud::Monitoring::Dashboard::V1::Text::Format

**Returns**

- ([::Google::Cloud::Monitoring::Dashboard::V1::Text::Format](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-monitoring-dashboard-v1/latest/Google-Cloud-Monitoring-Dashboard-V1-Text-Format)) --- How the text content is formatted.

### #format=

    def format=(value) -> ::Google::Cloud::Monitoring::Dashboard::V1::Text::Format

**Parameter**

- **value** ([::Google::Cloud::Monitoring::Dashboard::V1::Text::Format](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-monitoring-dashboard-v1/latest/Google-Cloud-Monitoring-Dashboard-V1-Text-Format)) --- How the text content is formatted.
**Returns**

- ([::Google::Cloud::Monitoring::Dashboard::V1::Text::Format](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-monitoring-dashboard-v1/latest/Google-Cloud-Monitoring-Dashboard-V1-Text-Format)) --- How the text content is formatted.

### #style

    def style() -> ::Google::Cloud::Monitoring::Dashboard::V1::Text::TextStyle

**Returns**

- ([::Google::Cloud::Monitoring::Dashboard::V1::Text::TextStyle](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-monitoring-dashboard-v1/latest/Google-Cloud-Monitoring-Dashboard-V1-Text-TextStyle)) --- How the text is styled

### #style=

    def style=(value) -> ::Google::Cloud::Monitoring::Dashboard::V1::Text::TextStyle

**Parameter**

- **value** ([::Google::Cloud::Monitoring::Dashboard::V1::Text::TextStyle](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-monitoring-dashboard-v1/latest/Google-Cloud-Monitoring-Dashboard-V1-Text-TextStyle)) --- How the text is styled
**Returns**

- ([::Google::Cloud::Monitoring::Dashboard::V1::Text::TextStyle](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-monitoring-dashboard-v1/latest/Google-Cloud-Monitoring-Dashboard-V1-Text-TextStyle)) --- How the text is styled