Document AI V1 API - Class Google::Cloud::DocumentAI::V1::Document::Style (v0.12.0)

Reference documentation and code samples for the Document AI V1 API class Google::Cloud::DocumentAI::V1::Document::Style.

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_family

def font_family() -> ::String
Returns
  • (::String) — Font family such as Arial, Times New Roman. https://www.w3schools.com/cssref/pr_font_font-family.asp

#font_family=

def font_family=(value) -> ::String
Parameter
  • value (::String) — Font family such as Arial, Times New Roman. https://www.w3schools.com/cssref/pr_font_font-family.asp
Returns
  • (::String) — Font family such as Arial, Times New Roman. https://www.w3schools.com/cssref/pr_font_font-family.asp

#font_size

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

#font_size=

def font_size=(value) -> ::Google::Cloud::DocumentAI::V1::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::V1::Document::TextAnchor
Returns

#text_anchor=

def text_anchor=(value) -> ::Google::Cloud::DocumentAI::V1::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