Sha256: 4a1ffa97baf060eb7086d30e4a49228ae7c2eb82d7d895e55fd0068ca75b5dc9

Contents?: true

Size: 849 Bytes

Versions: 2

Compression:

Stored size: 849 Bytes

Contents

module OpenXml
  module Docx
    module Properties
      class TableBorder < ComplexProperty
        tag_is_one_of %i(top start bottom end insideH insideV left right)

        with_namespace :w do
          attribute :color, expects: :hex_color
          attribute :frame, expects: :true_or_false
          attribute :shadow, expects: :true_or_false
          attribute :space, expects: :positive_integer
          attribute :theme_color, expects: :valid_theme_color
          attribute :theme_shade, expects: :hex_digit
          attribute :theme_tint, expects: :hex_digit
          attribute :value, expects: :valid_type, displays_as: :val
          attribute :width, expects: :positive_integer, displays_as: :sz
        end

        def initialize(tag, value)
          super tag
          @value = value
        end

      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
openxml-docx-0.10.1 lib/openxml/docx/properties/table_border.rb
openxml-docx-0.10.0 lib/openxml/docx/properties/table_border.rb