Method: AsposeCellsCloud::DataLabels#initialize

Defined in:
lib/aspose_cells_cloud/models/data_labels.rb

#initialize(attributes = {}) ⇒ DataLabels

Initializes the object

Parameters:

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

    Model attributes in the form of hash



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
205
206
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
266
267
268
269
270
271
272
273
# File 'lib/aspose_cells_cloud/models/data_labels.rb', line 173

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?(:'IsAutoText')
      self.is_auto_text = attributes[:'IsAutoText']
  end
  if attributes.has_key?(:'IsDeleted')
      self.is_deleted = attributes[:'IsDeleted']
  end
  if attributes.has_key?(:'LinkedSource')
      self.linked_source = attributes[:'LinkedSource']
  end
  if attributes.has_key?(:'Number')
      self.number = attributes[:'Number']
  end
  if attributes.has_key?(:'NumberFormat')
      self.number_format = attributes[:'NumberFormat']
  end
  if attributes.has_key?(:'NumberFormatLinked')
      self.number_format_linked = attributes[:'NumberFormatLinked']
  end
  if attributes.has_key?(:'Position')
      self.position = attributes[:'Position']
  end
  if attributes.has_key?(:'RotationAngle')
      self.rotation_angle = attributes[:'RotationAngle']
  end
  if attributes.has_key?(:'Separator')
      self.separator = attributes[:'Separator']
  end
  if attributes.has_key?(:'ShowBubbleSize')
      self.show_bubble_size = attributes[:'ShowBubbleSize']
  end
  if attributes.has_key?(:'ShowCategoryName')
      self.show_category_name = attributes[:'ShowCategoryName']
  end
  if attributes.has_key?(:'ShowLegendKey')
      self.show_legend_key = attributes[:'ShowLegendKey']
  end
  if attributes.has_key?(:'ShowPercentage')
      self.show_percentage = attributes[:'ShowPercentage']
  end
  if attributes.has_key?(:'ShowSeriesName')
      self.show_series_name = attributes[:'ShowSeriesName']
  end
  if attributes.has_key?(:'ShowValue')
      self.show_value = attributes[:'ShowValue']
  end
  if attributes.has_key?(:'Text')
      self.text = attributes[:'Text']
  end
  if attributes.has_key?(:'TextDirection')
      self.text_direction = attributes[:'TextDirection']
  end
  if attributes.has_key?(:'TextHorizontalAlignment')
      self.text_horizontal_alignment = attributes[:'TextHorizontalAlignment']
  end
  if attributes.has_key?(:'TextVerticalAlignment')
      self.text_vertical_alignment = attributes[:'TextVerticalAlignment']
  end
  if attributes.has_key?(:'Area')
      self.area = attributes[:'Area']
  end
  if attributes.has_key?(:'AutoScaleFont')
      self.auto_scale_font = attributes[:'AutoScaleFont']
  end
  if attributes.has_key?(:'BackgroundMode')
      self.background_mode = attributes[:'BackgroundMode']
  end
  if attributes.has_key?(:'Border')
      self.border = attributes[:'Border']
  end
  if attributes.has_key?(:'Font')
      self.font = attributes[:'Font']
  end
  if attributes.has_key?(:'IsAutomaticSize')
      self.is_automatic_size = attributes[:'IsAutomaticSize']
  end
  if attributes.has_key?(:'IsInnerMode')
      self.is_inner_mode = attributes[:'IsInnerMode']
  end
  if attributes.has_key?(:'Shadow')
      self.shadow = attributes[:'Shadow']
  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

end