Class: Google::Cloud::DocumentAI::V1beta3::Document::Style
- Inherits:
-
Object
- Object
- Google::Cloud::DocumentAI::V1beta3::Document::Style
- Extended by:
- Protobuf::MessageExts::ClassMethods
- Includes:
- Protobuf::MessageExts
- Defined in:
- proto_docs/google/cloud/documentai/v1beta3/document.rb
Overview
Annotation for common text style attributes. This adheres to CSS conventions as much as possible.
Defined Under Namespace
Classes: FontSize
Instance Attribute Summary collapse
-
#background_color ⇒ ::Google::Type::Color
Text background color.
-
#color ⇒ ::Google::Type::Color
Text color.
-
#font_size ⇒ ::Google::Cloud::DocumentAI::V1beta3::Document::Style::FontSize
Font size.
-
#font_weight ⇒ ::String
Font weight.
-
#text_anchor ⇒ ::Google::Cloud::DocumentAI::V1beta3::Document::TextAnchor
Text anchor indexing into the Document.text.
-
#text_decoration ⇒ ::String
Text decoration.
-
#text_style ⇒ ::String
Text style.
Instance Attribute Details
#background_color ⇒ ::Google::Type::Color
Returns Text background color.
132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 |
# File 'proto_docs/google/cloud/documentai/v1beta3/document.rb', line 132 class Style include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Font size with unit. # @!attribute [rw] size # @return [::Float] # Font size for the text. # @!attribute [rw] unit # @return [::String] # Unit for the font size. Follows CSS naming (in, px, pt, etc.). class FontSize include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end end |
#color ⇒ ::Google::Type::Color
Returns Text color.
132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 |
# File 'proto_docs/google/cloud/documentai/v1beta3/document.rb', line 132 class Style include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Font size with unit. # @!attribute [rw] size # @return [::Float] # Font size for the text. # @!attribute [rw] unit # @return [::String] # Unit for the font size. Follows CSS naming (in, px, pt, etc.). class FontSize include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end end |
#font_size ⇒ ::Google::Cloud::DocumentAI::V1beta3::Document::Style::FontSize
Returns Font size.
132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 |
# File 'proto_docs/google/cloud/documentai/v1beta3/document.rb', line 132 class Style include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Font size with unit. # @!attribute [rw] size # @return [::Float] # Font size for the text. # @!attribute [rw] unit # @return [::String] # Unit for the font size. Follows CSS naming (in, px, pt, etc.). class FontSize include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end end |
#font_weight ⇒ ::String
Returns Font weight. Possible values are normal, bold, bolder, and lighter. https://www.w3schools.com/cssref/pr_font_weight.asp.
132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 |
# File 'proto_docs/google/cloud/documentai/v1beta3/document.rb', line 132 class Style include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Font size with unit. # @!attribute [rw] size # @return [::Float] # Font size for the text. # @!attribute [rw] unit # @return [::String] # Unit for the font size. Follows CSS naming (in, px, pt, etc.). class FontSize include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end end |
#text_anchor ⇒ ::Google::Cloud::DocumentAI::V1beta3::Document::TextAnchor
Returns Text anchor indexing into the Document.text.
132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 |
# File 'proto_docs/google/cloud/documentai/v1beta3/document.rb', line 132 class Style include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Font size with unit. # @!attribute [rw] size # @return [::Float] # Font size for the text. # @!attribute [rw] unit # @return [::String] # Unit for the font size. Follows CSS naming (in, px, pt, etc.). class FontSize include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end end |
#text_decoration ⇒ ::String
Returns Text decoration. Follows CSS standard.
132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 |
# File 'proto_docs/google/cloud/documentai/v1beta3/document.rb', line 132 class Style include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Font size with unit. # @!attribute [rw] size # @return [::Float] # Font size for the text. # @!attribute [rw] unit # @return [::String] # Unit for the font size. Follows CSS naming (in, px, pt, etc.). class FontSize include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end end |
#text_style ⇒ ::String
Returns Text style. Possible values are normal, italic, and oblique. https://www.w3schools.com/cssref/pr_font_font-style.asp.
132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 |
# File 'proto_docs/google/cloud/documentai/v1beta3/document.rb', line 132 class Style include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Font size with unit. # @!attribute [rw] size # @return [::Float] # Font size for the text. # @!attribute [rw] unit # @return [::String] # Unit for the font size. Follows CSS naming (in, px, pt, etc.). class FontSize include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end end |