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

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.

#font_weight=

def font_weight=(value) -> ::String
Parameter
  • value (::String) — Font weight. Possible values are normal, bold, bolder, and lighter.
Returns
  • (::String) — Font weight. Possible values are normal, bold, bolder, and lighter.

#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

#text_decoration=

def text_decoration=(value) -> ::String
Parameter
Returns

#text_style

def text_style() -> ::String
Returns
  • (::String) — Text style. Possible values are normal, italic, and oblique.

#text_style=

def text_style=(value) -> ::String
Parameter
  • value (::String) — Text style. Possible values are normal, italic, and oblique.
Returns
  • (::String) — Text style. Possible values are normal, italic, and oblique.