Class: AsposeCellsCloud::Form

Inherits:
Object
  • Object
show all
Defined in:
lib/aspose_cells_cloud/models/form.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(attributes = {}) ⇒ Form

Initializes the object

Parameters:

  • attributes (Hash) (defaults to: {})

    Model attributes in the form of hash



269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
# File 'lib/aspose_cells_cloud/models/form.rb', line 269

def initialize(attributes = {})
  return unless attributes.is_a?(Hash)

  # convert string to symbol for hash key
  attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}

  if attributes.has_key?(:'FormType')
      self.form_type = attributes[:'FormType']
  end
  if attributes.has_key?(:'CheckedValue')
      self.checked_value = attributes[:'CheckedValue']
  end
  if attributes.has_key?(:'Shadow')
      self.shadow = attributes[:'Shadow']
  end
  if attributes.has_key?(:'InputRange')
      self.input_range = attributes[:'InputRange']
  end
  if attributes.has_key?(:'SelectedIndex')
      self.selected_index = attributes[:'SelectedIndex']
  end
  if attributes.has_key?(:'SelectedValue')
      self.selected_value = attributes[:'SelectedValue']
  end
  if attributes.has_key?(:'SelectedCell')
      self.selected_cell = attributes[:'SelectedCell']
  end
  if attributes.has_key?(:'DropDownLines')
      self.drop_down_lines = attributes[:'DropDownLines']
  end
  if attributes.has_key?(:'ItemCount')
      self.item_count = attributes[:'ItemCount']
  end
  if attributes.has_key?(:'SelectedCells')
      self.selected_cells = attributes[:'SelectedCells']
  end
  if attributes.has_key?(:'SelectionType')
      self.selection_type = attributes[:'SelectionType']
  end
  if attributes.has_key?(:'IsChecked')
      self.is_checked = attributes[:'IsChecked']
  end
  if attributes.has_key?(:'CurrentValue')
      self.current_value = attributes[:'CurrentValue']
  end
  if attributes.has_key?(:'Min')
      self.min = attributes[:'Min']
  end
  if attributes.has_key?(:'Max')
      self.max = attributes[:'Max']
  end
  if attributes.has_key?(:'IncrementalChange')
      self.incremental_change = attributes[:'IncrementalChange']
  end
  if attributes.has_key?(:'PageChange')
      self.page_change = attributes[:'PageChange']
  end
  if attributes.has_key?(:'IsHorizontal')
      self.is_horizontal = attributes[:'IsHorizontal']
  end
  if attributes.has_key?(:'Name')
      self.name = attributes[:'Name']
  end
  if attributes.has_key?(:'MsoDrawingType')
      self.mso_drawing_type = attributes[:'MsoDrawingType']
  end
  if attributes.has_key?(:'AutoShapeType')
      self.auto_shape_type = attributes[:'AutoShapeType']
  end
  if attributes.has_key?(:'Placement')
      self.placement = attributes[:'Placement']
  end
  if attributes.has_key?(:'UpperLeftRow')
      self.upper_left_row = attributes[:'UpperLeftRow']
  end
  if attributes.has_key?(:'Top')
      self.top = attributes[:'Top']
  end
  if attributes.has_key?(:'UpperLeftColumn')
      self.upper_left_column = attributes[:'UpperLeftColumn']
  end
  if attributes.has_key?(:'Left')
      self.left = attributes[:'Left']
  end
  if attributes.has_key?(:'LowerRightRow')
      self.lower_right_row = attributes[:'LowerRightRow']
  end
  if attributes.has_key?(:'Bottom')
      self.bottom = attributes[:'Bottom']
  end
  if attributes.has_key?(:'LowerRightColumn')
      self.lower_right_column = attributes[:'LowerRightColumn']
  end
  if attributes.has_key?(:'Right')
      self.right = attributes[:'Right']
  end
  if attributes.has_key?(:'Width')
      self.width = attributes[:'Width']
  end
  if attributes.has_key?(:'Height')
      self.height = attributes[:'Height']
  end
  if attributes.has_key?(:'X')
      self.x = attributes[:'X']
  end
  if attributes.has_key?(:'Y')
      self.y = attributes[:'Y']
  end
  if attributes.has_key?(:'RotationAngle')
      self.rotation_angle = attributes[:'RotationAngle']
  end
  if attributes.has_key?(:'HtmlText')
      self.html_text = attributes[:'HtmlText']
  end
  if attributes.has_key?(:'Text')
      self.text = attributes[:'Text']
  end
  if attributes.has_key?(:'AlternativeText')
      self.alternative_text = attributes[:'AlternativeText']
  end
  if attributes.has_key?(:'TextHorizontalAlignment')
      self.text_horizontal_alignment = attributes[:'TextHorizontalAlignment']
  end
  if attributes.has_key?(:'TextHorizontalOverflow')
      self.text_horizontal_overflow = attributes[:'TextHorizontalOverflow']
  end
  if attributes.has_key?(:'TextOrientationType')
      self.text_orientation_type = attributes[:'TextOrientationType']
  end
  if attributes.has_key?(:'TextVerticalAlignment')
      self.text_vertical_alignment = attributes[:'TextVerticalAlignment']
  end
  if attributes.has_key?(:'TextVerticalOverflow')
      self.text_vertical_overflow = attributes[:'TextVerticalOverflow']
  end
  if attributes.has_key?(:'IsGroup')
      self.is_group = attributes[:'IsGroup']
  end
  if attributes.has_key?(:'IsHidden')
      self.is_hidden = attributes[:'IsHidden']
  end
  if attributes.has_key?(:'IsLockAspectRatio')
      self.is_lock_aspect_ratio = attributes[:'IsLockAspectRatio']
  end
  if attributes.has_key?(:'IsLocked')
      self.is_locked = attributes[:'IsLocked']
  end
  if attributes.has_key?(:'IsPrintable')
      self.is_printable = attributes[:'IsPrintable']
  end
  if attributes.has_key?(:'IsTextWrapped')
      self.is_text_wrapped = attributes[:'IsTextWrapped']
  end
  if attributes.has_key?(:'IsWordArt')
      self.is_word_art = attributes[:'IsWordArt']
  end
  if attributes.has_key?(:'LinkedCell')
      self.linked_cell = attributes[:'LinkedCell']
  end
  if attributes.has_key?(:'ZOrderPosition')
      self.z_order_position = attributes[:'ZOrderPosition']
  end
  if attributes.has_key?(:'Font')
      self.font = attributes[:'Font']
  end
  if attributes.has_key?(:'Hyperlink')
      self.hyperlink = attributes[:'Hyperlink']
  end
  if attributes.has_key?(:'link')
      self.link = attributes[:'link']
  end

end

Instance Attribute Details

#alternative_textObject

Returns the value of attribute alternative_text.



109
110
111
# File 'lib/aspose_cells_cloud/models/form.rb', line 109

def alternative_text
  @alternative_text
end

#auto_shape_typeObject

Returns the value of attribute auto_shape_type.



75
76
77
# File 'lib/aspose_cells_cloud/models/form.rb', line 75

def auto_shape_type
  @auto_shape_type
end

#bottomObject

Returns the value of attribute bottom.



89
90
91
# File 'lib/aspose_cells_cloud/models/form.rb', line 89

def bottom
  @bottom
end

#checked_valueObject

Returns the value of attribute checked_value.



37
38
39
# File 'lib/aspose_cells_cloud/models/form.rb', line 37

def checked_value
  @checked_value
end

#current_valueObject

Returns the value of attribute current_value.



59
60
61
# File 'lib/aspose_cells_cloud/models/form.rb', line 59

def current_value
  @current_value
end

Returns the value of attribute drop_down_lines.



49
50
51
# File 'lib/aspose_cells_cloud/models/form.rb', line 49

def drop_down_lines
  @drop_down_lines
end

#fontObject

Returns the value of attribute font.



139
140
141
# File 'lib/aspose_cells_cloud/models/form.rb', line 139

def font
  @font
end

#form_typeObject

Returns the value of attribute form_type.



35
36
37
# File 'lib/aspose_cells_cloud/models/form.rb', line 35

def form_type
  @form_type
end

#heightObject

Returns the value of attribute height.



97
98
99
# File 'lib/aspose_cells_cloud/models/form.rb', line 97

def height
  @height
end

#html_textObject

Returns the value of attribute html_text.



105
106
107
# File 'lib/aspose_cells_cloud/models/form.rb', line 105

def html_text
  @html_text
end

Returns the value of attribute hyperlink.



141
142
143
# File 'lib/aspose_cells_cloud/models/form.rb', line 141

def hyperlink
  @hyperlink
end

#incremental_changeObject

Returns the value of attribute incremental_change.



65
66
67
# File 'lib/aspose_cells_cloud/models/form.rb', line 65

def incremental_change
  @incremental_change
end

#input_rangeObject

Returns the value of attribute input_range.



41
42
43
# File 'lib/aspose_cells_cloud/models/form.rb', line 41

def input_range
  @input_range
end

#is_checkedObject

Returns the value of attribute is_checked.



57
58
59
# File 'lib/aspose_cells_cloud/models/form.rb', line 57

def is_checked
  @is_checked
end

#is_groupObject

Returns the value of attribute is_group.



121
122
123
# File 'lib/aspose_cells_cloud/models/form.rb', line 121

def is_group
  @is_group
end

#is_hiddenObject

Returns the value of attribute is_hidden.



123
124
125
# File 'lib/aspose_cells_cloud/models/form.rb', line 123

def is_hidden
  @is_hidden
end

#is_horizontalObject

Returns the value of attribute is_horizontal.



69
70
71
# File 'lib/aspose_cells_cloud/models/form.rb', line 69

def is_horizontal
  @is_horizontal
end

#is_lock_aspect_ratioObject

Returns the value of attribute is_lock_aspect_ratio.



125
126
127
# File 'lib/aspose_cells_cloud/models/form.rb', line 125

def is_lock_aspect_ratio
  @is_lock_aspect_ratio
end

#is_lockedObject

Returns the value of attribute is_locked.



127
128
129
# File 'lib/aspose_cells_cloud/models/form.rb', line 127

def is_locked
  @is_locked
end

#is_printableObject

Returns the value of attribute is_printable.



129
130
131
# File 'lib/aspose_cells_cloud/models/form.rb', line 129

def is_printable
  @is_printable
end

#is_text_wrappedObject

Returns the value of attribute is_text_wrapped.



131
132
133
# File 'lib/aspose_cells_cloud/models/form.rb', line 131

def is_text_wrapped
  @is_text_wrapped
end

#is_word_artObject

Returns the value of attribute is_word_art.



133
134
135
# File 'lib/aspose_cells_cloud/models/form.rb', line 133

def is_word_art
  @is_word_art
end

#item_countObject

Returns the value of attribute item_count.



51
52
53
# File 'lib/aspose_cells_cloud/models/form.rb', line 51

def item_count
  @item_count
end

#leftObject

Returns the value of attribute left.



85
86
87
# File 'lib/aspose_cells_cloud/models/form.rb', line 85

def left
  @left
end

Returns the value of attribute link.



143
144
145
# File 'lib/aspose_cells_cloud/models/form.rb', line 143

def link
  @link
end

#linked_cellObject

Returns the value of attribute linked_cell.



135
136
137
# File 'lib/aspose_cells_cloud/models/form.rb', line 135

def linked_cell
  @linked_cell
end

#lower_right_columnObject

Returns the value of attribute lower_right_column.



91
92
93
# File 'lib/aspose_cells_cloud/models/form.rb', line 91

def lower_right_column
  @lower_right_column
end

#lower_right_rowObject

Returns the value of attribute lower_right_row.



87
88
89
# File 'lib/aspose_cells_cloud/models/form.rb', line 87

def lower_right_row
  @lower_right_row
end

#maxObject

Returns the value of attribute max.



63
64
65
# File 'lib/aspose_cells_cloud/models/form.rb', line 63

def max
  @max
end

#minObject

Returns the value of attribute min.



61
62
63
# File 'lib/aspose_cells_cloud/models/form.rb', line 61

def min
  @min
end

#mso_drawing_typeObject

Returns the value of attribute mso_drawing_type.



73
74
75
# File 'lib/aspose_cells_cloud/models/form.rb', line 73

def mso_drawing_type
  @mso_drawing_type
end

#nameObject

Returns the value of attribute name.



71
72
73
# File 'lib/aspose_cells_cloud/models/form.rb', line 71

def name
  @name
end

#page_changeObject

Returns the value of attribute page_change.



67
68
69
# File 'lib/aspose_cells_cloud/models/form.rb', line 67

def page_change
  @page_change
end

#placementObject

Returns the value of attribute placement.



77
78
79
# File 'lib/aspose_cells_cloud/models/form.rb', line 77

def placement
  @placement
end

#rightObject

Returns the value of attribute right.



93
94
95
# File 'lib/aspose_cells_cloud/models/form.rb', line 93

def right
  @right
end

#rotation_angleObject

Returns the value of attribute rotation_angle.



103
104
105
# File 'lib/aspose_cells_cloud/models/form.rb', line 103

def rotation_angle
  @rotation_angle
end

#selected_cellObject

Returns the value of attribute selected_cell.



47
48
49
# File 'lib/aspose_cells_cloud/models/form.rb', line 47

def selected_cell
  @selected_cell
end

#selected_cellsObject

Returns the value of attribute selected_cells.



53
54
55
# File 'lib/aspose_cells_cloud/models/form.rb', line 53

def selected_cells
  @selected_cells
end

#selected_indexObject

Returns the value of attribute selected_index.



43
44
45
# File 'lib/aspose_cells_cloud/models/form.rb', line 43

def selected_index
  @selected_index
end

#selected_valueObject

Returns the value of attribute selected_value.



45
46
47
# File 'lib/aspose_cells_cloud/models/form.rb', line 45

def selected_value
  @selected_value
end

#selection_typeObject

Returns the value of attribute selection_type.



55
56
57
# File 'lib/aspose_cells_cloud/models/form.rb', line 55

def selection_type
  @selection_type
end

#shadowObject

Returns the value of attribute shadow.



39
40
41
# File 'lib/aspose_cells_cloud/models/form.rb', line 39

def shadow
  @shadow
end

#textObject

Returns the value of attribute text.



107
108
109
# File 'lib/aspose_cells_cloud/models/form.rb', line 107

def text
  @text
end

#text_horizontal_alignmentObject

Returns the value of attribute text_horizontal_alignment.



111
112
113
# File 'lib/aspose_cells_cloud/models/form.rb', line 111

def text_horizontal_alignment
  @text_horizontal_alignment
end

#text_horizontal_overflowObject

Returns the value of attribute text_horizontal_overflow.



113
114
115
# File 'lib/aspose_cells_cloud/models/form.rb', line 113

def text_horizontal_overflow
  @text_horizontal_overflow
end

#text_orientation_typeObject

Returns the value of attribute text_orientation_type.



115
116
117
# File 'lib/aspose_cells_cloud/models/form.rb', line 115

def text_orientation_type
  @text_orientation_type
end

#text_vertical_alignmentObject

Returns the value of attribute text_vertical_alignment.



117
118
119
# File 'lib/aspose_cells_cloud/models/form.rb', line 117

def text_vertical_alignment
  @text_vertical_alignment
end

#text_vertical_overflowObject

Returns the value of attribute text_vertical_overflow.



119
120
121
# File 'lib/aspose_cells_cloud/models/form.rb', line 119

def text_vertical_overflow
  @text_vertical_overflow
end

#topObject

Returns the value of attribute top.



81
82
83
# File 'lib/aspose_cells_cloud/models/form.rb', line 81

def top
  @top
end

#upper_left_columnObject

Returns the value of attribute upper_left_column.



83
84
85
# File 'lib/aspose_cells_cloud/models/form.rb', line 83

def upper_left_column
  @upper_left_column
end

#upper_left_rowObject

Returns the value of attribute upper_left_row.



79
80
81
# File 'lib/aspose_cells_cloud/models/form.rb', line 79

def upper_left_row
  @upper_left_row
end

#widthObject

Returns the value of attribute width.



95
96
97
# File 'lib/aspose_cells_cloud/models/form.rb', line 95

def width
  @width
end

#xObject

Returns the value of attribute x.



99
100
101
# File 'lib/aspose_cells_cloud/models/form.rb', line 99

def x
  @x
end

#yObject

Returns the value of attribute y.



101
102
103
# File 'lib/aspose_cells_cloud/models/form.rb', line 101

def y
  @y
end

#z_order_positionObject

Returns the value of attribute z_order_position.



137
138
139
# File 'lib/aspose_cells_cloud/models/form.rb', line 137

def z_order_position
  @z_order_position
end

Class Method Details

.attribute_mapObject

Attribute mapping from ruby-style variable name to JSON key.



146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
# File 'lib/aspose_cells_cloud/models/form.rb', line 146

def self.attribute_map
  {
    :'form_type' => :'FormType',
    :'checked_value' => :'CheckedValue',
    :'shadow' => :'Shadow',
    :'input_range' => :'InputRange',
    :'selected_index' => :'SelectedIndex',
    :'selected_value' => :'SelectedValue',
    :'selected_cell' => :'SelectedCell',
    :'drop_down_lines' => :'DropDownLines',
    :'item_count' => :'ItemCount',
    :'selected_cells' => :'SelectedCells',
    :'selection_type' => :'SelectionType',
    :'is_checked' => :'IsChecked',
    :'current_value' => :'CurrentValue',
    :'min' => :'Min',
    :'max' => :'Max',
    :'incremental_change' => :'IncrementalChange',
    :'page_change' => :'PageChange',
    :'is_horizontal' => :'IsHorizontal',
    :'name' => :'Name',
    :'mso_drawing_type' => :'MsoDrawingType',
    :'auto_shape_type' => :'AutoShapeType',
    :'placement' => :'Placement',
    :'upper_left_row' => :'UpperLeftRow',
    :'top' => :'Top',
    :'upper_left_column' => :'UpperLeftColumn',
    :'left' => :'Left',
    :'lower_right_row' => :'LowerRightRow',
    :'bottom' => :'Bottom',
    :'lower_right_column' => :'LowerRightColumn',
    :'right' => :'Right',
    :'width' => :'Width',
    :'height' => :'Height',
    :'x' => :'X',
    :'y' => :'Y',
    :'rotation_angle' => :'RotationAngle',
    :'html_text' => :'HtmlText',
    :'text' => :'Text',
    :'alternative_text' => :'AlternativeText',
    :'text_horizontal_alignment' => :'TextHorizontalAlignment',
    :'text_horizontal_overflow' => :'TextHorizontalOverflow',
    :'text_orientation_type' => :'TextOrientationType',
    :'text_vertical_alignment' => :'TextVerticalAlignment',
    :'text_vertical_overflow' => :'TextVerticalOverflow',
    :'is_group' => :'IsGroup',
    :'is_hidden' => :'IsHidden',
    :'is_lock_aspect_ratio' => :'IsLockAspectRatio',
    :'is_locked' => :'IsLocked',
    :'is_printable' => :'IsPrintable',
    :'is_text_wrapped' => :'IsTextWrapped',
    :'is_word_art' => :'IsWordArt',
    :'linked_cell' => :'LinkedCell',
    :'z_order_position' => :'ZOrderPosition',
    :'font' => :'Font',
    :'hyperlink' => :'Hyperlink',
    :'link' => :'link'
  }
end

.swagger_typesObject

Attribute type mapping.



207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
# File 'lib/aspose_cells_cloud/models/form.rb', line 207

def self.swagger_types
  {
    :'form_type' => :'String',
    :'checked_value' => :'String',
    :'shadow' => :'BOOLEAN',
    :'input_range' => :'String',
    :'selected_index' => :'Integer',
    :'selected_value' => :'String',
    :'selected_cell' => :'LinkElement',
    :'drop_down_lines' => :'Integer',
    :'item_count' => :'Integer',
    :'selected_cells' => :'Array<LinkElement>',
    :'selection_type' => :'String',
    :'is_checked' => :'BOOLEAN',
    :'current_value' => :'Integer',
    :'min' => :'Integer',
    :'max' => :'Integer',
    :'incremental_change' => :'Integer',
    :'page_change' => :'Integer',
    :'is_horizontal' => :'BOOLEAN',
    :'name' => :'String',
    :'mso_drawing_type' => :'String',
    :'auto_shape_type' => :'String',
    :'placement' => :'String',
    :'upper_left_row' => :'Integer',
    :'top' => :'Integer',
    :'upper_left_column' => :'Integer',
    :'left' => :'Integer',
    :'lower_right_row' => :'Integer',
    :'bottom' => :'Integer',
    :'lower_right_column' => :'Integer',
    :'right' => :'Integer',
    :'width' => :'Integer',
    :'height' => :'Integer',
    :'x' => :'Integer',
    :'y' => :'Integer',
    :'rotation_angle' => :'Float',
    :'html_text' => :'String',
    :'text' => :'String',
    :'alternative_text' => :'String',
    :'text_horizontal_alignment' => :'String',
    :'text_horizontal_overflow' => :'String',
    :'text_orientation_type' => :'String',
    :'text_vertical_alignment' => :'String',
    :'text_vertical_overflow' => :'String',
    :'is_group' => :'BOOLEAN',
    :'is_hidden' => :'BOOLEAN',
    :'is_lock_aspect_ratio' => :'BOOLEAN',
    :'is_locked' => :'BOOLEAN',
    :'is_printable' => :'BOOLEAN',
    :'is_text_wrapped' => :'BOOLEAN',
    :'is_word_art' => :'BOOLEAN',
    :'linked_cell' => :'String',
    :'z_order_position' => :'Integer',
    :'font' => :'Font',
    :'hyperlink' => :'String',
    :'link' => :'Link'
  }
end

Instance Method Details

#==(o) ⇒ Object

Checks equality by comparing each attribute.

Parameters:

  • Object (Object)

    to be compared



679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
# File 'lib/aspose_cells_cloud/models/form.rb', line 679

def ==(o)
  return true if self.equal?(o)
  self.class == o.class &&
      form_type == o.form_type &&
      checked_value == o.checked_value &&
      shadow == o.shadow &&
      input_range == o.input_range &&
      selected_index == o.selected_index &&
      selected_value == o.selected_value &&
      selected_cell == o.selected_cell &&
      drop_down_lines == o.drop_down_lines &&
      item_count == o.item_count &&
      selected_cells == o.selected_cells &&
      selection_type == o.selection_type &&
      is_checked == o.is_checked &&
      current_value == o.current_value &&
      min == o.min &&
      max == o.max &&
      incremental_change == o.incremental_change &&
      page_change == o.page_change &&
      is_horizontal == o.is_horizontal &&
      name == o.name &&
      mso_drawing_type == o.mso_drawing_type &&
      auto_shape_type == o.auto_shape_type &&
      placement == o.placement &&
      upper_left_row == o.upper_left_row &&
      top == o.top &&
      upper_left_column == o.upper_left_column &&
      left == o.left &&
      lower_right_row == o.lower_right_row &&
      bottom == o.bottom &&
      lower_right_column == o.lower_right_column &&
      right == o.right &&
      width == o.width &&
      height == o.height &&
      x == o.x &&
      y == o.y &&
      rotation_angle == o.rotation_angle &&
      html_text == o.html_text &&
      text == o.text &&
      alternative_text == o.alternative_text &&
      text_horizontal_alignment == o.text_horizontal_alignment &&
      text_horizontal_overflow == o.text_horizontal_overflow &&
      text_orientation_type == o.text_orientation_type &&
      text_vertical_alignment == o.text_vertical_alignment &&
      text_vertical_overflow == o.text_vertical_overflow &&
      is_group == o.is_group &&
      is_hidden == o.is_hidden &&
      is_lock_aspect_ratio == o.is_lock_aspect_ratio &&
      is_locked == o.is_locked &&
      is_printable == o.is_printable &&
      is_text_wrapped == o.is_text_wrapped &&
      is_word_art == o.is_word_art &&
      linked_cell == o.linked_cell &&
      z_order_position == o.z_order_position &&
      font == o.font &&
      hyperlink == o.hyperlink &&
      link == o.link 
      std_dev == o.std_dev
end

#_deserialize(type, value) ⇒ Object

Deserializes the data based on type

Parameters:

  • string

    type Data type

  • string

    value Value to be deserialized

Returns:

  • (Object)

    Deserialized data



776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
# File 'lib/aspose_cells_cloud/models/form.rb', line 776

def _deserialize(type, value)
  case type.to_sym
  when :DateTime
    DateTime.parse(value)
  when :Date
    Date.parse(value)
  when :String
    value.to_s
  when :Integer
    value.to_i
  when :Float
    value.to_f
  when :BOOLEAN
    if value.to_s =~ /\A(true|t|yes|y|1)\z/i
      true
    else
      false
    end
  when :Object
    # generic object (usually a Hash), return directly
    value
  when /\AArray<(?<inner_type>.+)>\z/
    inner_type = Regexp.last_match[:inner_type]
    value.map { |v| _deserialize(inner_type, v) }
  when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
    k_type = Regexp.last_match[:k_type]
    v_type = Regexp.last_match[:v_type]
    {}.tap do |hash|
      value.each do |k, v|
        hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
      end
    end
  else # model
    temp_model = AsposeCellsCloud.const_get(type).new
    temp_model.build_from_hash(value)
  end
end

#_to_hash(value) ⇒ Hash

Outputs non-array value in the form of hash For object, use to_hash. Otherwise, just return the value

Parameters:

  • value (Object)

    Any valid value

Returns:

  • (Hash)

    Returns the value in the form of hash



842
843
844
845
846
847
848
849
850
851
852
853
854
# File 'lib/aspose_cells_cloud/models/form.rb', line 842

def _to_hash(value)
  if value.is_a?(Array)
    value.compact.map{ |v| _to_hash(v) }
  elsif value.is_a?(Hash)
    {}.tap do |hash|
      value.each { |k, v| hash[k] = _to_hash(v) }
    end
  elsif value.respond_to? :to_hash
    value.to_hash
  else
    value
  end
end

#build_from_hash(attributes) ⇒ Object

Builds the object from hash

Parameters:

  • attributes (Hash)

    Model attributes in the form of hash

Returns:

  • (Object)

    Returns the model itself



755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
# File 'lib/aspose_cells_cloud/models/form.rb', line 755

def build_from_hash(attributes)
  return nil unless attributes.is_a?(Hash)
  self.class.swagger_types.each_pair do |key, type|
    if type =~ /\AArray<(.*)>/i
      # check to ensure the input is an array given that the the attribute
      # is documented as an array but the input is not
      if attributes[self.class.attribute_map[key]].is_a?(Array)
        self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
      end
    elsif !attributes[self.class.attribute_map[key]].nil?
      self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
    end # or else data not found in attributes(hash), not an issue as the data can be optional
  end

  self
end

#eql?(o) ⇒ Boolean

Parameters:

  • Object (Object)

    to be compared

Returns:

  • (Boolean)

See Also:

  • `==` method


742
743
744
# File 'lib/aspose_cells_cloud/models/form.rb', line 742

def eql?(o)
  self == o
end

#hashFixnum

Calculates hash code according to all attributes.

Returns:

  • (Fixnum)

    Hash code



748
749
750
# File 'lib/aspose_cells_cloud/models/form.rb', line 748

def hash
  [ form_type , checked_value , shadow , input_range , selected_index , selected_value , selected_cell , drop_down_lines , item_count , selected_cells , selection_type , is_checked , current_value , min , max , incremental_change , page_change , is_horizontal , name , mso_drawing_type , auto_shape_type , placement , upper_left_row , top , upper_left_column , left , lower_right_row , bottom , lower_right_column , right , width , height , x , y , rotation_angle , html_text , text , alternative_text , text_horizontal_alignment , text_horizontal_overflow , text_orientation_type , text_vertical_alignment , text_vertical_overflow , is_group , is_hidden , is_lock_aspect_ratio , is_locked , is_printable , is_text_wrapped , is_word_art , linked_cell , z_order_position , font , hyperlink , link ].hash
end

#list_invalid_propertiesObject

Show invalid properties with the reasons. Usually used together with valid?

Returns:

  • Array for valid properies with the reasons



445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
# File 'lib/aspose_cells_cloud/models/form.rb', line 445

def list_invalid_properties
  invalid_properties = Array.new
  if @form_type.nil?
      invalid_properties.push("invalid value for 'form_type', form_type cannot be nil.")
  end
  if @checked_value.nil?
      invalid_properties.push("invalid value for 'checked_value', checked_value cannot be nil.")
  end
  if @shadow.nil?
      invalid_properties.push("invalid value for 'shadow', shadow cannot be nil.")
  end
  if @input_range.nil?
      invalid_properties.push("invalid value for 'input_range', input_range cannot be nil.")
  end
  if @selected_index.nil?
      invalid_properties.push("invalid value for 'selected_index', selected_index cannot be nil.")
  end
  if @selected_value.nil?
      invalid_properties.push("invalid value for 'selected_value', selected_value cannot be nil.")
  end
  if @selected_cell.nil?
      invalid_properties.push("invalid value for 'selected_cell', selected_cell cannot be nil.")
  end
  if @drop_down_lines.nil?
      invalid_properties.push("invalid value for 'drop_down_lines', drop_down_lines cannot be nil.")
  end
  if @item_count.nil?
      invalid_properties.push("invalid value for 'item_count', item_count cannot be nil.")
  end
  if @selected_cells.nil?
      invalid_properties.push("invalid value for 'selected_cells', selected_cells cannot be nil.")
  end
  if @selection_type.nil?
      invalid_properties.push("invalid value for 'selection_type', selection_type cannot be nil.")
  end
  if @is_checked.nil?
      invalid_properties.push("invalid value for 'is_checked', is_checked cannot be nil.")
  end
  if @current_value.nil?
      invalid_properties.push("invalid value for 'current_value', current_value cannot be nil.")
  end
  if @min.nil?
      invalid_properties.push("invalid value for 'min', min cannot be nil.")
  end
  if @max.nil?
      invalid_properties.push("invalid value for 'max', max cannot be nil.")
  end
  if @incremental_change.nil?
      invalid_properties.push("invalid value for 'incremental_change', incremental_change cannot be nil.")
  end
  if @page_change.nil?
      invalid_properties.push("invalid value for 'page_change', page_change cannot be nil.")
  end
  if @is_horizontal.nil?
      invalid_properties.push("invalid value for 'is_horizontal', is_horizontal cannot be nil.")
  end
  if @name.nil?
      invalid_properties.push("invalid value for 'name', name cannot be nil.")
  end
  if @mso_drawing_type.nil?
      invalid_properties.push("invalid value for 'mso_drawing_type', mso_drawing_type cannot be nil.")
  end
  if @auto_shape_type.nil?
      invalid_properties.push("invalid value for 'auto_shape_type', auto_shape_type cannot be nil.")
  end
  if @placement.nil?
      invalid_properties.push("invalid value for 'placement', placement cannot be nil.")
  end
  if @upper_left_row.nil?
      invalid_properties.push("invalid value for 'upper_left_row', upper_left_row cannot be nil.")
  end
  if @top.nil?
      invalid_properties.push("invalid value for 'top', top cannot be nil.")
  end
  if @upper_left_column.nil?
      invalid_properties.push("invalid value for 'upper_left_column', upper_left_column cannot be nil.")
  end
  if @left.nil?
      invalid_properties.push("invalid value for 'left', left cannot be nil.")
  end
  if @lower_right_row.nil?
      invalid_properties.push("invalid value for 'lower_right_row', lower_right_row cannot be nil.")
  end
  if @bottom.nil?
      invalid_properties.push("invalid value for 'bottom', bottom cannot be nil.")
  end
  if @lower_right_column.nil?
      invalid_properties.push("invalid value for 'lower_right_column', lower_right_column cannot be nil.")
  end
  if @right.nil?
      invalid_properties.push("invalid value for 'right', right cannot be nil.")
  end
  if @width.nil?
      invalid_properties.push("invalid value for 'width', width cannot be nil.")
  end
  if @height.nil?
      invalid_properties.push("invalid value for 'height', height cannot be nil.")
  end
  if @x.nil?
      invalid_properties.push("invalid value for 'x', x cannot be nil.")
  end
  if @y.nil?
      invalid_properties.push("invalid value for 'y', y cannot be nil.")
  end
  if @rotation_angle.nil?
      invalid_properties.push("invalid value for 'rotation_angle', rotation_angle cannot be nil.")
  end
  if @html_text.nil?
      invalid_properties.push("invalid value for 'html_text', html_text cannot be nil.")
  end
  if @text.nil?
      invalid_properties.push("invalid value for 'text', text cannot be nil.")
  end
  if @alternative_text.nil?
      invalid_properties.push("invalid value for 'alternative_text', alternative_text cannot be nil.")
  end
  if @text_horizontal_alignment.nil?
      invalid_properties.push("invalid value for 'text_horizontal_alignment', text_horizontal_alignment cannot be nil.")
  end
  if @text_horizontal_overflow.nil?
      invalid_properties.push("invalid value for 'text_horizontal_overflow', text_horizontal_overflow cannot be nil.")
  end
  if @text_orientation_type.nil?
      invalid_properties.push("invalid value for 'text_orientation_type', text_orientation_type cannot be nil.")
  end
  if @text_vertical_alignment.nil?
      invalid_properties.push("invalid value for 'text_vertical_alignment', text_vertical_alignment cannot be nil.")
  end
  if @text_vertical_overflow.nil?
      invalid_properties.push("invalid value for 'text_vertical_overflow', text_vertical_overflow cannot be nil.")
  end
  if @is_group.nil?
      invalid_properties.push("invalid value for 'is_group', is_group cannot be nil.")
  end
  if @is_hidden.nil?
      invalid_properties.push("invalid value for 'is_hidden', is_hidden cannot be nil.")
  end
  if @is_lock_aspect_ratio.nil?
      invalid_properties.push("invalid value for 'is_lock_aspect_ratio', is_lock_aspect_ratio cannot be nil.")
  end
  if @is_locked.nil?
      invalid_properties.push("invalid value for 'is_locked', is_locked cannot be nil.")
  end
  if @is_printable.nil?
      invalid_properties.push("invalid value for 'is_printable', is_printable cannot be nil.")
  end
  if @is_text_wrapped.nil?
      invalid_properties.push("invalid value for 'is_text_wrapped', is_text_wrapped cannot be nil.")
  end
  if @is_word_art.nil?
      invalid_properties.push("invalid value for 'is_word_art', is_word_art cannot be nil.")
  end
  if @linked_cell.nil?
      invalid_properties.push("invalid value for 'linked_cell', linked_cell cannot be nil.")
  end
  if @z_order_position.nil?
      invalid_properties.push("invalid value for 'z_order_position', z_order_position cannot be nil.")
  end
  if @font.nil?
      invalid_properties.push("invalid value for 'font', font cannot be nil.")
  end
  if @hyperlink.nil?
      invalid_properties.push("invalid value for 'hyperlink', hyperlink cannot be nil.")
  end
  if @link.nil?
      invalid_properties.push("invalid value for 'link', link cannot be nil.")
  end

  return invalid_properties
end

#to_bodyHash

to_body is an alias to to_hash (backward compatibility)

Returns:

  • (Hash)

    Returns the object in the form of hash



822
823
824
# File 'lib/aspose_cells_cloud/models/form.rb', line 822

def to_body
  to_hash
end

#to_hashHash

Returns the object in the form of hash

Returns:

  • (Hash)

    Returns the object in the form of hash



828
829
830
831
832
833
834
835
836
# File 'lib/aspose_cells_cloud/models/form.rb', line 828

def to_hash
  hash = {}
  self.class.attribute_map.each_pair do |attr, param|
    value = self.send(attr)
    next if value.nil?
    hash[param] = _to_hash(value)
  end
  hash
end

#to_sString

Returns the string representation of the object

Returns:

  • (String)

    String presentation of the object



816
817
818
# File 'lib/aspose_cells_cloud/models/form.rb', line 816

def to_s
  to_hash.to_s
end

#valid?Boolean

Check to see if the all the properties in the model are valid

Returns:

  • (Boolean)

    true if the model is valid



618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
# File 'lib/aspose_cells_cloud/models/form.rb', line 618

def valid?
  return false if @form_type.nil?
  return false if @checked_value.nil?
  return false if @shadow.nil?
  return false if @input_range.nil?
  return false if @selected_index.nil?
  return false if @selected_value.nil?
  return false if @selected_cell.nil?
  return false if @drop_down_lines.nil?
  return false if @item_count.nil?
  return false if @selected_cells.nil?
  return false if @selection_type.nil?
  return false if @is_checked.nil?
  return false if @current_value.nil?
  return false if @min.nil?
  return false if @max.nil?
  return false if @incremental_change.nil?
  return false if @page_change.nil?
  return false if @is_horizontal.nil?
  return false if @name.nil?
  return false if @mso_drawing_type.nil?
  return false if @auto_shape_type.nil?
  return false if @placement.nil?
  return false if @upper_left_row.nil?
  return false if @top.nil?
  return false if @upper_left_column.nil?
  return false if @left.nil?
  return false if @lower_right_row.nil?
  return false if @bottom.nil?
  return false if @lower_right_column.nil?
  return false if @right.nil?
  return false if @width.nil?
  return false if @height.nil?
  return false if @x.nil?
  return false if @y.nil?
  return false if @rotation_angle.nil?
  return false if @html_text.nil?
  return false if @text.nil?
  return false if @alternative_text.nil?
  return false if @text_horizontal_alignment.nil?
  return false if @text_horizontal_overflow.nil?
  return false if @text_orientation_type.nil?
  return false if @text_vertical_alignment.nil?
  return false if @text_vertical_overflow.nil?
  return false if @is_group.nil?
  return false if @is_hidden.nil?
  return false if @is_lock_aspect_ratio.nil?
  return false if @is_locked.nil?
  return false if @is_printable.nil?
  return false if @is_text_wrapped.nil?
  return false if @is_word_art.nil?
  return false if @linked_cell.nil?
  return false if @z_order_position.nil?
  return false if @font.nil?
  return false if @hyperlink.nil?
  return false if @link.nil?
  return true
end