# Cloud Monitoring Dashboards V1 API - Class Google::Cloud::Monitoring::Dashboard::V1::Text::TextStyle (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::TextStyle.

Properties that determine how the title and content are styled

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #background_color

    def background_color() -> ::String

**Returns**

- (::String) --- The background color as a hex string. "#RRGGBB" or "#RGB"

### #background_color=

    def background_color=(value) -> ::String

**Parameter**

- **value** (::String) --- The background color as a hex string. "#RRGGBB" or "#RGB"
**Returns**

- (::String) --- The background color as a hex string. "#RRGGBB" or "#RGB"

### #font_size

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

**Returns**

- ([::Google::Cloud::Monitoring::Dashboard::V1::Text::TextStyle::FontSize](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-monitoring-dashboard-v1/latest/Google-Cloud-Monitoring-Dashboard-V1-Text-TextStyle-FontSize)) --- Font sizes for both the title and content. The title will still be larger relative to the content.

### #font_size=

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

**Parameter**

- **value** ([::Google::Cloud::Monitoring::Dashboard::V1::Text::TextStyle::FontSize](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-monitoring-dashboard-v1/latest/Google-Cloud-Monitoring-Dashboard-V1-Text-TextStyle-FontSize)) --- Font sizes for both the title and content. The title will still be larger relative to the content.
**Returns**

- ([::Google::Cloud::Monitoring::Dashboard::V1::Text::TextStyle::FontSize](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-monitoring-dashboard-v1/latest/Google-Cloud-Monitoring-Dashboard-V1-Text-TextStyle-FontSize)) --- Font sizes for both the title and content. The title will still be larger relative to the content.

### #horizontal_alignment

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

**Returns**

- ([::Google::Cloud::Monitoring::Dashboard::V1::Text::TextStyle::HorizontalAlignment](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-monitoring-dashboard-v1/latest/Google-Cloud-Monitoring-Dashboard-V1-Text-TextStyle-HorizontalAlignment)) --- The horizontal alignment of both the title and content

### #horizontal_alignment=

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

**Parameter**

- **value** ([::Google::Cloud::Monitoring::Dashboard::V1::Text::TextStyle::HorizontalAlignment](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-monitoring-dashboard-v1/latest/Google-Cloud-Monitoring-Dashboard-V1-Text-TextStyle-HorizontalAlignment)) --- The horizontal alignment of both the title and content
**Returns**

- ([::Google::Cloud::Monitoring::Dashboard::V1::Text::TextStyle::HorizontalAlignment](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-monitoring-dashboard-v1/latest/Google-Cloud-Monitoring-Dashboard-V1-Text-TextStyle-HorizontalAlignment)) --- The horizontal alignment of both the title and content

### #padding

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

**Returns**

- ([::Google::Cloud::Monitoring::Dashboard::V1::Text::TextStyle::PaddingSize](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-monitoring-dashboard-v1/latest/Google-Cloud-Monitoring-Dashboard-V1-Text-TextStyle-PaddingSize)) --- The amount of padding around the widget

### #padding=

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

**Parameter**

- **value** ([::Google::Cloud::Monitoring::Dashboard::V1::Text::TextStyle::PaddingSize](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-monitoring-dashboard-v1/latest/Google-Cloud-Monitoring-Dashboard-V1-Text-TextStyle-PaddingSize)) --- The amount of padding around the widget
**Returns**

- ([::Google::Cloud::Monitoring::Dashboard::V1::Text::TextStyle::PaddingSize](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-monitoring-dashboard-v1/latest/Google-Cloud-Monitoring-Dashboard-V1-Text-TextStyle-PaddingSize)) --- The amount of padding around the widget

### #pointer_location

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

**Returns**

- ([::Google::Cloud::Monitoring::Dashboard::V1::Text::TextStyle::PointerLocation](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-monitoring-dashboard-v1/latest/Google-Cloud-Monitoring-Dashboard-V1-Text-TextStyle-PointerLocation)) --- The pointer location for this widget (also sometimes called a "tail")

### #pointer_location=

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

**Parameter**

- **value** ([::Google::Cloud::Monitoring::Dashboard::V1::Text::TextStyle::PointerLocation](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-monitoring-dashboard-v1/latest/Google-Cloud-Monitoring-Dashboard-V1-Text-TextStyle-PointerLocation)) --- The pointer location for this widget (also sometimes called a "tail")
**Returns**

- ([::Google::Cloud::Monitoring::Dashboard::V1::Text::TextStyle::PointerLocation](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-monitoring-dashboard-v1/latest/Google-Cloud-Monitoring-Dashboard-V1-Text-TextStyle-PointerLocation)) --- The pointer location for this widget (also sometimes called a "tail")

### #text_color

    def text_color() -> ::String

**Returns**

- (::String) --- The text color as a hex string. "#RRGGBB" or "#RGB"

### #text_color=

    def text_color=(value) -> ::String

**Parameter**

- **value** (::String) --- The text color as a hex string. "#RRGGBB" or "#RGB"
**Returns**

- (::String) --- The text color as a hex string. "#RRGGBB" or "#RGB"

### #vertical_alignment

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

**Returns**

- ([::Google::Cloud::Monitoring::Dashboard::V1::Text::TextStyle::VerticalAlignment](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-monitoring-dashboard-v1/latest/Google-Cloud-Monitoring-Dashboard-V1-Text-TextStyle-VerticalAlignment)) --- The vertical alignment of both the title and content

### #vertical_alignment=

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

**Parameter**

- **value** ([::Google::Cloud::Monitoring::Dashboard::V1::Text::TextStyle::VerticalAlignment](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-monitoring-dashboard-v1/latest/Google-Cloud-Monitoring-Dashboard-V1-Text-TextStyle-VerticalAlignment)) --- The vertical alignment of both the title and content
**Returns**

- ([::Google::Cloud::Monitoring::Dashboard::V1::Text::TextStyle::VerticalAlignment](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-monitoring-dashboard-v1/latest/Google-Cloud-Monitoring-Dashboard-V1-Text-TextStyle-VerticalAlignment)) --- The vertical alignment of both the title and content