rubyXL 3.3.6 → 3.3.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (358) hide show
  1. checksums.yaml +4 -4
  2. data/VERSION +1 -1
  3. data/lib/rubyXL/convenience_methods.rb +48 -0
  4. data/lib/rubyXL/objects/cell_style.rb +2 -2
  5. data/lib/rubyXL/worksheet.rb +6 -51
  6. data/rdoc/README_rdoc.html +1 -1
  7. data/rdoc/RubyXL.html +1 -1
  8. data/rdoc/RubyXL/AExtension.html +1 -1
  9. data/rdoc/RubyXL/AExtensionStorageArea.html +1 -1
  10. data/rdoc/RubyXL/AdjustHandleList.html +1 -1
  11. data/rdoc/RubyXL/Alignment.html +1 -1
  12. data/rdoc/RubyXL/AlternateContent.html +1 -1
  13. data/rdoc/RubyXL/Authors.html +1 -1
  14. data/rdoc/RubyXL/AutoFilter.html +1 -1
  15. data/rdoc/RubyXL/AutoFilterColumn.html +1 -1
  16. data/rdoc/RubyXL/BinaryImageFile.html +1 -1
  17. data/rdoc/RubyXL/BodyProperties.html +1 -1
  18. data/rdoc/RubyXL/BooleanNode.html +1 -1
  19. data/rdoc/RubyXL/BooleanValue.html +1 -1
  20. data/rdoc/RubyXL/Border.html +1 -1
  21. data/rdoc/RubyXL/BorderEdge.html +1 -1
  22. data/rdoc/RubyXL/Borders.html +1 -1
  23. data/rdoc/RubyXL/Break.html +1 -1
  24. data/rdoc/RubyXL/BreakList.html +1 -1
  25. data/rdoc/RubyXL/CT_AdjPoint2D.html +1 -1
  26. data/rdoc/RubyXL/CT_AlphaBiLevelEffect.html +1 -1
  27. data/rdoc/RubyXL/CT_AlphaModulateEffect.html +1 -1
  28. data/rdoc/RubyXL/CT_AlphaModulateFixedEffect.html +1 -1
  29. data/rdoc/RubyXL/CT_AlphaOutsetEffect.html +1 -1
  30. data/rdoc/RubyXL/CT_AlphaReplaceEffect.html +1 -1
  31. data/rdoc/RubyXL/CT_Backdrop.html +1 -1
  32. data/rdoc/RubyXL/CT_Bevel.html +1 -1
  33. data/rdoc/RubyXL/CT_BiLevelEffect.html +1 -1
  34. data/rdoc/RubyXL/CT_BlendEffect.html +1 -1
  35. data/rdoc/RubyXL/CT_Blip.html +1 -1
  36. data/rdoc/RubyXL/CT_BlipFillProperties.html +1 -1
  37. data/rdoc/RubyXL/CT_BlurEffect.html +1 -1
  38. data/rdoc/RubyXL/CT_Camera.html +1 -1
  39. data/rdoc/RubyXL/CT_Color.html +1 -1
  40. data/rdoc/RubyXL/CT_ColorChangeEffect.html +1 -1
  41. data/rdoc/RubyXL/CT_ColorMapping.html +1 -1
  42. data/rdoc/RubyXL/CT_ColorScheme.html +1 -1
  43. data/rdoc/RubyXL/CT_ColorSchemeAndMapping.html +1 -1
  44. data/rdoc/RubyXL/CT_ConnectionSite.html +1 -1
  45. data/rdoc/RubyXL/CT_ConnectionSiteList.html +1 -1
  46. data/rdoc/RubyXL/CT_DashStop.html +1 -1
  47. data/rdoc/RubyXL/CT_DashStopList.html +1 -1
  48. data/rdoc/RubyXL/CT_DefaultShapeDefinition.html +1 -1
  49. data/rdoc/RubyXL/CT_DuotoneEffect.html +1 -1
  50. data/rdoc/RubyXL/CT_EffectContainer.html +1 -1
  51. data/rdoc/RubyXL/CT_EffectList.html +1 -1
  52. data/rdoc/RubyXL/CT_EffectReference.html +1 -1
  53. data/rdoc/RubyXL/CT_EffectStyleItem.html +1 -1
  54. data/rdoc/RubyXL/CT_EffectStyleList.html +1 -1
  55. data/rdoc/RubyXL/CT_EmbeddedWAVAudioFile.html +1 -1
  56. data/rdoc/RubyXL/CT_FillEffect.html +1 -1
  57. data/rdoc/RubyXL/CT_FillOverlayEffect.html +1 -1
  58. data/rdoc/RubyXL/CT_FillStyleList.html +1 -1
  59. data/rdoc/RubyXL/CT_FlatText.html +1 -1
  60. data/rdoc/RubyXL/CT_FontCollection.html +1 -1
  61. data/rdoc/RubyXL/CT_FontReference.html +1 -1
  62. data/rdoc/RubyXL/CT_GeomGuideList.html +1 -1
  63. data/rdoc/RubyXL/CT_GlowEffect.html +1 -1
  64. data/rdoc/RubyXL/CT_GradientFillProperties.html +1 -1
  65. data/rdoc/RubyXL/CT_GradientStop.html +1 -1
  66. data/rdoc/RubyXL/CT_GradientStopList.html +1 -1
  67. data/rdoc/RubyXL/CT_HSLEffect.html +1 -1
  68. data/rdoc/RubyXL/CT_HslColor.html +1 -1
  69. data/rdoc/RubyXL/CT_Hyperlink.html +1 -1
  70. data/rdoc/RubyXL/CT_InnerShadowEffect.html +1 -1
  71. data/rdoc/RubyXL/CT_LightRig.html +1 -1
  72. data/rdoc/RubyXL/CT_LineEndProperties.html +1 -1
  73. data/rdoc/RubyXL/CT_LineJoinMiterProperties.html +1 -1
  74. data/rdoc/RubyXL/CT_LineProperties.html +1 -1
  75. data/rdoc/RubyXL/CT_LineStyleList.html +1 -1
  76. data/rdoc/RubyXL/CT_LinearShadeProperties.html +1 -1
  77. data/rdoc/RubyXL/CT_LuminanceEffect.html +1 -1
  78. data/rdoc/RubyXL/CT_ObjectStyleDefaults.html +1 -1
  79. data/rdoc/RubyXL/CT_OuterShadowEffect.html +1 -1
  80. data/rdoc/RubyXL/CT_Path2D.html +1 -1
  81. data/rdoc/RubyXL/CT_Path2DArcTo.html +1 -1
  82. data/rdoc/RubyXL/CT_Path2DCubicBezierTo.html +1 -1
  83. data/rdoc/RubyXL/CT_Path2DList.html +1 -1
  84. data/rdoc/RubyXL/CT_Path2DQuadBezierTo.html +1 -1
  85. data/rdoc/RubyXL/CT_Path2DTo.html +1 -1
  86. data/rdoc/RubyXL/CT_PathShadeProperties.html +1 -1
  87. data/rdoc/RubyXL/CT_PatternFillProperties.html +1 -1
  88. data/rdoc/RubyXL/CT_Point3D.html +1 -1
  89. data/rdoc/RubyXL/CT_PolarAdjustHandle.html +1 -1
  90. data/rdoc/RubyXL/CT_PresetColor.html +1 -1
  91. data/rdoc/RubyXL/CT_PresetLineDashProperties.html +1 -1
  92. data/rdoc/RubyXL/CT_PresetShadowEffect.html +1 -1
  93. data/rdoc/RubyXL/CT_PresetTextShape.html +1 -1
  94. data/rdoc/RubyXL/CT_ReflectionEffect.html +1 -1
  95. data/rdoc/RubyXL/CT_RelativeOffsetEffect.html +1 -1
  96. data/rdoc/RubyXL/CT_RelativeRect.html +1 -1
  97. data/rdoc/RubyXL/CT_SRgbColor.html +1 -1
  98. data/rdoc/RubyXL/CT_ScRgbColor.html +1 -1
  99. data/rdoc/RubyXL/CT_Scene3D.html +1 -1
  100. data/rdoc/RubyXL/CT_SchemeColor.html +1 -1
  101. data/rdoc/RubyXL/CT_Shape3D.html +1 -1
  102. data/rdoc/RubyXL/CT_ShapeStyle.html +1 -1
  103. data/rdoc/RubyXL/CT_SoftEdgesEffect.html +1 -1
  104. data/rdoc/RubyXL/CT_SphereCoords.html +1 -1
  105. data/rdoc/RubyXL/CT_StretchInfoProperties.html +1 -1
  106. data/rdoc/RubyXL/CT_StyleMatrix.html +1 -1
  107. data/rdoc/RubyXL/CT_StyleMatrixReference.html +1 -1
  108. data/rdoc/RubyXL/CT_SupplementalFont.html +1 -1
  109. data/rdoc/RubyXL/CT_SystemColor.html +1 -1
  110. data/rdoc/RubyXL/CT_TextAutonumberBullet.html +1 -1
  111. data/rdoc/RubyXL/CT_TextBlipBullet.html +1 -1
  112. data/rdoc/RubyXL/CT_TextCharBullet.html +1 -1
  113. data/rdoc/RubyXL/CT_TextCharacterProperties.html +1 -1
  114. data/rdoc/RubyXL/CT_TextFont.html +1 -1
  115. data/rdoc/RubyXL/CT_TextListStyle.html +1 -1
  116. data/rdoc/RubyXL/CT_TextNormalAutofit.html +1 -1
  117. data/rdoc/RubyXL/CT_TextParagraphProperties.html +1 -1
  118. data/rdoc/RubyXL/CT_TextSpacing.html +1 -1
  119. data/rdoc/RubyXL/CT_TextTabStop.html +1 -1
  120. data/rdoc/RubyXL/CT_TextTabStopList.html +1 -1
  121. data/rdoc/RubyXL/CT_TileInfoProperties.html +1 -1
  122. data/rdoc/RubyXL/CT_TintEffect.html +1 -1
  123. data/rdoc/RubyXL/CT_Transform2D.html +1 -1
  124. data/rdoc/RubyXL/CT_TransformEffect.html +1 -1
  125. data/rdoc/RubyXL/CT_Vector3D.html +1 -1
  126. data/rdoc/RubyXL/CT_XYAdjustHandle.html +1 -1
  127. data/rdoc/RubyXL/CalculationChain.html +1 -1
  128. data/rdoc/RubyXL/CalculationChainCell.html +1 -1
  129. data/rdoc/RubyXL/CalculationProperties.html +1 -1
  130. data/rdoc/RubyXL/Cell.html +1 -1
  131. data/rdoc/RubyXL/CellConvenienceMethods.html +17 -17
  132. data/rdoc/RubyXL/CellSmartTag.html +1 -1
  133. data/rdoc/RubyXL/CellSmartTagProperty.html +1 -1
  134. data/rdoc/RubyXL/CellSmartTags.html +1 -1
  135. data/rdoc/RubyXL/CellStyle.html +1 -1
  136. data/rdoc/RubyXL/CellStyleXFs.html +1 -1
  137. data/rdoc/RubyXL/CellStyles.html +1 -1
  138. data/rdoc/RubyXL/CellValue.html +1 -1
  139. data/rdoc/RubyXL/CellWatch.html +1 -1
  140. data/rdoc/RubyXL/CellWatches.html +1 -1
  141. data/rdoc/RubyXL/CellXFs.html +1 -1
  142. data/rdoc/RubyXL/ChartColorsFile.html +1 -1
  143. data/rdoc/RubyXL/ChartFile.html +1 -1
  144. data/rdoc/RubyXL/ChartStyleFile.html +1 -1
  145. data/rdoc/RubyXL/ChartUserShapesFile.html +1 -1
  146. data/rdoc/RubyXL/Chartsheet.html +1 -1
  147. data/rdoc/RubyXL/ChartsheetPageSetup.html +1 -1
  148. data/rdoc/RubyXL/ChartsheetProperties.html +1 -1
  149. data/rdoc/RubyXL/ChartsheetProtection.html +1 -1
  150. data/rdoc/RubyXL/ChartsheetView.html +1 -1
  151. data/rdoc/RubyXL/ChartsheetViews.html +1 -1
  152. data/rdoc/RubyXL/Color.html +1 -1
  153. data/rdoc/RubyXL/ColorFilter.html +1 -1
  154. data/rdoc/RubyXL/ColorScale.html +1 -1
  155. data/rdoc/RubyXL/ColorSet.html +1 -1
  156. data/rdoc/RubyXL/Colors.html +1 -1
  157. data/rdoc/RubyXL/ColumnRange.html +1 -1
  158. data/rdoc/RubyXL/ColumnRanges.html +1 -1
  159. data/rdoc/RubyXL/Comment.html +1 -1
  160. data/rdoc/RubyXL/CommentList.html +1 -1
  161. data/rdoc/RubyXL/CommentsFile.html +1 -1
  162. data/rdoc/RubyXL/ConditionalFormatValue.html +1 -1
  163. data/rdoc/RubyXL/ConditionalFormatting.html +1 -1
  164. data/rdoc/RubyXL/ConditionalFormattingRule.html +1 -1
  165. data/rdoc/RubyXL/ContentTypeDefault.html +1 -1
  166. data/rdoc/RubyXL/ContentTypeOverride.html +1 -1
  167. data/rdoc/RubyXL/ContentTypes.html +1 -1
  168. data/rdoc/RubyXL/ControlPropertiesFile.html +1 -1
  169. data/rdoc/RubyXL/CorePropertiesFile.html +1 -1
  170. data/rdoc/RubyXL/CustomColor.html +1 -1
  171. data/rdoc/RubyXL/CustomColorList.html +1 -1
  172. data/rdoc/RubyXL/CustomFilter.html +1 -1
  173. data/rdoc/RubyXL/CustomFilters.html +1 -1
  174. data/rdoc/RubyXL/CustomGeometry.html +1 -1
  175. data/rdoc/RubyXL/CustomProperties.html +1 -1
  176. data/rdoc/RubyXL/CustomPropertiesFile.html +1 -1
  177. data/rdoc/RubyXL/CustomProperty.html +1 -1
  178. data/rdoc/RubyXL/CustomSheetView.html +1 -1
  179. data/rdoc/RubyXL/CustomSheetViews.html +1 -1
  180. data/rdoc/RubyXL/CustomWorkbookView.html +1 -1
  181. data/rdoc/RubyXL/CustomWorkbookViews.html +1 -1
  182. data/rdoc/RubyXL/CustomXMLFile.html +1 -1
  183. data/rdoc/RubyXL/DXF.html +1 -1
  184. data/rdoc/RubyXL/DXFs.html +1 -1
  185. data/rdoc/RubyXL/DataBar.html +1 -1
  186. data/rdoc/RubyXL/DataConsolidate.html +1 -1
  187. data/rdoc/RubyXL/DataConsolidationReference.html +1 -1
  188. data/rdoc/RubyXL/DataConsolidationReferences.html +1 -1
  189. data/rdoc/RubyXL/DataType.html +1 -1
  190. data/rdoc/RubyXL/DataValidation.html +1 -1
  191. data/rdoc/RubyXL/DataValidations.html +1 -1
  192. data/rdoc/RubyXL/DateGroupItem.html +1 -1
  193. data/rdoc/RubyXL/DefinedName.html +1 -1
  194. data/rdoc/RubyXL/DefinedNames.html +1 -1
  195. data/rdoc/RubyXL/DocumentPropertiesFile.html +1 -1
  196. data/rdoc/RubyXL/DrawingFile.html +1 -1
  197. data/rdoc/RubyXL/DynamicFilter.html +1 -1
  198. data/rdoc/RubyXL/EmbeddedControl.html +1 -1
  199. data/rdoc/RubyXL/EmbeddedControls.html +1 -1
  200. data/rdoc/RubyXL/Extension.html +1 -1
  201. data/rdoc/RubyXL/ExtensionStorageArea.html +1 -1
  202. data/rdoc/RubyXL/Extents.html +1 -1
  203. data/rdoc/RubyXL/ExternalLinksFile.html +1 -1
  204. data/rdoc/RubyXL/ExternalReference.html +1 -1
  205. data/rdoc/RubyXL/ExternalReferences.html +1 -1
  206. data/rdoc/RubyXL/ExtraColorSchemeList.html +1 -1
  207. data/rdoc/RubyXL/FieldItem.html +1 -1
  208. data/rdoc/RubyXL/FileRecoveryProperties.html +1 -1
  209. data/rdoc/RubyXL/FileSharing.html +1 -1
  210. data/rdoc/RubyXL/FileVersion.html +1 -1
  211. data/rdoc/RubyXL/Fill.html +1 -1
  212. data/rdoc/RubyXL/Fills.html +1 -1
  213. data/rdoc/RubyXL/FilterContainer.html +1 -1
  214. data/rdoc/RubyXL/FloatNode.html +1 -1
  215. data/rdoc/RubyXL/FloatValue.html +1 -1
  216. data/rdoc/RubyXL/Font.html +1 -1
  217. data/rdoc/RubyXL/FontScheme.html +1 -1
  218. data/rdoc/RubyXL/Fonts.html +1 -1
  219. data/rdoc/RubyXL/Formula.html +1 -1
  220. data/rdoc/RubyXL/FunctionGroup.html +1 -1
  221. data/rdoc/RubyXL/FunctionGroups.html +1 -1
  222. data/rdoc/RubyXL/GenericStorageObject.html +1 -1
  223. data/rdoc/RubyXL/GradientFill.html +1 -1
  224. data/rdoc/RubyXL/HeaderFooterSettings.html +1 -1
  225. data/rdoc/RubyXL/Hyperlink.html +1 -1
  226. data/rdoc/RubyXL/HyperlinkRelFile.html +1 -1
  227. data/rdoc/RubyXL/Hyperlinks.html +1 -1
  228. data/rdoc/RubyXL/IconFilter.html +1 -1
  229. data/rdoc/RubyXL/IconSet.html +1 -1
  230. data/rdoc/RubyXL/IgnoredError.html +1 -1
  231. data/rdoc/RubyXL/IgnoredErrors.html +1 -1
  232. data/rdoc/RubyXL/IndexedColors.html +1 -1
  233. data/rdoc/RubyXL/InputCells.html +1 -1
  234. data/rdoc/RubyXL/IntegerNode.html +1 -1
  235. data/rdoc/RubyXL/IntegerValue.html +1 -1
  236. data/rdoc/RubyXL/LegacyCell.html +1 -1
  237. data/rdoc/RubyXL/LegacyWorksheet.html +9 -115
  238. data/rdoc/RubyXL/MRUColors.html +1 -1
  239. data/rdoc/RubyXL/MacrosFile.html +1 -1
  240. data/rdoc/RubyXL/MergedCell.html +1 -1
  241. data/rdoc/RubyXL/MergedCells.html +1 -1
  242. data/rdoc/RubyXL/NumFmt.html +1 -1
  243. data/rdoc/RubyXL/NumberFormat.html +1 -1
  244. data/rdoc/RubyXL/NumberFormats.html +1 -1
  245. data/rdoc/RubyXL/OLEObject.html +1 -1
  246. data/rdoc/RubyXL/OLEObjectFile.html +1 -1
  247. data/rdoc/RubyXL/OLEObjects.html +1 -1
  248. data/rdoc/RubyXL/OLESize.html +1 -1
  249. data/rdoc/RubyXL/OOXMLContainerObject.html +1 -1
  250. data/rdoc/RubyXL/OOXMLObject.html +1 -1
  251. data/rdoc/RubyXL/OOXMLObjectClassMethods.html +1 -1
  252. data/rdoc/RubyXL/OOXMLObjectInstanceMethods.html +1 -1
  253. data/rdoc/RubyXL/OOXMLRelationshipsFile.html +1 -1
  254. data/rdoc/RubyXL/OOXMLTopLevelObject.html +1 -1
  255. data/rdoc/RubyXL/Offset.html +1 -1
  256. data/rdoc/RubyXL/OutlineProperties.html +1 -1
  257. data/rdoc/RubyXL/PageMargins.html +1 -1
  258. data/rdoc/RubyXL/PageSetup.html +1 -1
  259. data/rdoc/RubyXL/PageSetupProperties.html +1 -1
  260. data/rdoc/RubyXL/Pane.html +1 -1
  261. data/rdoc/RubyXL/Parser.html +1 -1
  262. data/rdoc/RubyXL/PatternFill.html +1 -1
  263. data/rdoc/RubyXL/PhoneticProperties.html +1 -1
  264. data/rdoc/RubyXL/PhoneticRun.html +1 -1
  265. data/rdoc/RubyXL/PivotArea.html +1 -1
  266. data/rdoc/RubyXL/PivotCache.html +1 -1
  267. data/rdoc/RubyXL/PivotCacheDefinitionFile.html +1 -1
  268. data/rdoc/RubyXL/PivotCacheRecordsFile.html +1 -1
  269. data/rdoc/RubyXL/PivotCaches.html +1 -1
  270. data/rdoc/RubyXL/PivotReference.html +1 -1
  271. data/rdoc/RubyXL/PivotReferences.html +1 -1
  272. data/rdoc/RubyXL/PivotTableFile.html +1 -1
  273. data/rdoc/RubyXL/PivotTableSelection.html +1 -1
  274. data/rdoc/RubyXL/PresetGeometry.html +1 -1
  275. data/rdoc/RubyXL/PrintOptions.html +1 -1
  276. data/rdoc/RubyXL/PrinterSettingsFile.html +1 -1
  277. data/rdoc/RubyXL/ProtectedRange.html +1 -1
  278. data/rdoc/RubyXL/ProtectedRanges.html +1 -1
  279. data/rdoc/RubyXL/Protection.html +1 -1
  280. data/rdoc/RubyXL/RID.html +1 -1
  281. data/rdoc/RubyXL/RawOOXML.html +1 -1
  282. data/rdoc/RubyXL/Reference.html +1 -1
  283. data/rdoc/RubyXL/Relationship.html +1 -1
  284. data/rdoc/RubyXL/RelationshipSupport.html +1 -1
  285. data/rdoc/RubyXL/RelationshipSupport/ClassMehods.html +1 -1
  286. data/rdoc/RubyXL/RichText.html +1 -1
  287. data/rdoc/RubyXL/RichTextRun.html +1 -1
  288. data/rdoc/RubyXL/Row.html +1 -1
  289. data/rdoc/RubyXL/RunProperties.html +1 -1
  290. data/rdoc/RubyXL/Scenario.html +1 -1
  291. data/rdoc/RubyXL/Scenarios.html +1 -1
  292. data/rdoc/RubyXL/Selection.html +1 -1
  293. data/rdoc/RubyXL/ShapeGuide.html +1 -1
  294. data/rdoc/RubyXL/ShapeTextRectangle.html +1 -1
  295. data/rdoc/RubyXL/SharedStringsTable.html +1 -1
  296. data/rdoc/RubyXL/Sheet.html +1 -1
  297. data/rdoc/RubyXL/SheetCalculationProperties.html +1 -1
  298. data/rdoc/RubyXL/SheetData.html +1 -1
  299. data/rdoc/RubyXL/Sheets.html +1 -1
  300. data/rdoc/RubyXL/SlicerCacheFile.html +1 -1
  301. data/rdoc/RubyXL/SlicerFile.html +1 -1
  302. data/rdoc/RubyXL/SmartTagProperties.html +1 -1
  303. data/rdoc/RubyXL/SmartTagType.html +1 -1
  304. data/rdoc/RubyXL/SmartTagTypes.html +1 -1
  305. data/rdoc/RubyXL/SmartTags.html +1 -1
  306. data/rdoc/RubyXL/SortCondition.html +1 -1
  307. data/rdoc/RubyXL/SortState.html +1 -1
  308. data/rdoc/RubyXL/Sqref.html +1 -1
  309. data/rdoc/RubyXL/Stop.html +1 -1
  310. data/rdoc/RubyXL/StringNode.html +1 -1
  311. data/rdoc/RubyXL/StringNodeW3C.html +1 -1
  312. data/rdoc/RubyXL/StringValue.html +1 -1
  313. data/rdoc/RubyXL/Stylesheet.html +1 -1
  314. data/rdoc/RubyXL/TableFile.html +1 -1
  315. data/rdoc/RubyXL/TableParts.html +1 -1
  316. data/rdoc/RubyXL/TableStyle.html +1 -1
  317. data/rdoc/RubyXL/TableStyles.html +1 -1
  318. data/rdoc/RubyXL/Text.html +1 -1
  319. data/rdoc/RubyXL/Theme.html +1 -1
  320. data/rdoc/RubyXL/ThemeElements.html +1 -1
  321. data/rdoc/RubyXL/ThumbnailFile.html +1 -1
  322. data/rdoc/RubyXL/Top10.html +1 -1
  323. data/rdoc/RubyXL/VMLDrawingFile.html +1 -1
  324. data/rdoc/RubyXL/Variant.html +1 -1
  325. data/rdoc/RubyXL/Vector.html +1 -1
  326. data/rdoc/RubyXL/VectorValue.html +1 -1
  327. data/rdoc/RubyXL/VisualProperties.html +1 -1
  328. data/rdoc/RubyXL/WebPublishObject.html +1 -1
  329. data/rdoc/RubyXL/WebPublishObjects.html +1 -1
  330. data/rdoc/RubyXL/WebPublishingItem.html +1 -1
  331. data/rdoc/RubyXL/WebPublishingItems.html +1 -1
  332. data/rdoc/RubyXL/WebPublishingProperties.html +1 -1
  333. data/rdoc/RubyXL/Workbook.html +1 -1
  334. data/rdoc/RubyXL/WorkbookConvenienceMethods.html +1 -1
  335. data/rdoc/RubyXL/WorkbookProperties.html +1 -1
  336. data/rdoc/RubyXL/WorkbookProtection.html +1 -1
  337. data/rdoc/RubyXL/WorkbookRoot.html +1 -1
  338. data/rdoc/RubyXL/WorkbookView.html +1 -1
  339. data/rdoc/RubyXL/WorkbookViews.html +1 -1
  340. data/rdoc/RubyXL/Worksheet.html +1 -1
  341. data/rdoc/RubyXL/WorksheetConvenienceMethods.html +159 -50
  342. data/rdoc/RubyXL/WorksheetDimensions.html +1 -1
  343. data/rdoc/RubyXL/WorksheetFormatProperties.html +1 -1
  344. data/rdoc/RubyXL/WorksheetProperties.html +1 -1
  345. data/rdoc/RubyXL/WorksheetProtection.html +1 -1
  346. data/rdoc/RubyXL/WorksheetView.html +1 -1
  347. data/rdoc/RubyXL/WorksheetViews.html +1 -1
  348. data/rdoc/RubyXL/XF.html +1 -1
  349. data/rdoc/created.rid +4 -4
  350. data/rdoc/index.html +2 -2
  351. data/rdoc/js/navigation.js.gz +0 -0
  352. data/rdoc/js/search_index.js +1 -1
  353. data/rdoc/js/search_index.js.gz +0 -0
  354. data/rdoc/js/searcher.js.gz +0 -0
  355. data/rdoc/table_of_contents.html +180 -180
  356. data/rubyXL.gemspec +3 -3
  357. data/spec/lib/worksheet_spec.rb +3 -0
  358. metadata +2 -2
@@ -4,7 +4,7 @@
4
4
  <head>
5
5
  <meta charset="UTF-8">
6
6
 
7
- <title>class RubyXL::VectorValue - rubyXL 3.3.6</title>
7
+ <title>class RubyXL::VectorValue - rubyXL 3.3.7</title>
8
8
 
9
9
  <script type="text/javascript">
10
10
  var rdoc_rel_prefix = "../";
@@ -4,7 +4,7 @@
4
4
  <head>
5
5
  <meta charset="UTF-8">
6
6
 
7
- <title>class RubyXL::VisualProperties - rubyXL 3.3.6</title>
7
+ <title>class RubyXL::VisualProperties - rubyXL 3.3.7</title>
8
8
 
9
9
  <script type="text/javascript">
10
10
  var rdoc_rel_prefix = "../";
@@ -4,7 +4,7 @@
4
4
  <head>
5
5
  <meta charset="UTF-8">
6
6
 
7
- <title>class RubyXL::WebPublishObject - rubyXL 3.3.6</title>
7
+ <title>class RubyXL::WebPublishObject - rubyXL 3.3.7</title>
8
8
 
9
9
  <script type="text/javascript">
10
10
  var rdoc_rel_prefix = "../";
@@ -4,7 +4,7 @@
4
4
  <head>
5
5
  <meta charset="UTF-8">
6
6
 
7
- <title>class RubyXL::WebPublishObjects - rubyXL 3.3.6</title>
7
+ <title>class RubyXL::WebPublishObjects - rubyXL 3.3.7</title>
8
8
 
9
9
  <script type="text/javascript">
10
10
  var rdoc_rel_prefix = "../";
@@ -4,7 +4,7 @@
4
4
  <head>
5
5
  <meta charset="UTF-8">
6
6
 
7
- <title>class RubyXL::WebPublishingItem - rubyXL 3.3.6</title>
7
+ <title>class RubyXL::WebPublishingItem - rubyXL 3.3.7</title>
8
8
 
9
9
  <script type="text/javascript">
10
10
  var rdoc_rel_prefix = "../";
@@ -4,7 +4,7 @@
4
4
  <head>
5
5
  <meta charset="UTF-8">
6
6
 
7
- <title>class RubyXL::WebPublishingItems - rubyXL 3.3.6</title>
7
+ <title>class RubyXL::WebPublishingItems - rubyXL 3.3.7</title>
8
8
 
9
9
  <script type="text/javascript">
10
10
  var rdoc_rel_prefix = "../";
@@ -4,7 +4,7 @@
4
4
  <head>
5
5
  <meta charset="UTF-8">
6
6
 
7
- <title>class RubyXL::WebPublishingProperties - rubyXL 3.3.6</title>
7
+ <title>class RubyXL::WebPublishingProperties - rubyXL 3.3.7</title>
8
8
 
9
9
  <script type="text/javascript">
10
10
  var rdoc_rel_prefix = "../";
@@ -4,7 +4,7 @@
4
4
  <head>
5
5
  <meta charset="UTF-8">
6
6
 
7
- <title>class RubyXL::Workbook - rubyXL 3.3.6</title>
7
+ <title>class RubyXL::Workbook - rubyXL 3.3.7</title>
8
8
 
9
9
  <script type="text/javascript">
10
10
  var rdoc_rel_prefix = "../";
@@ -4,7 +4,7 @@
4
4
  <head>
5
5
  <meta charset="UTF-8">
6
6
 
7
- <title>module RubyXL::WorkbookConvenienceMethods - rubyXL 3.3.6</title>
7
+ <title>module RubyXL::WorkbookConvenienceMethods - rubyXL 3.3.7</title>
8
8
 
9
9
  <script type="text/javascript">
10
10
  var rdoc_rel_prefix = "../";
@@ -4,7 +4,7 @@
4
4
  <head>
5
5
  <meta charset="UTF-8">
6
6
 
7
- <title>class RubyXL::WorkbookProperties - rubyXL 3.3.6</title>
7
+ <title>class RubyXL::WorkbookProperties - rubyXL 3.3.7</title>
8
8
 
9
9
  <script type="text/javascript">
10
10
  var rdoc_rel_prefix = "../";
@@ -4,7 +4,7 @@
4
4
  <head>
5
5
  <meta charset="UTF-8">
6
6
 
7
- <title>class RubyXL::WorkbookProtection - rubyXL 3.3.6</title>
7
+ <title>class RubyXL::WorkbookProtection - rubyXL 3.3.7</title>
8
8
 
9
9
  <script type="text/javascript">
10
10
  var rdoc_rel_prefix = "../";
@@ -4,7 +4,7 @@
4
4
  <head>
5
5
  <meta charset="UTF-8">
6
6
 
7
- <title>class RubyXL::WorkbookRoot - rubyXL 3.3.6</title>
7
+ <title>class RubyXL::WorkbookRoot - rubyXL 3.3.7</title>
8
8
 
9
9
  <script type="text/javascript">
10
10
  var rdoc_rel_prefix = "../";
@@ -4,7 +4,7 @@
4
4
  <head>
5
5
  <meta charset="UTF-8">
6
6
 
7
- <title>class RubyXL::WorkbookView - rubyXL 3.3.6</title>
7
+ <title>class RubyXL::WorkbookView - rubyXL 3.3.7</title>
8
8
 
9
9
  <script type="text/javascript">
10
10
  var rdoc_rel_prefix = "../";
@@ -4,7 +4,7 @@
4
4
  <head>
5
5
  <meta charset="UTF-8">
6
6
 
7
- <title>class RubyXL::WorkbookViews - rubyXL 3.3.6</title>
7
+ <title>class RubyXL::WorkbookViews - rubyXL 3.3.7</title>
8
8
 
9
9
  <script type="text/javascript">
10
10
  var rdoc_rel_prefix = "../";
@@ -4,7 +4,7 @@
4
4
  <head>
5
5
  <meta charset="UTF-8">
6
6
 
7
- <title>class RubyXL::Worksheet - rubyXL 3.3.6</title>
7
+ <title>class RubyXL::Worksheet - rubyXL 3.3.7</title>
8
8
 
9
9
  <script type="text/javascript">
10
10
  var rdoc_rel_prefix = "../";
@@ -4,7 +4,7 @@
4
4
  <head>
5
5
  <meta charset="UTF-8">
6
6
 
7
- <title>module RubyXL::WorksheetConvenienceMethods - rubyXL 3.3.6</title>
7
+ <title>module RubyXL::WorksheetConvenienceMethods - rubyXL 3.3.7</title>
8
8
 
9
9
  <script type="text/javascript">
10
10
  var rdoc_rel_prefix = "../";
@@ -111,6 +111,8 @@
111
111
 
112
112
  <li ><a href="#method-i-change_row_vertical_alignment">#change_row_vertical_alignment</a>
113
113
 
114
+ <li ><a href="#method-i-delete_cell">#delete_cell</a>
115
+
114
116
  <li ><a href="#method-i-get_column_alignment">#get_column_alignment</a>
115
117
 
116
118
  <li ><a href="#method-i-get_column_border">#get_column_border</a>
@@ -145,6 +147,8 @@
145
147
 
146
148
  <li ><a href="#method-i-get_row_vertical_alignment">#get_row_vertical_alignment</a>
147
149
 
150
+ <li ><a href="#method-i-insert_cell">#insert_cell</a>
151
+
148
152
  <li ><a href="#method-i-is_column_bolded">#is_column_bolded</a>
149
153
 
150
154
  <li ><a href="#method-i-is_column_italicized">#is_column_italicized</a>
@@ -214,7 +218,7 @@
214
218
 
215
219
 
216
220
  <div class="method-source-code" id="change_column_alignment-source">
217
- <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 509</span>
221
+ <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 557</span>
218
222
  <span class="ruby-keyword">def</span> <span class="ruby-identifier">change_column_alignment</span>(<span class="ruby-identifier">column_index</span>, <span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>)
219
223
  <span class="ruby-identifier">validate_workbook</span>
220
224
  <span class="ruby-identifier">ensure_cell_exists</span>(<span class="ruby-value">0</span>, <span class="ruby-identifier">column_index</span>)
@@ -258,7 +262,7 @@
258
262
 
259
263
 
260
264
  <div class="method-source-code" id="change_column_bold-source">
261
- <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 455</span>
265
+ <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 503</span>
262
266
  <span class="ruby-keyword">def</span> <span class="ruby-identifier">change_column_bold</span>(<span class="ruby-identifier">column_index</span>, <span class="ruby-identifier">bolded</span> = <span class="ruby-keyword">false</span>)
263
267
  <span class="ruby-identifier">xf</span> = <span class="ruby-identifier">get_col_xf</span>(<span class="ruby-identifier">column_index</span>)
264
268
  <span class="ruby-identifier">font</span> = <span class="ruby-ivar">@workbook</span>.<span class="ruby-identifier">fonts</span>[<span class="ruby-identifier">xf</span>.<span class="ruby-identifier">font_id</span>].<span class="ruby-identifier">dup</span>
@@ -294,7 +298,7 @@
294
298
 
295
299
 
296
300
  <div class="method-source-code" id="change_column_border-source">
297
- <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 484</span>
301
+ <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 532</span>
298
302
  <span class="ruby-keyword">def</span> <span class="ruby-identifier">change_column_border</span>(<span class="ruby-identifier">column_index</span>, <span class="ruby-identifier">direction</span>, <span class="ruby-identifier">weight</span>)
299
303
  <span class="ruby-identifier">validate_workbook</span>
300
304
  <span class="ruby-identifier">ensure_cell_exists</span>(<span class="ruby-value">0</span>, <span class="ruby-identifier">column_index</span>)
@@ -335,7 +339,7 @@
335
339
 
336
340
 
337
341
  <div class="method-source-code" id="change_column_font_color-source">
338
- <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 439</span>
342
+ <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 487</span>
339
343
  <span class="ruby-keyword">def</span> <span class="ruby-identifier">change_column_font_color</span>(<span class="ruby-identifier">column_index</span>, <span class="ruby-identifier">font_color</span>=<span class="ruby-string">&#39;000000&#39;</span>)
340
344
  <span class="ruby-constant">Color</span>.<span class="ruby-identifier">validate_color</span>(<span class="ruby-identifier">font_color</span>)
341
345
 
@@ -373,7 +377,7 @@
373
377
 
374
378
 
375
379
  <div class="method-source-code" id="change_column_font_name-source">
376
- <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 425</span>
380
+ <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 473</span>
377
381
  <span class="ruby-keyword">def</span> <span class="ruby-identifier">change_column_font_name</span>(<span class="ruby-identifier">column_index</span> = <span class="ruby-value">0</span>, <span class="ruby-identifier">font_name</span> = <span class="ruby-string">&#39;Verdana&#39;</span>)
378
382
  <span class="ruby-identifier">xf</span> = <span class="ruby-identifier">get_col_xf</span>(<span class="ruby-identifier">column_index</span>)
379
383
  <span class="ruby-identifier">font</span> = <span class="ruby-ivar">@workbook</span>.<span class="ruby-identifier">fonts</span>[<span class="ruby-identifier">xf</span>.<span class="ruby-identifier">font_id</span>].<span class="ruby-identifier">dup</span>
@@ -409,7 +413,7 @@
409
413
 
410
414
 
411
415
  <div class="method-source-code" id="change_column_font_size-source">
412
- <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 432</span>
416
+ <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 480</span>
413
417
  <span class="ruby-keyword">def</span> <span class="ruby-identifier">change_column_font_size</span>(<span class="ruby-identifier">column_index</span>, <span class="ruby-identifier">font_size</span>=<span class="ruby-value">10</span>)
414
418
  <span class="ruby-identifier">xf</span> = <span class="ruby-identifier">get_col_xf</span>(<span class="ruby-identifier">column_index</span>)
415
419
  <span class="ruby-identifier">font</span> = <span class="ruby-ivar">@workbook</span>.<span class="ruby-identifier">fonts</span>[<span class="ruby-identifier">xf</span>.<span class="ruby-identifier">font_id</span>].<span class="ruby-identifier">dup</span>
@@ -445,7 +449,7 @@
445
449
 
446
450
 
447
451
  <div class="method-source-code" id="change_column_horizontal_alignment-source">
448
- <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 476</span>
452
+ <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 524</span>
449
453
  <span class="ruby-keyword">def</span> <span class="ruby-identifier">change_column_horizontal_alignment</span>(<span class="ruby-identifier">column_index</span>, <span class="ruby-identifier">alignment</span> = <span class="ruby-string">&#39;center&#39;</span>)
450
454
  <span class="ruby-identifier">change_column_alignment</span>(<span class="ruby-identifier">column_index</span>) { <span class="ruby-operator">|</span><span class="ruby-identifier">a</span><span class="ruby-operator">|</span> <span class="ruby-identifier">a</span>.<span class="ruby-identifier">horizontal</span> = <span class="ruby-identifier">alignment</span> }
451
455
  <span class="ruby-keyword">end</span></pre>
@@ -478,7 +482,7 @@
478
482
 
479
483
 
480
484
  <div class="method-source-code" id="change_column_italics-source">
481
- <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 448</span>
485
+ <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 496</span>
482
486
  <span class="ruby-keyword">def</span> <span class="ruby-identifier">change_column_italics</span>(<span class="ruby-identifier">column_index</span>, <span class="ruby-identifier">italicized</span> = <span class="ruby-keyword">false</span>)
483
487
  <span class="ruby-identifier">xf</span> = <span class="ruby-identifier">get_col_xf</span>(<span class="ruby-identifier">column_index</span>)
484
488
  <span class="ruby-identifier">font</span> = <span class="ruby-ivar">@workbook</span>.<span class="ruby-identifier">fonts</span>[<span class="ruby-identifier">xf</span>.<span class="ruby-identifier">font_id</span>].<span class="ruby-identifier">dup</span>
@@ -514,7 +518,7 @@
514
518
 
515
519
 
516
520
  <div class="method-source-code" id="change_column_strikethrough-source">
517
- <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 469</span>
521
+ <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 517</span>
518
522
  <span class="ruby-keyword">def</span> <span class="ruby-identifier">change_column_strikethrough</span>(<span class="ruby-identifier">column_index</span>, <span class="ruby-identifier">struckthrough</span>=<span class="ruby-keyword">false</span>)
519
523
  <span class="ruby-identifier">xf</span> = <span class="ruby-identifier">get_col_xf</span>(<span class="ruby-identifier">column_index</span>)
520
524
  <span class="ruby-identifier">font</span> = <span class="ruby-ivar">@workbook</span>.<span class="ruby-identifier">fonts</span>[<span class="ruby-identifier">xf</span>.<span class="ruby-identifier">font_id</span>].<span class="ruby-identifier">dup</span>
@@ -550,7 +554,7 @@
550
554
 
551
555
 
552
556
  <div class="method-source-code" id="change_column_underline-source">
553
- <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 462</span>
557
+ <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 510</span>
554
558
  <span class="ruby-keyword">def</span> <span class="ruby-identifier">change_column_underline</span>(<span class="ruby-identifier">column_index</span>, <span class="ruby-identifier">underlined</span> = <span class="ruby-keyword">false</span>)
555
559
  <span class="ruby-identifier">xf</span> = <span class="ruby-identifier">get_col_xf</span>(<span class="ruby-identifier">column_index</span>)
556
560
  <span class="ruby-identifier">font</span> = <span class="ruby-ivar">@workbook</span>.<span class="ruby-identifier">fonts</span>[<span class="ruby-identifier">xf</span>.<span class="ruby-identifier">font_id</span>].<span class="ruby-identifier">dup</span>
@@ -586,7 +590,7 @@
586
590
 
587
591
 
588
592
  <div class="method-source-code" id="change_column_vertical_alignment-source">
589
- <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 480</span>
593
+ <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 528</span>
590
594
  <span class="ruby-keyword">def</span> <span class="ruby-identifier">change_column_vertical_alignment</span>(<span class="ruby-identifier">column_index</span>, <span class="ruby-identifier">alignment</span> = <span class="ruby-string">&#39;center&#39;</span>)
591
595
  <span class="ruby-identifier">change_column_alignment</span>(<span class="ruby-identifier">column_index</span>) { <span class="ruby-operator">|</span><span class="ruby-identifier">a</span><span class="ruby-operator">|</span> <span class="ruby-identifier">a</span>.<span class="ruby-identifier">vertical</span> = <span class="ruby-identifier">alignment</span> }
592
596
  <span class="ruby-keyword">end</span></pre>
@@ -619,7 +623,7 @@
619
623
 
620
624
 
621
625
  <div class="method-source-code" id="change_row_alignment-source">
622
- <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 496</span>
626
+ <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 544</span>
623
627
  <span class="ruby-keyword">def</span> <span class="ruby-identifier">change_row_alignment</span>(<span class="ruby-identifier">row</span>, <span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>)
624
628
  <span class="ruby-identifier">validate_workbook</span>
625
629
  <span class="ruby-identifier">validate_nonnegative</span>(<span class="ruby-identifier">row</span>)
@@ -661,7 +665,7 @@
661
665
 
662
666
 
663
667
  <div class="method-source-code" id="change_row_bold-source">
664
- <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 395</span>
668
+ <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 443</span>
665
669
  <span class="ruby-keyword">def</span> <span class="ruby-identifier">change_row_bold</span>(<span class="ruby-identifier">row</span> = <span class="ruby-value">0</span>, <span class="ruby-identifier">bolded</span> = <span class="ruby-keyword">false</span>)
666
670
  <span class="ruby-identifier">ensure_cell_exists</span>(<span class="ruby-identifier">row</span>)
667
671
  <span class="ruby-identifier">font</span> = <span class="ruby-identifier">row_font</span>(<span class="ruby-identifier">row</span>).<span class="ruby-identifier">dup</span>
@@ -697,7 +701,7 @@
697
701
 
698
702
 
699
703
  <div class="method-source-code" id="change_row_border-source">
700
- <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 346</span>
704
+ <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 394</span>
701
705
  <span class="ruby-keyword">def</span> <span class="ruby-identifier">change_row_border</span>(<span class="ruby-identifier">row</span>, <span class="ruby-identifier">direction</span>, <span class="ruby-identifier">weight</span>)
702
706
  <span class="ruby-identifier">validate_workbook</span>
703
707
  <span class="ruby-identifier">ensure_cell_exists</span>(<span class="ruby-identifier">row</span>)
@@ -737,7 +741,7 @@
737
741
 
738
742
 
739
743
  <div class="method-source-code" id="change_row_fill-source">
740
- <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 357</span>
744
+ <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 405</span>
741
745
  <span class="ruby-keyword">def</span> <span class="ruby-identifier">change_row_fill</span>(<span class="ruby-identifier">row_index</span> = <span class="ruby-value">0</span>, <span class="ruby-identifier">rgb</span> = <span class="ruby-string">&#39;ffffff&#39;</span>)
742
746
  <span class="ruby-identifier">validate_workbook</span>
743
747
  <span class="ruby-identifier">ensure_cell_exists</span>(<span class="ruby-identifier">row_index</span>)
@@ -775,7 +779,7 @@
775
779
 
776
780
 
777
781
  <div class="method-source-code" id="change_row_font_color-source">
778
- <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 380</span>
782
+ <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 428</span>
779
783
  <span class="ruby-keyword">def</span> <span class="ruby-identifier">change_row_font_color</span>(<span class="ruby-identifier">row</span> = <span class="ruby-value">0</span>, <span class="ruby-identifier">font_color</span> = <span class="ruby-string">&#39;000000&#39;</span>)
780
784
  <span class="ruby-identifier">ensure_cell_exists</span>(<span class="ruby-identifier">row</span>)
781
785
  <span class="ruby-constant">Color</span>.<span class="ruby-identifier">validate_color</span>(<span class="ruby-identifier">font_color</span>)
@@ -812,7 +816,7 @@
812
816
 
813
817
 
814
818
  <div class="method-source-code" id="change_row_font_name-source">
815
- <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 366</span>
819
+ <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 414</span>
816
820
  <span class="ruby-keyword">def</span> <span class="ruby-identifier">change_row_font_name</span>(<span class="ruby-identifier">row</span> = <span class="ruby-value">0</span>, <span class="ruby-identifier">font_name</span> = <span class="ruby-string">&#39;Verdana&#39;</span>)
817
821
  <span class="ruby-identifier">ensure_cell_exists</span>(<span class="ruby-identifier">row</span>)
818
822
  <span class="ruby-identifier">font</span> = <span class="ruby-identifier">row_font</span>(<span class="ruby-identifier">row</span>).<span class="ruby-identifier">dup</span>
@@ -848,7 +852,7 @@
848
852
 
849
853
 
850
854
  <div class="method-source-code" id="change_row_font_size-source">
851
- <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 373</span>
855
+ <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 421</span>
852
856
  <span class="ruby-keyword">def</span> <span class="ruby-identifier">change_row_font_size</span>(<span class="ruby-identifier">row</span> = <span class="ruby-value">0</span>, <span class="ruby-identifier">font_size</span>=<span class="ruby-value">10</span>)
853
857
  <span class="ruby-identifier">ensure_cell_exists</span>(<span class="ruby-identifier">row</span>)
854
858
  <span class="ruby-identifier">font</span> = <span class="ruby-identifier">row_font</span>(<span class="ruby-identifier">row</span>).<span class="ruby-identifier">dup</span>
@@ -884,7 +888,7 @@
884
888
 
885
889
 
886
890
  <div class="method-source-code" id="change_row_height-source">
887
- <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 416</span>
891
+ <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 464</span>
888
892
  <span class="ruby-keyword">def</span> <span class="ruby-identifier">change_row_height</span>(<span class="ruby-identifier">row</span> = <span class="ruby-value">0</span>, <span class="ruby-identifier">height</span> = <span class="ruby-value">10</span>)
889
893
  <span class="ruby-identifier">validate_workbook</span>
890
894
  <span class="ruby-identifier">ensure_cell_exists</span>(<span class="ruby-identifier">row</span>)
@@ -922,7 +926,7 @@
922
926
 
923
927
 
924
928
  <div class="method-source-code" id="change_row_horizontal_alignment-source">
925
- <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 334</span>
929
+ <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 382</span>
926
930
  <span class="ruby-keyword">def</span> <span class="ruby-identifier">change_row_horizontal_alignment</span>(<span class="ruby-identifier">row</span> = <span class="ruby-value">0</span>, <span class="ruby-identifier">alignment</span> = <span class="ruby-string">&#39;center&#39;</span>)
927
931
  <span class="ruby-identifier">validate_workbook</span>
928
932
  <span class="ruby-identifier">validate_nonnegative</span>(<span class="ruby-identifier">row</span>)
@@ -957,7 +961,7 @@
957
961
 
958
962
 
959
963
  <div class="method-source-code" id="change_row_italics-source">
960
- <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 388</span>
964
+ <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 436</span>
961
965
  <span class="ruby-keyword">def</span> <span class="ruby-identifier">change_row_italics</span>(<span class="ruby-identifier">row</span> = <span class="ruby-value">0</span>, <span class="ruby-identifier">italicized</span> = <span class="ruby-keyword">false</span>)
962
966
  <span class="ruby-identifier">ensure_cell_exists</span>(<span class="ruby-identifier">row</span>)
963
967
  <span class="ruby-identifier">font</span> = <span class="ruby-identifier">row_font</span>(<span class="ruby-identifier">row</span>).<span class="ruby-identifier">dup</span>
@@ -993,7 +997,7 @@
993
997
 
994
998
 
995
999
  <div class="method-source-code" id="change_row_strikethrough-source">
996
- <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 409</span>
1000
+ <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 457</span>
997
1001
  <span class="ruby-keyword">def</span> <span class="ruby-identifier">change_row_strikethrough</span>(<span class="ruby-identifier">row</span> = <span class="ruby-value">0</span>, <span class="ruby-identifier">struckthrough</span>=<span class="ruby-keyword">false</span>)
998
1002
  <span class="ruby-identifier">ensure_cell_exists</span>(<span class="ruby-identifier">row</span>)
999
1003
  <span class="ruby-identifier">font</span> = <span class="ruby-identifier">row_font</span>(<span class="ruby-identifier">row</span>).<span class="ruby-identifier">dup</span>
@@ -1029,7 +1033,7 @@
1029
1033
 
1030
1034
 
1031
1035
  <div class="method-source-code" id="change_row_underline-source">
1032
- <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 402</span>
1036
+ <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 450</span>
1033
1037
  <span class="ruby-keyword">def</span> <span class="ruby-identifier">change_row_underline</span>(<span class="ruby-identifier">row</span> = <span class="ruby-value">0</span>, <span class="ruby-identifier">underlined</span>=<span class="ruby-keyword">false</span>)
1034
1038
  <span class="ruby-identifier">ensure_cell_exists</span>(<span class="ruby-identifier">row</span>)
1035
1039
  <span class="ruby-identifier">font</span> = <span class="ruby-identifier">row_font</span>(<span class="ruby-identifier">row</span>).<span class="ruby-identifier">dup</span>
@@ -1065,7 +1069,7 @@
1065
1069
 
1066
1070
 
1067
1071
  <div class="method-source-code" id="change_row_vertical_alignment-source">
1068
- <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 340</span>
1072
+ <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 388</span>
1069
1073
  <span class="ruby-keyword">def</span> <span class="ruby-identifier">change_row_vertical_alignment</span>(<span class="ruby-identifier">row</span> = <span class="ruby-value">0</span>, <span class="ruby-identifier">alignment</span> = <span class="ruby-string">&#39;center&#39;</span>)
1070
1074
  <span class="ruby-identifier">validate_workbook</span>
1071
1075
  <span class="ruby-identifier">validate_nonnegative</span>(<span class="ruby-identifier">row</span>)
@@ -1078,6 +1082,62 @@
1078
1082
 
1079
1083
 
1080
1084
 
1085
+ </div>
1086
+
1087
+
1088
+ <div id="method-i-delete_cell" class="method-detail ">
1089
+
1090
+ <div class="method-heading">
1091
+ <span class="method-name">delete_cell</span><span
1092
+ class="method-args">(row_index = 0, column_index=0, shift=nil)</span>
1093
+
1094
+ <span class="method-click-advice">click to toggle source</span>
1095
+
1096
+ </div>
1097
+
1098
+
1099
+ <div class="method-description">
1100
+
1101
+ <p>by default, only sets cell to nil if :left is specified, method will shift
1102
+ row contents to the right of the deleted cell to the left if :up is
1103
+ specified, method will shift column contents below the deleted cell upward</p>
1104
+
1105
+
1106
+
1107
+
1108
+ <div class="method-source-code" id="delete_cell-source">
1109
+ <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 210</span>
1110
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">delete_cell</span>(<span class="ruby-identifier">row_index</span> = <span class="ruby-value">0</span>, <span class="ruby-identifier">column_index</span>=<span class="ruby-value">0</span>, <span class="ruby-identifier">shift</span>=<span class="ruby-keyword">nil</span>)
1111
+ <span class="ruby-identifier">validate_workbook</span>
1112
+ <span class="ruby-identifier">validate_nonnegative</span>(<span class="ruby-identifier">row_index</span>)
1113
+ <span class="ruby-identifier">validate_nonnegative</span>(<span class="ruby-identifier">column_index</span>)
1114
+
1115
+ <span class="ruby-identifier">row</span> = <span class="ruby-identifier">sheet_data</span>[<span class="ruby-identifier">row_index</span>]
1116
+ <span class="ruby-identifier">old_cell</span> = <span class="ruby-identifier">row</span> <span class="ruby-operator">&amp;&amp;</span> <span class="ruby-identifier">row</span>[<span class="ruby-identifier">column_index</span>]
1117
+
1118
+ <span class="ruby-keyword">case</span> <span class="ruby-identifier">shift</span>
1119
+ <span class="ruby-keyword">when</span> <span class="ruby-keyword">nil</span> <span class="ruby-keyword">then</span>
1120
+ <span class="ruby-identifier">row</span>.<span class="ruby-identifier">cells</span>[<span class="ruby-identifier">column_index</span>] = <span class="ruby-keyword">nil</span> <span class="ruby-keyword">if</span> <span class="ruby-identifier">row</span>
1121
+ <span class="ruby-keyword">when</span> <span class="ruby-value">:left</span> <span class="ruby-keyword">then</span>
1122
+ <span class="ruby-identifier">row</span>.<span class="ruby-identifier">delete_cell_shift_left</span>(<span class="ruby-identifier">column_index</span>) <span class="ruby-keyword">if</span> <span class="ruby-identifier">row</span>
1123
+ <span class="ruby-keyword">when</span> <span class="ruby-value">:up</span> <span class="ruby-keyword">then</span>
1124
+ (<span class="ruby-identifier">row_index</span><span class="ruby-operator">...</span>(<span class="ruby-identifier">sheet_data</span>.<span class="ruby-identifier">size</span> <span class="ruby-operator">-</span> <span class="ruby-value">1</span>)).<span class="ruby-identifier">each</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">index</span><span class="ruby-operator">|</span>
1125
+ <span class="ruby-identifier">c</span> = <span class="ruby-identifier">sheet_data</span>.<span class="ruby-identifier">rows</span>[<span class="ruby-identifier">index</span>].<span class="ruby-identifier">cells</span>[<span class="ruby-identifier">column_index</span>] = <span class="ruby-identifier">sheet_data</span>.<span class="ruby-identifier">rows</span>[<span class="ruby-identifier">index</span> <span class="ruby-operator">+</span> <span class="ruby-value">1</span>].<span class="ruby-identifier">cells</span>[<span class="ruby-identifier">column_index</span>]
1126
+ <span class="ruby-identifier">c</span>.<span class="ruby-identifier">row</span> <span class="ruby-operator">-=</span> <span class="ruby-value">1</span> <span class="ruby-keyword">if</span> <span class="ruby-identifier">c</span>.<span class="ruby-identifier">is_a?</span>(<span class="ruby-constant">Cell</span>)
1127
+ }
1128
+ <span class="ruby-keyword">else</span>
1129
+ <span class="ruby-identifier">raise</span> <span class="ruby-string">&#39;invalid shift option&#39;</span>
1130
+ <span class="ruby-keyword">end</span>
1131
+
1132
+ <span class="ruby-keyword">return</span> <span class="ruby-identifier">old_cell</span>
1133
+ <span class="ruby-keyword">end</span></pre>
1134
+ </div>
1135
+
1136
+ </div>
1137
+
1138
+
1139
+
1140
+
1081
1141
  </div>
1082
1142
 
1083
1143
 
@@ -1100,7 +1160,7 @@
1100
1160
 
1101
1161
 
1102
1162
  <div class="method-source-code" id="get_column_alignment-source">
1103
- <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 326</span>
1163
+ <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 374</span>
1104
1164
  <span class="ruby-keyword">def</span> <span class="ruby-identifier">get_column_alignment</span>(<span class="ruby-identifier">col</span>, <span class="ruby-identifier">type</span>)
1105
1165
  <span class="ruby-identifier">validate_workbook</span>
1106
1166
  <span class="ruby-identifier">validate_nonnegative</span>(<span class="ruby-identifier">col</span>)
@@ -1137,7 +1197,7 @@
1137
1197
 
1138
1198
 
1139
1199
  <div class="method-source-code" id="get_column_border-source">
1140
- <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 317</span>
1200
+ <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 365</span>
1141
1201
  <span class="ruby-keyword">def</span> <span class="ruby-identifier">get_column_border</span>(<span class="ruby-identifier">col</span>, <span class="ruby-identifier">border_direction</span>)
1142
1202
  <span class="ruby-identifier">validate_workbook</span>
1143
1203
  <span class="ruby-identifier">validate_nonnegative</span>(<span class="ruby-identifier">col</span>)
@@ -1175,7 +1235,7 @@
1175
1235
 
1176
1236
 
1177
1237
  <div class="method-source-code" id="get_column_fill-source">
1178
- <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 310</span>
1238
+ <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 358</span>
1179
1239
  <span class="ruby-keyword">def</span> <span class="ruby-identifier">get_column_fill</span>(<span class="ruby-identifier">col</span>=<span class="ruby-value">0</span>)
1180
1240
  <span class="ruby-identifier">validate_workbook</span>
1181
1241
  <span class="ruby-identifier">validate_nonnegative</span>(<span class="ruby-identifier">col</span>)
@@ -1211,7 +1271,7 @@
1211
1271
 
1212
1272
 
1213
1273
  <div class="method-source-code" id="get_column_font_color-source">
1214
- <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 268</span>
1274
+ <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 316</span>
1215
1275
  <span class="ruby-keyword">def</span> <span class="ruby-identifier">get_column_font_color</span>(<span class="ruby-identifier">col</span> = <span class="ruby-value">0</span>)
1216
1276
  <span class="ruby-identifier">font</span> = <span class="ruby-identifier">column_font</span>(<span class="ruby-identifier">col</span>)
1217
1277
  <span class="ruby-identifier">font</span> <span class="ruby-operator">&amp;&amp;</span> (<span class="ruby-identifier">font</span>.<span class="ruby-identifier">get_rgb_color</span> <span class="ruby-operator">||</span> <span class="ruby-string">&#39;000000&#39;</span>)
@@ -1245,7 +1305,7 @@
1245
1305
 
1246
1306
 
1247
1307
  <div class="method-source-code" id="get_column_font_name-source">
1248
- <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 258</span>
1308
+ <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 306</span>
1249
1309
  <span class="ruby-keyword">def</span> <span class="ruby-identifier">get_column_font_name</span>(<span class="ruby-identifier">col</span> = <span class="ruby-value">0</span>)
1250
1310
  <span class="ruby-identifier">font</span> = <span class="ruby-identifier">column_font</span>(<span class="ruby-identifier">col</span>)
1251
1311
  <span class="ruby-identifier">font</span> <span class="ruby-operator">&amp;&amp;</span> <span class="ruby-identifier">font</span>.<span class="ruby-identifier">get_name</span>
@@ -1279,7 +1339,7 @@
1279
1339
 
1280
1340
 
1281
1341
  <div class="method-source-code" id="get_column_font_size-source">
1282
- <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 263</span>
1342
+ <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 311</span>
1283
1343
  <span class="ruby-keyword">def</span> <span class="ruby-identifier">get_column_font_size</span>(<span class="ruby-identifier">col</span> = <span class="ruby-value">0</span>)
1284
1344
  <span class="ruby-identifier">font</span> = <span class="ruby-identifier">column_font</span>(<span class="ruby-identifier">col</span>)
1285
1345
  <span class="ruby-identifier">font</span> <span class="ruby-operator">&amp;&amp;</span> <span class="ruby-identifier">font</span>.<span class="ruby-identifier">get_size</span>
@@ -1314,7 +1374,7 @@ href="http://msdn.microsoft.com/en-us/library/documentformat.openxml.spreadsheet
1314
1374
 
1315
1375
 
1316
1376
  <div class="method-source-code" id="get_column_width-source">
1317
- <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 304</span>
1377
+ <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 352</span>
1318
1378
  <span class="ruby-keyword">def</span> <span class="ruby-identifier">get_column_width</span>(<span class="ruby-identifier">column_index</span> = <span class="ruby-value">0</span>)
1319
1379
  <span class="ruby-identifier">width</span> = <span class="ruby-identifier">get_column_width_raw</span>(<span class="ruby-identifier">column_index</span>)
1320
1380
  <span class="ruby-keyword">return</span> <span class="ruby-constant">RubyXL</span><span class="ruby-operator">::</span><span class="ruby-constant">ColumnRange</span><span class="ruby-operator">::</span><span class="ruby-constant">DEFAULT_WIDTH</span> <span class="ruby-keyword">if</span> <span class="ruby-identifier">width</span>.<span class="ruby-identifier">nil?</span>
@@ -1349,7 +1409,7 @@ href="http://msdn.microsoft.com/en-us/library/documentformat.openxml.spreadsheet
1349
1409
 
1350
1410
 
1351
1411
  <div class="method-source-code" id="get_column_width_raw-source">
1352
- <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 294</span>
1412
+ <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 342</span>
1353
1413
  <span class="ruby-keyword">def</span> <span class="ruby-identifier">get_column_width_raw</span>(<span class="ruby-identifier">column_index</span> = <span class="ruby-value">0</span>)
1354
1414
  <span class="ruby-identifier">validate_workbook</span>
1355
1415
  <span class="ruby-identifier">validate_nonnegative</span>(<span class="ruby-identifier">column_index</span>)
@@ -1386,7 +1446,7 @@ href="http://msdn.microsoft.com/en-us/library/documentformat.openxml.spreadsheet
1386
1446
 
1387
1447
 
1388
1448
  <div class="method-source-code" id="get_row_alignment-source">
1389
- <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 236</span>
1449
+ <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 284</span>
1390
1450
  <span class="ruby-keyword">def</span> <span class="ruby-identifier">get_row_alignment</span>(<span class="ruby-identifier">row</span>, <span class="ruby-identifier">is_horizontal</span>)
1391
1451
  <span class="ruby-identifier">validate_workbook</span>
1392
1452
  <span class="ruby-identifier">validate_nonnegative</span>(<span class="ruby-identifier">row</span>)
@@ -1427,7 +1487,7 @@ href="http://msdn.microsoft.com/en-us/library/documentformat.openxml.spreadsheet
1427
1487
 
1428
1488
 
1429
1489
  <div class="method-source-code" id="get_row_border-source">
1430
- <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 228</span>
1490
+ <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 276</span>
1431
1491
  <span class="ruby-keyword">def</span> <span class="ruby-identifier">get_row_border</span>(<span class="ruby-identifier">row</span>, <span class="ruby-identifier">border_direction</span>)
1432
1492
  <span class="ruby-identifier">validate_workbook</span>
1433
1493
  <span class="ruby-identifier">validate_nonnegative</span>(<span class="ruby-identifier">row</span>)
@@ -1464,7 +1524,7 @@ href="http://msdn.microsoft.com/en-us/library/documentformat.openxml.spreadsheet
1464
1524
 
1465
1525
 
1466
1526
  <div class="method-source-code" id="get_row_fill-source">
1467
- <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 187</span>
1527
+ <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 235</span>
1468
1528
  <span class="ruby-keyword">def</span> <span class="ruby-identifier">get_row_fill</span>(<span class="ruby-identifier">row</span> = <span class="ruby-value">0</span>)
1469
1529
  (<span class="ruby-identifier">row</span> = <span class="ruby-identifier">sheet_data</span>.<span class="ruby-identifier">rows</span>[<span class="ruby-identifier">row</span>]) <span class="ruby-operator">&amp;&amp;</span> <span class="ruby-identifier">row</span>.<span class="ruby-identifier">get_fill_color</span>
1470
1530
  <span class="ruby-keyword">end</span></pre>
@@ -1497,7 +1557,7 @@ href="http://msdn.microsoft.com/en-us/library/documentformat.openxml.spreadsheet
1497
1557
 
1498
1558
 
1499
1559
  <div class="method-source-code" id="get_row_font_color-source">
1500
- <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 199</span>
1560
+ <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 247</span>
1501
1561
  <span class="ruby-keyword">def</span> <span class="ruby-identifier">get_row_font_color</span>(<span class="ruby-identifier">row</span> = <span class="ruby-value">0</span>)
1502
1562
  <span class="ruby-identifier">font</span> = <span class="ruby-identifier">row_font</span>(<span class="ruby-identifier">row</span>)
1503
1563
  <span class="ruby-identifier">color</span> = <span class="ruby-identifier">font</span> <span class="ruby-operator">&amp;&amp;</span> <span class="ruby-identifier">font</span>.<span class="ruby-identifier">color</span>
@@ -1532,7 +1592,7 @@ href="http://msdn.microsoft.com/en-us/library/documentformat.openxml.spreadsheet
1532
1592
 
1533
1593
 
1534
1594
  <div class="method-source-code" id="get_row_font_name-source">
1535
- <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 191</span>
1595
+ <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 239</span>
1536
1596
  <span class="ruby-keyword">def</span> <span class="ruby-identifier">get_row_font_name</span>(<span class="ruby-identifier">row</span> = <span class="ruby-value">0</span>)
1537
1597
  (<span class="ruby-identifier">font</span> = <span class="ruby-identifier">row_font</span>(<span class="ruby-identifier">row</span>)) <span class="ruby-operator">&amp;&amp;</span> <span class="ruby-identifier">font</span>.<span class="ruby-identifier">get_name</span>
1538
1598
  <span class="ruby-keyword">end</span></pre>
@@ -1565,7 +1625,7 @@ href="http://msdn.microsoft.com/en-us/library/documentformat.openxml.spreadsheet
1565
1625
 
1566
1626
 
1567
1627
  <div class="method-source-code" id="get_row_font_size-source">
1568
- <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 195</span>
1628
+ <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 243</span>
1569
1629
  <span class="ruby-keyword">def</span> <span class="ruby-identifier">get_row_font_size</span>(<span class="ruby-identifier">row</span> = <span class="ruby-value">0</span>)
1570
1630
  (<span class="ruby-identifier">font</span> = <span class="ruby-identifier">row_font</span>(<span class="ruby-identifier">row</span>)) <span class="ruby-operator">&amp;&amp;</span> <span class="ruby-identifier">font</span>.<span class="ruby-identifier">get_size</span>
1571
1631
  <span class="ruby-keyword">end</span></pre>
@@ -1598,7 +1658,7 @@ href="http://msdn.microsoft.com/en-us/library/documentformat.openxml.spreadsheet
1598
1658
 
1599
1659
 
1600
1660
  <div class="method-source-code" id="get_row_height-source">
1601
- <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 221</span>
1661
+ <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 269</span>
1602
1662
  <span class="ruby-keyword">def</span> <span class="ruby-identifier">get_row_height</span>(<span class="ruby-identifier">row</span> = <span class="ruby-value">0</span>)
1603
1663
  <span class="ruby-identifier">validate_workbook</span>
1604
1664
  <span class="ruby-identifier">validate_nonnegative</span>(<span class="ruby-identifier">row</span>)
@@ -1634,7 +1694,7 @@ href="http://msdn.microsoft.com/en-us/library/documentformat.openxml.spreadsheet
1634
1694
 
1635
1695
 
1636
1696
  <div class="method-source-code" id="get_row_horizontal_alignment-source">
1637
- <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 248</span>
1697
+ <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 296</span>
1638
1698
  <span class="ruby-keyword">def</span> <span class="ruby-identifier">get_row_horizontal_alignment</span>(<span class="ruby-identifier">row</span> = <span class="ruby-value">0</span>)
1639
1699
  <span class="ruby-identifier">warn</span> <span class="ruby-node">&quot;[DEPRECATION] `#{__method__}` is deprecated. Please use `get_row_alignment` instead.&quot;</span>
1640
1700
  <span class="ruby-keyword">return</span> <span class="ruby-identifier">get_row_alignment</span>(<span class="ruby-identifier">row</span>, <span class="ruby-keyword">true</span>)
@@ -1668,7 +1728,7 @@ href="http://msdn.microsoft.com/en-us/library/documentformat.openxml.spreadsheet
1668
1728
 
1669
1729
 
1670
1730
  <div class="method-source-code" id="get_row_vertical_alignment-source">
1671
- <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 253</span>
1731
+ <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 301</span>
1672
1732
  <span class="ruby-keyword">def</span> <span class="ruby-identifier">get_row_vertical_alignment</span>(<span class="ruby-identifier">row</span> = <span class="ruby-value">0</span>)
1673
1733
  <span class="ruby-identifier">warn</span> <span class="ruby-node">&quot;[DEPRECATION] `#{__method__}` is deprecated. Please use `get_row_alignment` instead.&quot;</span>
1674
1734
  <span class="ruby-keyword">return</span> <span class="ruby-identifier">get_row_alignment</span>(<span class="ruby-identifier">row</span>, <span class="ruby-keyword">false</span>)
@@ -1680,6 +1740,55 @@ href="http://msdn.microsoft.com/en-us/library/documentformat.openxml.spreadsheet
1680
1740
 
1681
1741
 
1682
1742
 
1743
+ </div>
1744
+
1745
+
1746
+ <div id="method-i-insert_cell" class="method-detail ">
1747
+
1748
+ <div class="method-heading">
1749
+ <span class="method-name">insert_cell</span><span
1750
+ class="method-args">(row = 0, col = 0, data = nil, formula = nil, shift = nil)</span>
1751
+
1752
+ <span class="method-click-advice">click to toggle source</span>
1753
+
1754
+ </div>
1755
+
1756
+
1757
+ <div class="method-description">
1758
+
1759
+
1760
+
1761
+
1762
+
1763
+
1764
+ <div class="method-source-code" id="insert_cell-source">
1765
+ <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 187</span>
1766
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">insert_cell</span>(<span class="ruby-identifier">row</span> = <span class="ruby-value">0</span>, <span class="ruby-identifier">col</span> = <span class="ruby-value">0</span>, <span class="ruby-identifier">data</span> = <span class="ruby-keyword">nil</span>, <span class="ruby-identifier">formula</span> = <span class="ruby-keyword">nil</span>, <span class="ruby-identifier">shift</span> = <span class="ruby-keyword">nil</span>)
1767
+ <span class="ruby-identifier">validate_workbook</span>
1768
+ <span class="ruby-identifier">ensure_cell_exists</span>(<span class="ruby-identifier">row</span>, <span class="ruby-identifier">col</span>)
1769
+
1770
+ <span class="ruby-keyword">case</span> <span class="ruby-identifier">shift</span>
1771
+ <span class="ruby-keyword">when</span> <span class="ruby-keyword">nil</span> <span class="ruby-keyword">then</span> <span class="ruby-comment"># No shifting at all</span>
1772
+ <span class="ruby-keyword">when</span> <span class="ruby-value">:right</span> <span class="ruby-keyword">then</span>
1773
+ <span class="ruby-identifier">sheet_data</span>.<span class="ruby-identifier">rows</span>[<span class="ruby-identifier">row</span>].<span class="ruby-identifier">insert_cell_shift_right</span>(<span class="ruby-keyword">nil</span>, <span class="ruby-identifier">col</span>)
1774
+ <span class="ruby-keyword">when</span> <span class="ruby-value">:down</span> <span class="ruby-keyword">then</span>
1775
+ <span class="ruby-identifier">add_row</span>(<span class="ruby-identifier">sheet_data</span>.<span class="ruby-identifier">size</span>, <span class="ruby-value">:cells</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-constant">Array</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">sheet_data</span>.<span class="ruby-identifier">rows</span>[<span class="ruby-identifier">row</span>].<span class="ruby-identifier">size</span>))
1776
+ (<span class="ruby-identifier">sheet_data</span>.<span class="ruby-identifier">size</span> <span class="ruby-operator">-</span> <span class="ruby-value">1</span>).<span class="ruby-identifier">downto</span>(<span class="ruby-identifier">row</span><span class="ruby-operator">+</span><span class="ruby-value">1</span>) { <span class="ruby-operator">|</span><span class="ruby-identifier">index</span><span class="ruby-operator">|</span>
1777
+ <span class="ruby-identifier">sheet_data</span>.<span class="ruby-identifier">rows</span>[<span class="ruby-identifier">index</span>].<span class="ruby-identifier">cells</span>[<span class="ruby-identifier">col</span>] = <span class="ruby-identifier">sheet_data</span>.<span class="ruby-identifier">rows</span>[<span class="ruby-identifier">index</span><span class="ruby-operator">-</span><span class="ruby-value">1</span>].<span class="ruby-identifier">cells</span>[<span class="ruby-identifier">col</span>]
1778
+ }
1779
+ <span class="ruby-keyword">else</span>
1780
+ <span class="ruby-identifier">raise</span> <span class="ruby-string">&#39;invalid shift option&#39;</span>
1781
+ <span class="ruby-keyword">end</span>
1782
+
1783
+ <span class="ruby-keyword">return</span> <span class="ruby-identifier">add_cell</span>(<span class="ruby-identifier">row</span>,<span class="ruby-identifier">col</span>,<span class="ruby-identifier">data</span>,<span class="ruby-identifier">formula</span>)
1784
+ <span class="ruby-keyword">end</span></pre>
1785
+ </div>
1786
+
1787
+ </div>
1788
+
1789
+
1790
+
1791
+
1683
1792
  </div>
1684
1793
 
1685
1794
 
@@ -1702,7 +1811,7 @@ href="http://msdn.microsoft.com/en-us/library/documentformat.openxml.spreadsheet
1702
1811
 
1703
1812
 
1704
1813
  <div class="method-source-code" id="is_column_bolded-source">
1705
- <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 278</span>
1814
+ <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 326</span>
1706
1815
  <span class="ruby-keyword">def</span> <span class="ruby-identifier">is_column_bolded</span>(<span class="ruby-identifier">col</span> = <span class="ruby-value">0</span>)
1707
1816
  <span class="ruby-identifier">font</span> = <span class="ruby-identifier">column_font</span>(<span class="ruby-identifier">col</span>)
1708
1817
  <span class="ruby-identifier">font</span> <span class="ruby-operator">&amp;&amp;</span> <span class="ruby-identifier">font</span>.<span class="ruby-identifier">is_bold</span>
@@ -1736,7 +1845,7 @@ href="http://msdn.microsoft.com/en-us/library/documentformat.openxml.spreadsheet
1736
1845
 
1737
1846
 
1738
1847
  <div class="method-source-code" id="is_column_italicized-source">
1739
- <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 273</span>
1848
+ <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 321</span>
1740
1849
  <span class="ruby-keyword">def</span> <span class="ruby-identifier">is_column_italicized</span>(<span class="ruby-identifier">col</span> = <span class="ruby-value">0</span>)
1741
1850
  <span class="ruby-identifier">font</span> = <span class="ruby-identifier">column_font</span>(<span class="ruby-identifier">col</span>)
1742
1851
  <span class="ruby-identifier">font</span> <span class="ruby-operator">&amp;&amp;</span> <span class="ruby-identifier">font</span>.<span class="ruby-identifier">is_italic</span>
@@ -1770,7 +1879,7 @@ href="http://msdn.microsoft.com/en-us/library/documentformat.openxml.spreadsheet
1770
1879
 
1771
1880
 
1772
1881
  <div class="method-source-code" id="is_column_struckthrough-source">
1773
- <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 288</span>
1882
+ <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 336</span>
1774
1883
  <span class="ruby-keyword">def</span> <span class="ruby-identifier">is_column_struckthrough</span>(<span class="ruby-identifier">col</span> = <span class="ruby-value">0</span>)
1775
1884
  <span class="ruby-identifier">font</span> = <span class="ruby-identifier">column_font</span>(<span class="ruby-identifier">col</span>)
1776
1885
  <span class="ruby-identifier">font</span> <span class="ruby-operator">&amp;&amp;</span> <span class="ruby-identifier">font</span>.<span class="ruby-identifier">is_strikethrough</span>
@@ -1804,7 +1913,7 @@ href="http://msdn.microsoft.com/en-us/library/documentformat.openxml.spreadsheet
1804
1913
 
1805
1914
 
1806
1915
  <div class="method-source-code" id="is_column_underlined-source">
1807
- <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 283</span>
1916
+ <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 331</span>
1808
1917
  <span class="ruby-keyword">def</span> <span class="ruby-identifier">is_column_underlined</span>(<span class="ruby-identifier">col</span> = <span class="ruby-value">0</span>)
1809
1918
  <span class="ruby-identifier">font</span> = <span class="ruby-identifier">column_font</span>(<span class="ruby-identifier">col</span>)
1810
1919
  <span class="ruby-identifier">font</span> <span class="ruby-operator">&amp;&amp;</span> <span class="ruby-identifier">font</span>.<span class="ruby-identifier">is_underlined</span>
@@ -1838,7 +1947,7 @@ href="http://msdn.microsoft.com/en-us/library/documentformat.openxml.spreadsheet
1838
1947
 
1839
1948
 
1840
1949
  <div class="method-source-code" id="is_row_bolded-source">
1841
- <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 209</span>
1950
+ <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 257</span>
1842
1951
  <span class="ruby-keyword">def</span> <span class="ruby-identifier">is_row_bolded</span>(<span class="ruby-identifier">row</span> = <span class="ruby-value">0</span>)
1843
1952
  (<span class="ruby-identifier">font</span> = <span class="ruby-identifier">row_font</span>(<span class="ruby-identifier">row</span>)) <span class="ruby-operator">&amp;&amp;</span> <span class="ruby-identifier">font</span>.<span class="ruby-identifier">is_bold</span>
1844
1953
  <span class="ruby-keyword">end</span></pre>
@@ -1871,7 +1980,7 @@ href="http://msdn.microsoft.com/en-us/library/documentformat.openxml.spreadsheet
1871
1980
 
1872
1981
 
1873
1982
  <div class="method-source-code" id="is_row_italicized-source">
1874
- <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 205</span>
1983
+ <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 253</span>
1875
1984
  <span class="ruby-keyword">def</span> <span class="ruby-identifier">is_row_italicized</span>(<span class="ruby-identifier">row</span> = <span class="ruby-value">0</span>)
1876
1985
  (<span class="ruby-identifier">font</span> = <span class="ruby-identifier">row_font</span>(<span class="ruby-identifier">row</span>)) <span class="ruby-operator">&amp;&amp;</span> <span class="ruby-identifier">font</span>.<span class="ruby-identifier">is_italic</span>
1877
1986
  <span class="ruby-keyword">end</span></pre>
@@ -1904,7 +2013,7 @@ href="http://msdn.microsoft.com/en-us/library/documentformat.openxml.spreadsheet
1904
2013
 
1905
2014
 
1906
2015
  <div class="method-source-code" id="is_row_struckthrough-source">
1907
- <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 217</span>
2016
+ <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 265</span>
1908
2017
  <span class="ruby-keyword">def</span> <span class="ruby-identifier">is_row_struckthrough</span>(<span class="ruby-identifier">row</span> = <span class="ruby-value">0</span>)
1909
2018
  (<span class="ruby-identifier">font</span> = <span class="ruby-identifier">row_font</span>(<span class="ruby-identifier">row</span>)) <span class="ruby-operator">&amp;&amp;</span> <span class="ruby-identifier">font</span>.<span class="ruby-identifier">is_strikethrough</span>
1910
2019
  <span class="ruby-keyword">end</span></pre>
@@ -1937,7 +2046,7 @@ href="http://msdn.microsoft.com/en-us/library/documentformat.openxml.spreadsheet
1937
2046
 
1938
2047
 
1939
2048
  <div class="method-source-code" id="is_row_underlined-source">
1940
- <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 213</span>
2049
+ <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 261</span>
1941
2050
  <span class="ruby-keyword">def</span> <span class="ruby-identifier">is_row_underlined</span>(<span class="ruby-identifier">row</span> = <span class="ruby-value">0</span>)
1942
2051
  (<span class="ruby-identifier">font</span> = <span class="ruby-identifier">row_font</span>(<span class="ruby-identifier">row</span>)) <span class="ruby-operator">&amp;&amp;</span> <span class="ruby-identifier">font</span>.<span class="ruby-identifier">is_underlined</span>
1943
2052
  <span class="ruby-keyword">end</span></pre>