Class Google::Cloud::DocumentAI::V1beta3::Document::Style (v0.9.4)

Annotation for common text style attributes. This adheres to CSS conventions as much as possible.

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#background_color

def background_color() -> ::Google::Type::Color
Returns

#background_color=

def background_color=(value) -> ::Google::Type::Color
Parameter
Returns

#color

def color() -> ::Google::Type::Color
Returns

#color=

def color=(value) -> ::Google::Type::Color
Parameter
Returns

#font_size

def font_size() -> ::Google::Cloud::DocumentAI::V1beta3::Document::Style::FontSize

#font_size=

def font_size=(value) -> ::Google::Cloud::DocumentAI::V1beta3::Document::Style::FontSize

#font_weight

def font_weight() -> ::String
Returns
  • (::String) — Font weight. Possible values are normal, bold, bolder, and lighter. https://www.w3schools.com/cssref/pr_font_weight.asp

#font_weight=

def font_weight=(value) -> ::String
Parameter
  • value (::String) — Font weight. Possible values are normal, bold, bolder, and lighter. https://www.w3schools.com/cssref/pr_font_weight.asp
Returns
  • (::String) — Font weight. Possible values are normal, bold, bolder, and lighter. https://www.w3schools.com/cssref/pr_font_weight.asp

#text_anchor

def text_anchor() -> ::Google::Cloud::DocumentAI::V1beta3::Document::TextAnchor
Returns

#text_anchor=

def text_anchor=(value) -> ::Google::Cloud::DocumentAI::V1beta3::Document::TextAnchor
Parameter
Returns

#text_decoration

def text_decoration() -> ::String
Returns
  • (::String) — Text decoration. Follows CSS standard.

#text_decoration=

def text_decoration=(value) -> ::String
Parameter
  • value (::String) — Text decoration. Follows CSS standard.
Returns
  • (::String) — Text decoration. Follows CSS standard.

#text_style

def text_style() -> ::String
Returns
  • (::String) — Text style. Possible values are normal, italic, and oblique. https://www.w3schools.com/cssref/pr_font_font-style.asp

#text_style=

def text_style=(value) -> ::String
Parameter
  • value (::String) — Text style. Possible values are normal, italic, and oblique. https://www.w3schools.com/cssref/pr_font_font-style.asp
Returns
  • (::String) — Text style. Possible values are normal, italic, and oblique. https://www.w3schools.com/cssref/pr_font_font-style.asp