Sha256: 4293a3cedab451142db0e9529ba0a9f1f949d098318437b6ef01455e2482bc5c

Contents?: true

Size: 1.28 KB

Versions: 7

Compression:

Stored size: 1.28 KB

Contents

module GroupDocs
  class Document::Field < 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 [Int] maxlength
    attr_accessor :maxlength
    # @attr [Boolean] mandatory
    attr_accessor :mandatory
    # @attr [String] fieldtype
    attr_accessor :fieldtype
    # @attr [Array] acceptableValues
    attr_accessor :acceptableValues

    # added in release 1.7.0

    # @attr [Int] selectionPosition
    attr_accessor :selectionPosition
    # @attr [Int] selectionLength
    attr_accessor :selectionLength
    # @attr [Boolean] isTableStartMarker
    attr_accessor :isTableStartMarker
    # @attr [Boolean] isTableEndMarker
    attr_accessor :isTableEndMarker
    # @attr [String] regionName
    attr_accessor :regionName




    #
    # Coverts 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

    # Human-readable accessors
    alias_accessor :rectangle, :rect

  end # Document::Field
end # GroupDocs

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
groupdocs-2.2.0 lib/groupdocs/document/field.rb
groupdocs-2.1.0 lib/groupdocs/document/field.rb
groupdocs-2.0.0 lib/groupdocs/document/field.rb
groupdocs-1.9.0 lib/groupdocs/document/field.rb
groupdocs-1.8.1 lib/groupdocs/document/field.rb
groupdocs-1.8.0 lib/groupdocs/document/field.rb
groupdocs-1.7.0 lib/groupdocs/document/field.rb