Class: OpenXml::Docx::Properties::Underline

Inherits:
ComplexProperty show all
Defined in:
lib/openxml/docx/properties/underline.rb

Constant Summary collapse

VALID_UNDERLINE_TYPES =
with_namespace :w do
  attribute :color, expects: :hex_color
  attribute :theme_color, expects: :valid_theme_color
  attribute :theme_shade, expects: :hex_digit
  attribute :theme_tint, expects: :hex_digit
  attribute :type, displays_as: :val, one_of: %i(dash dashDotDotHeavy
                                                dashDotHeavy dashedHeavy
                                                dashLong dashLongHeavy
                                                dotDash dotDotDash
                                                dotted dottedHeavy double
                                                none single thick wave
                                                wavyDouble wavyHeavy words)
end

Constants included from AttributeBuilder

AttributeBuilder::VALID_THEME_COLORS, AttributeBuilder::VALID_TYPES

Instance Attribute Summary

Attributes inherited from BaseProperty

#value

Method Summary

Methods inherited from ComplexProperty

#render?, #to_xml

Methods included from AttributeBuilder

#attributes, included, #render?

Methods inherited from BaseProperty

#default_name, #default_namespace, #default_tag, #initialize, name, #name, namespace, #namespace, #render?, tag, #tag, tag_is_one_of

Constructor Details

This class inherits a constructor from OpenXml::Docx::Properties::BaseProperty