Reference documentation and code samples for the Document AI V1beta3 API class Google::Cloud::DocumentAI::V1beta3::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
- (::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_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::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
, andlighter
.
#font_weight=
def font_weight=(value) -> ::String
Parameter
-
value (::String) — Font weight.
Possible values are
normal
,bold
,bolder
, andlighter
.
Returns
-
(::String) — Font weight.
Possible values are
normal
,bold
,bolder
, andlighter
.
#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
, andoblique
.
#text_style=
def text_style=(value) -> ::String
Parameter
-
value (::String) — Text style.
Possible values are
normal
,italic
, andoblique
.
Returns
-
(::String) — Text style.
Possible values are
normal
,italic
, andoblique
.