Sha256: ee1ad489804b66ebfabad782b0be8e4cac118de2c1ebea968ed8cd08100508ff

Contents?: true

Size: 1.44 KB

Versions: 1

Compression:

Stored size: 1.44 KB

Contents

# added in release 1.7.0
module GroupDocs
  class Document::TemplateEditorFields < Api::Entity

    # @attr [Integer] page
    attr_accessor :page
    # @attr [String] name
    attr_accessor :name
    # @attr [String] type
    attr_accessor :type
    # @attr [GroupDocs::Document::Rectangle] rect
    attr_accessor :rect
    # @attr [String] fieldtype
    attr_accessor :fieldtype
    # @attr [Array] acceptableValues
    attr_accessor :acceptableValues
    # @attr [Int] selectionPosition
    attr_accessor :selectionPosition
    # @attr [Int] selectionLength
    attr_accessor :selectionLength
    # @attr [GroupDocs::Document::Style] style
    attr_accessor :style
    # @attr [Boolean] isTableMarker
    attr_accessor :isTableMarker

    #
    # Converts passed hash to GroupDocs::Document::Rectangle object.
    # @param [Hash] options
    #
    def rect=(rectangle)
      if rectangle.is_a?(Hash)
        rectangle = GroupDocs::Document::Rectangle.new(rectangle)
      end

      @rect = rectangle
    end
    #
    # Converts passed hash to GroupDocs::Document::TemplateEditorFieldStyle object.
    # @param [Hash] options
    #
    def style=(style)
      if style.is_a?(Hash)
        style = GroupDocs::Document::TemplateEditorFieldStyle.new(style)
      end

      @style = style
    end

    # Human-readable accessors
    alias_accessor :rectangle, :rect

  end # Document::TemplateEditorFields
end # GroupDocs

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
groupdocs-1.7.0 lib/groupdocs/document/editor.rb