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
- (::Google::Type::Color) — Text background color.
#background_color=
def background_color=(value) -> ::Google::Type::Color
Parameter
- value (::Google::Type::Color) — Text background color.
Returns
- (::Google::Type::Color) — Text background color.
#color
def color() -> ::Google::Type::Color
Returns
- (::Google::Type::Color) — Text color.
#color=
def color=(value) -> ::Google::Type::Color
Parameter
- value (::Google::Type::Color) — Text color.
Returns
- (::Google::Type::Color) — Text color.
#font_size
def font_size() -> ::Google::Cloud::DocumentAI::V1beta3::Document::Style::FontSize
Returns
#font_size=
def font_size=(value) -> ::Google::Cloud::DocumentAI::V1beta3::Document::Style::FontSize
Parameter
- value (::Google::Cloud::DocumentAI::V1beta3::Document::Style::FontSize) — Font size.
Returns
#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
- (::Google::Cloud::DocumentAI::V1beta3::Document::TextAnchor) — Text anchor indexing into the Document.text.
#text_anchor=
def text_anchor=(value) -> ::Google::Cloud::DocumentAI::V1beta3::Document::TextAnchor
Parameter
- value (::Google::Cloud::DocumentAI::V1beta3::Document::TextAnchor) — Text anchor indexing into the Document.text.
Returns
- (::Google::Cloud::DocumentAI::V1beta3::Document::TextAnchor) — Text anchor indexing into the Document.text.
#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