Sha256: 5ec320c76a53947a67d204ada6716e90711b19c5c21f752dbdc57279621adccb

Contents?: true

Size: 708 Bytes

Versions: 3

Compression:

Stored size: 708 Bytes

Contents

module OpenXml
  module Docx
    module Properties
      class Border < ComplexProperty
        attr_reader :tag

        attribute :color, expects: :hex_color
        attribute :frame, expects: :true_or_false
        attribute :shadow, expects: :true_or_false
        attribute :size, expects: :positive_integer, displays_as: :sz
        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 :type, expects: :valid_type, displays_as: :val

        def initialize(tag=:bdr)
          @tag = tag
        end

      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
openxml-docx-0.9.0 lib/openxml/docx/properties/border.rb
openxml-docx-0.8.0 lib/openxml/docx/properties/border.rb
openxml-docx-0.8.0.beta1 lib/openxml/docx/properties/border.rb