Sha256: 3fc11d0751dc3841ed0ad298563a399723820617afe09b127e26d91a35dbba57

Contents?: true

Size: 1.5 KB

Versions: 3

Compression:

Stored size: 1.5 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
    # @attr [Array] options
    attr_accessor :options

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

3 entries across 3 versions & 1 rubygems

Version Path
groupdocs-1.9.0 lib/groupdocs/document/editor.rb
groupdocs-1.8.1 lib/groupdocs/document/editor.rb
groupdocs-1.8.0 lib/groupdocs/document/editor.rb