Sha256: 6cf2113b06461780b29628a8790ece3724ae474445aea859f652f792f5c9ec1b

Contents?: true

Size: 1.82 KB

Versions: 4

Compression:

Stored size: 1.82 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

    # changed in release 2.0.0
    # @attr [GroupDocs::Document::FieldOption] options
    attr_accessor :options

    # added in release 2.0.0
    # @attr [Int] tableNumber
    attr_accessor :tableNumber
    # @attr [Int] tableRow
    attr_accessor :tableRow
    # @attr [Int] tableColumn
    attr_accessor :tableColumn
    # @attr [Int] tableCell
    attr_accessor :tableCell

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

4 entries across 4 versions & 1 rubygems

Version Path
groupdocs-2.3.0 lib/groupdocs/document/editor.rb
groupdocs-2.2.0 lib/groupdocs/document/editor.rb
groupdocs-2.1.0 lib/groupdocs/document/editor.rb
groupdocs-2.0.0 lib/groupdocs/document/editor.rb