rubyXL 3.4.16 → 3.4.17

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (399) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +27 -23
  3. data/VERSION +1 -1
  4. data/lib/rubyXL/convenience_methods/worksheet.rb +60 -0
  5. data/lib/rubyXL/objects/sheet_data.rb +2 -1
  6. data/rdoc/README_rdoc.html +4 -7
  7. data/rdoc/RubyXL.html +6 -321
  8. data/rdoc/RubyXL/AExtension.html +9 -51
  9. data/rdoc/RubyXL/AExtensionStorageArea.html +5 -14
  10. data/rdoc/RubyXL/ActiveX.html +10 -41
  11. data/rdoc/RubyXL/ActiveXBinary.html +5 -19
  12. data/rdoc/RubyXL/AdjustHandleList.html +5 -14
  13. data/rdoc/RubyXL/Alignment.html +5 -14
  14. data/rdoc/RubyXL/AlternateContent.html +5 -14
  15. data/rdoc/RubyXL/Authors.html +5 -14
  16. data/rdoc/RubyXL/AutoFilter.html +5 -14
  17. data/rdoc/RubyXL/AutoFilterColumn.html +5 -14
  18. data/rdoc/RubyXL/BinaryImageFile.html +5 -22
  19. data/rdoc/RubyXL/BodyProperties.html +5 -14
  20. data/rdoc/RubyXL/BooleanNode.html +5 -14
  21. data/rdoc/RubyXL/BooleanValue.html +5 -14
  22. data/rdoc/RubyXL/Border.html +8 -70
  23. data/rdoc/RubyXL/BorderEdge.html +8 -44
  24. data/rdoc/RubyXL/Borders.html +8 -31
  25. data/rdoc/RubyXL/Break.html +5 -14
  26. data/rdoc/RubyXL/BreakList.html +5 -14
  27. data/rdoc/RubyXL/CT_AdjPoint2D.html +5 -14
  28. data/rdoc/RubyXL/CT_AlphaBiLevelEffect.html +5 -14
  29. data/rdoc/RubyXL/CT_AlphaModulateEffect.html +5 -14
  30. data/rdoc/RubyXL/CT_AlphaModulateFixedEffect.html +5 -14
  31. data/rdoc/RubyXL/CT_AlphaOutsetEffect.html +5 -14
  32. data/rdoc/RubyXL/CT_AlphaReplaceEffect.html +5 -14
  33. data/rdoc/RubyXL/CT_Backdrop.html +5 -14
  34. data/rdoc/RubyXL/CT_Bevel.html +5 -14
  35. data/rdoc/RubyXL/CT_BiLevelEffect.html +5 -14
  36. data/rdoc/RubyXL/CT_BlendEffect.html +5 -14
  37. data/rdoc/RubyXL/CT_Blip.html +5 -14
  38. data/rdoc/RubyXL/CT_BlipFillProperties.html +5 -14
  39. data/rdoc/RubyXL/CT_BlurEffect.html +5 -14
  40. data/rdoc/RubyXL/CT_Camera.html +5 -14
  41. data/rdoc/RubyXL/CT_Color.html +5 -14
  42. data/rdoc/RubyXL/CT_ColorChangeEffect.html +5 -14
  43. data/rdoc/RubyXL/CT_ColorMapping.html +5 -14
  44. data/rdoc/RubyXL/CT_ColorScheme.html +5 -14
  45. data/rdoc/RubyXL/CT_ColorSchemeAndMapping.html +5 -14
  46. data/rdoc/RubyXL/CT_ConnectionSite.html +5 -14
  47. data/rdoc/RubyXL/CT_ConnectionSiteList.html +5 -14
  48. data/rdoc/RubyXL/CT_DashStop.html +5 -14
  49. data/rdoc/RubyXL/CT_DashStopList.html +5 -14
  50. data/rdoc/RubyXL/CT_DefaultShapeDefinition.html +5 -14
  51. data/rdoc/RubyXL/CT_DuotoneEffect.html +5 -14
  52. data/rdoc/RubyXL/CT_EffectContainer.html +5 -14
  53. data/rdoc/RubyXL/CT_EffectList.html +5 -14
  54. data/rdoc/RubyXL/CT_EffectReference.html +5 -14
  55. data/rdoc/RubyXL/CT_EffectStyleItem.html +5 -14
  56. data/rdoc/RubyXL/CT_EffectStyleList.html +5 -14
  57. data/rdoc/RubyXL/CT_EmbeddedWAVAudioFile.html +5 -14
  58. data/rdoc/RubyXL/CT_FillEffect.html +5 -14
  59. data/rdoc/RubyXL/CT_FillOverlayEffect.html +5 -14
  60. data/rdoc/RubyXL/CT_FillStyleList.html +5 -14
  61. data/rdoc/RubyXL/CT_FlatText.html +5 -14
  62. data/rdoc/RubyXL/CT_FontCollection.html +5 -14
  63. data/rdoc/RubyXL/CT_FontReference.html +5 -14
  64. data/rdoc/RubyXL/CT_GeomGuideList.html +5 -14
  65. data/rdoc/RubyXL/CT_GlowEffect.html +5 -14
  66. data/rdoc/RubyXL/CT_GradientFillProperties.html +5 -14
  67. data/rdoc/RubyXL/CT_GradientStop.html +5 -14
  68. data/rdoc/RubyXL/CT_GradientStopList.html +5 -14
  69. data/rdoc/RubyXL/CT_HSLEffect.html +5 -14
  70. data/rdoc/RubyXL/CT_HslColor.html +5 -14
  71. data/rdoc/RubyXL/CT_Hyperlink.html +5 -14
  72. data/rdoc/RubyXL/CT_InnerShadowEffect.html +5 -14
  73. data/rdoc/RubyXL/CT_LightRig.html +5 -14
  74. data/rdoc/RubyXL/CT_LineEndProperties.html +5 -14
  75. data/rdoc/RubyXL/CT_LineJoinMiterProperties.html +5 -14
  76. data/rdoc/RubyXL/CT_LineProperties.html +5 -14
  77. data/rdoc/RubyXL/CT_LineStyleList.html +5 -14
  78. data/rdoc/RubyXL/CT_LinearShadeProperties.html +5 -14
  79. data/rdoc/RubyXL/CT_LuminanceEffect.html +5 -14
  80. data/rdoc/RubyXL/CT_ObjectStyleDefaults.html +5 -14
  81. data/rdoc/RubyXL/CT_OuterShadowEffect.html +5 -14
  82. data/rdoc/RubyXL/CT_Path2D.html +5 -14
  83. data/rdoc/RubyXL/CT_Path2DArcTo.html +5 -14
  84. data/rdoc/RubyXL/CT_Path2DCubicBezierTo.html +5 -14
  85. data/rdoc/RubyXL/CT_Path2DList.html +5 -14
  86. data/rdoc/RubyXL/CT_Path2DQuadBezierTo.html +5 -14
  87. data/rdoc/RubyXL/CT_Path2DTo.html +5 -14
  88. data/rdoc/RubyXL/CT_PathShadeProperties.html +5 -14
  89. data/rdoc/RubyXL/CT_PatternFillProperties.html +5 -14
  90. data/rdoc/RubyXL/CT_Point3D.html +5 -14
  91. data/rdoc/RubyXL/CT_PolarAdjustHandle.html +5 -14
  92. data/rdoc/RubyXL/CT_PresetColor.html +5 -14
  93. data/rdoc/RubyXL/CT_PresetLineDashProperties.html +5 -14
  94. data/rdoc/RubyXL/CT_PresetShadowEffect.html +5 -14
  95. data/rdoc/RubyXL/CT_PresetTextShape.html +5 -14
  96. data/rdoc/RubyXL/CT_ReflectionEffect.html +5 -14
  97. data/rdoc/RubyXL/CT_RelativeOffsetEffect.html +5 -14
  98. data/rdoc/RubyXL/CT_RelativeRect.html +5 -14
  99. data/rdoc/RubyXL/CT_SRgbColor.html +5 -14
  100. data/rdoc/RubyXL/CT_ScRgbColor.html +5 -14
  101. data/rdoc/RubyXL/CT_Scene3D.html +5 -14
  102. data/rdoc/RubyXL/CT_SchemeColor.html +5 -14
  103. data/rdoc/RubyXL/CT_Shape3D.html +5 -14
  104. data/rdoc/RubyXL/CT_ShapeStyle.html +5 -14
  105. data/rdoc/RubyXL/CT_SoftEdgesEffect.html +5 -14
  106. data/rdoc/RubyXL/CT_SphereCoords.html +5 -14
  107. data/rdoc/RubyXL/CT_StretchInfoProperties.html +5 -14
  108. data/rdoc/RubyXL/CT_StyleMatrix.html +5 -14
  109. data/rdoc/RubyXL/CT_StyleMatrixReference.html +5 -14
  110. data/rdoc/RubyXL/CT_SupplementalFont.html +5 -14
  111. data/rdoc/RubyXL/CT_SystemColor.html +5 -14
  112. data/rdoc/RubyXL/CT_TextAutonumberBullet.html +5 -14
  113. data/rdoc/RubyXL/CT_TextBlipBullet.html +5 -14
  114. data/rdoc/RubyXL/CT_TextCharBullet.html +5 -14
  115. data/rdoc/RubyXL/CT_TextCharacterProperties.html +5 -14
  116. data/rdoc/RubyXL/CT_TextFont.html +5 -14
  117. data/rdoc/RubyXL/CT_TextListStyle.html +5 -14
  118. data/rdoc/RubyXL/CT_TextNormalAutofit.html +5 -14
  119. data/rdoc/RubyXL/CT_TextParagraphProperties.html +5 -14
  120. data/rdoc/RubyXL/CT_TextSpacing.html +5 -14
  121. data/rdoc/RubyXL/CT_TextTabStop.html +5 -14
  122. data/rdoc/RubyXL/CT_TextTabStopList.html +5 -14
  123. data/rdoc/RubyXL/CT_TileInfoProperties.html +5 -14
  124. data/rdoc/RubyXL/CT_TintEffect.html +5 -14
  125. data/rdoc/RubyXL/CT_Transform2D.html +5 -14
  126. data/rdoc/RubyXL/CT_TransformEffect.html +5 -14
  127. data/rdoc/RubyXL/CT_Vector3D.html +5 -14
  128. data/rdoc/RubyXL/CT_XYAdjustHandle.html +5 -14
  129. data/rdoc/RubyXL/CalculationChain.html +8 -39
  130. data/rdoc/RubyXL/CalculationChainCell.html +5 -14
  131. data/rdoc/RubyXL/CalculationProperties.html +5 -14
  132. data/rdoc/RubyXL/Cell.html +13 -217
  133. data/rdoc/RubyXL/CellConvenienceMethods.html +6 -457
  134. data/rdoc/RubyXL/CellExt.html +5 -14
  135. data/rdoc/RubyXL/CellSmartTag.html +5 -14
  136. data/rdoc/RubyXL/CellSmartTagProperty.html +5 -14
  137. data/rdoc/RubyXL/CellSmartTags.html +5 -14
  138. data/rdoc/RubyXL/CellStyle.html +5 -14
  139. data/rdoc/RubyXL/CellStyleXFs.html +8 -31
  140. data/rdoc/RubyXL/CellStyles.html +8 -31
  141. data/rdoc/RubyXL/CellValue.html +8 -31
  142. data/rdoc/RubyXL/CellWatch.html +5 -14
  143. data/rdoc/RubyXL/CellWatches.html +5 -14
  144. data/rdoc/RubyXL/CellXFs.html +8 -31
  145. data/rdoc/RubyXL/ChartColorsFile.html +5 -22
  146. data/rdoc/RubyXL/ChartFile.html +10 -44
  147. data/rdoc/RubyXL/ChartStyleFile.html +5 -22
  148. data/rdoc/RubyXL/ChartUserShapesFile.html +5 -22
  149. data/rdoc/RubyXL/Chartsheet.html +10 -61
  150. data/rdoc/RubyXL/ChartsheetPageSetup.html +5 -14
  151. data/rdoc/RubyXL/ChartsheetProperties.html +5 -14
  152. data/rdoc/RubyXL/ChartsheetProtection.html +5 -14
  153. data/rdoc/RubyXL/ChartsheetView.html +5 -14
  154. data/rdoc/RubyXL/ChartsheetViews.html +5 -14
  155. data/rdoc/RubyXL/Color.html +8 -36
  156. data/rdoc/RubyXL/ColorConvenienceClasses.html +3 -11
  157. data/rdoc/RubyXL/ColorConvenienceClasses/HlsColor.html +8 -58
  158. data/rdoc/RubyXL/ColorConvenienceClasses/RgbColor.html +9 -73
  159. data/rdoc/RubyXL/ColorConvenienceMethods.html +6 -28
  160. data/rdoc/RubyXL/ColorFilter.html +5 -14
  161. data/rdoc/RubyXL/ColorScale.html +5 -14
  162. data/rdoc/RubyXL/ColorSet.html +5 -14
  163. data/rdoc/RubyXL/Colors.html +5 -14
  164. data/rdoc/RubyXL/ColumnRange.html +8 -62
  165. data/rdoc/RubyXL/ColumnRanges.html +8 -70
  166. data/rdoc/RubyXL/Comment.html +5 -14
  167. data/rdoc/RubyXL/CommentList.html +5 -14
  168. data/rdoc/RubyXL/CommentsFile.html +8 -44
  169. data/rdoc/RubyXL/ConditionalFormatValue.html +5 -14
  170. data/rdoc/RubyXL/ConditionalFormatting.html +5 -14
  171. data/rdoc/RubyXL/ConditionalFormattingRule.html +5 -14
  172. data/rdoc/RubyXL/Connection.html +5 -14
  173. data/rdoc/RubyXL/ConnectionTable.html +5 -14
  174. data/rdoc/RubyXL/ConnectionTables.html +5 -14
  175. data/rdoc/RubyXL/ConnectionTextField.html +5 -14
  176. data/rdoc/RubyXL/ConnectionTextFields.html +5 -14
  177. data/rdoc/RubyXL/Connections.html +8 -39
  178. data/rdoc/RubyXL/ContentTypeDefault.html +5 -14
  179. data/rdoc/RubyXL/ContentTypeOverride.html +5 -14
  180. data/rdoc/RubyXL/ContentTypes.html +8 -52
  181. data/rdoc/RubyXL/ControlPropertiesFile.html +5 -22
  182. data/rdoc/RubyXL/CorePropertiesFile.html +8 -148
  183. data/rdoc/RubyXL/CustomColor.html +5 -14
  184. data/rdoc/RubyXL/CustomColorList.html +5 -14
  185. data/rdoc/RubyXL/CustomFilter.html +5 -14
  186. data/rdoc/RubyXL/CustomFilters.html +5 -14
  187. data/rdoc/RubyXL/CustomGeometry.html +5 -14
  188. data/rdoc/RubyXL/CustomProperties.html +5 -14
  189. data/rdoc/RubyXL/CustomPropertiesFile.html +5 -22
  190. data/rdoc/RubyXL/CustomProperty.html +5 -14
  191. data/rdoc/RubyXL/CustomPropertyFile.html +5 -22
  192. data/rdoc/RubyXL/CustomSheetView.html +5 -14
  193. data/rdoc/RubyXL/CustomSheetViews.html +5 -14
  194. data/rdoc/RubyXL/CustomWorkbookView.html +5 -14
  195. data/rdoc/RubyXL/CustomWorkbookViews.html +5 -14
  196. data/rdoc/RubyXL/CustomXMLFile.html +5 -19
  197. data/rdoc/RubyXL/DXF.html +5 -14
  198. data/rdoc/RubyXL/DXFs.html +5 -14
  199. data/rdoc/RubyXL/DataBar.html +5 -14
  200. data/rdoc/RubyXL/DataConsolidate.html +5 -14
  201. data/rdoc/RubyXL/DataConsolidationReference.html +5 -14
  202. data/rdoc/RubyXL/DataConsolidationReferences.html +5 -14
  203. data/rdoc/RubyXL/DataType.html +3 -34
  204. data/rdoc/RubyXL/DataValidation.html +5 -14
  205. data/rdoc/RubyXL/DataValidations.html +5 -14
  206. data/rdoc/RubyXL/DateGroupItem.html +5 -14
  207. data/rdoc/RubyXL/DefinedName.html +5 -14
  208. data/rdoc/RubyXL/DefinedNameExt.html +5 -14
  209. data/rdoc/RubyXL/DefinedNames.html +5 -14
  210. data/rdoc/RubyXL/DefinedNamesExt.html +5 -14
  211. data/rdoc/RubyXL/DocumentPropertiesFile.html +8 -57
  212. data/rdoc/RubyXL/DrawingFile.html +10 -44
  213. data/rdoc/RubyXL/DynamicFilter.html +5 -14
  214. data/rdoc/RubyXL/EmbeddedControl.html +5 -14
  215. data/rdoc/RubyXL/EmbeddedControls.html +5 -14
  216. data/rdoc/RubyXL/Extension.html +5 -14
  217. data/rdoc/RubyXL/ExtensionStorageArea.html +5 -14
  218. data/rdoc/RubyXL/Extents.html +5 -14
  219. data/rdoc/RubyXL/ExternalBook.html +5 -14
  220. data/rdoc/RubyXL/ExternalLinksFile.html +10 -44
  221. data/rdoc/RubyXL/ExternalReference.html +5 -14
  222. data/rdoc/RubyXL/ExternalReferences.html +5 -14
  223. data/rdoc/RubyXL/ExtraColorSchemeList.html +5 -14
  224. data/rdoc/RubyXL/FieldItem.html +5 -14
  225. data/rdoc/RubyXL/FileRecoveryProperties.html +5 -14
  226. data/rdoc/RubyXL/FileSharing.html +5 -14
  227. data/rdoc/RubyXL/FileVersion.html +5 -14
  228. data/rdoc/RubyXL/Fill.html +8 -31
  229. data/rdoc/RubyXL/Fills.html +8 -31
  230. data/rdoc/RubyXL/FilterContainer.html +5 -14
  231. data/rdoc/RubyXL/FloatNode.html +5 -14
  232. data/rdoc/RubyXL/FloatValue.html +5 -14
  233. data/rdoc/RubyXL/Font.html +8 -36
  234. data/rdoc/RubyXL/FontConvenienceMethods.html +6 -197
  235. data/rdoc/RubyXL/FontScheme.html +5 -14
  236. data/rdoc/RubyXL/Fonts.html +8 -31
  237. data/rdoc/RubyXL/Formula.html +5 -14
  238. data/rdoc/RubyXL/FunctionGroup.html +5 -14
  239. data/rdoc/RubyXL/FunctionGroups.html +5 -14
  240. data/rdoc/RubyXL/GenericStorageObject.html +9 -75
  241. data/rdoc/RubyXL/GradientFill.html +5 -14
  242. data/rdoc/RubyXL/HeaderFooterSettings.html +5 -14
  243. data/rdoc/RubyXL/Hyperlink.html +5 -14
  244. data/rdoc/RubyXL/HyperlinkRelFile.html +5 -19
  245. data/rdoc/RubyXL/Hyperlinks.html +5 -14
  246. data/rdoc/RubyXL/IconFilter.html +5 -14
  247. data/rdoc/RubyXL/IconSet.html +5 -14
  248. data/rdoc/RubyXL/IgnoredError.html +5 -14
  249. data/rdoc/RubyXL/IgnoredErrors.html +5 -14
  250. data/rdoc/RubyXL/IndexedColors.html +5 -14
  251. data/rdoc/RubyXL/InputCells.html +5 -14
  252. data/rdoc/RubyXL/IntegerNode.html +5 -14
  253. data/rdoc/RubyXL/IntegerValue.html +5 -14
  254. data/rdoc/RubyXL/LegacyCell.html +6 -28
  255. data/rdoc/RubyXL/LegacyWorksheet.html +9 -88
  256. data/rdoc/RubyXL/MRUColors.html +5 -14
  257. data/rdoc/RubyXL/MacrosFile.html +5 -22
  258. data/rdoc/RubyXL/MergedCell.html +5 -14
  259. data/rdoc/RubyXL/MergedCells.html +5 -14
  260. data/rdoc/RubyXL/NumFmt.html +5 -14
  261. data/rdoc/RubyXL/NumberFormat.html +8 -31
  262. data/rdoc/RubyXL/NumberFormats.html +8 -36
  263. data/rdoc/RubyXL/OLEObject.html +5 -14
  264. data/rdoc/RubyXL/OLEObjectFile.html +5 -22
  265. data/rdoc/RubyXL/OLEObjects.html +5 -14
  266. data/rdoc/RubyXL/OLESize.html +5 -14
  267. data/rdoc/RubyXL/OOXMLContainerObject.html +13 -110
  268. data/rdoc/RubyXL/OOXMLIgnored.html +9 -46
  269. data/rdoc/RubyXL/OOXMLObject.html +7 -19
  270. data/rdoc/RubyXL/OOXMLObjectClassMethods.html +6 -93
  271. data/rdoc/RubyXL/OOXMLObjectInstanceMethods.html +10 -133
  272. data/rdoc/RubyXL/OOXMLRelationshipsFile.html +10 -169
  273. data/rdoc/RubyXL/OOXMLTopLevelObject.html +9 -98
  274. data/rdoc/RubyXL/OdbcOleDbProperties.html +5 -14
  275. data/rdoc/RubyXL/Offset.html +5 -14
  276. data/rdoc/RubyXL/OlapProperties.html +5 -14
  277. data/rdoc/RubyXL/OleItem.html +5 -14
  278. data/rdoc/RubyXL/OleItems.html +5 -14
  279. data/rdoc/RubyXL/OleLink.html +5 -14
  280. data/rdoc/RubyXL/OutlineProperties.html +5 -14
  281. data/rdoc/RubyXL/PageMargins.html +5 -14
  282. data/rdoc/RubyXL/PageSetup.html +5 -14
  283. data/rdoc/RubyXL/PageSetupProperties.html +5 -14
  284. data/rdoc/RubyXL/Pane.html +5 -14
  285. data/rdoc/RubyXL/Parser.html +8 -44
  286. data/rdoc/RubyXL/PatternFill.html +5 -14
  287. data/rdoc/RubyXL/PhoneticProperties.html +5 -14
  288. data/rdoc/RubyXL/PhoneticRun.html +5 -14
  289. data/rdoc/RubyXL/PivotArea.html +5 -14
  290. data/rdoc/RubyXL/PivotCache.html +5 -14
  291. data/rdoc/RubyXL/PivotCacheDefinitionFile.html +7 -27
  292. data/rdoc/RubyXL/PivotCacheRecordsFile.html +5 -22
  293. data/rdoc/RubyXL/PivotCaches.html +5 -14
  294. data/rdoc/RubyXL/PivotReference.html +5 -14
  295. data/rdoc/RubyXL/PivotReferences.html +5 -14
  296. data/rdoc/RubyXL/PivotTableFile.html +7 -27
  297. data/rdoc/RubyXL/PivotTableSelection.html +5 -14
  298. data/rdoc/RubyXL/PresetGeometry.html +5 -14
  299. data/rdoc/RubyXL/PrintOptions.html +5 -14
  300. data/rdoc/RubyXL/PrinterSettingsFile.html +5 -22
  301. data/rdoc/RubyXL/ProtectedRange.html +5 -14
  302. data/rdoc/RubyXL/ProtectedRanges.html +5 -14
  303. data/rdoc/RubyXL/Protection.html +5 -14
  304. data/rdoc/RubyXL/QueryParameter.html +5 -14
  305. data/rdoc/RubyXL/QueryParameters.html +5 -14
  306. data/rdoc/RubyXL/QueryTable.html +10 -44
  307. data/rdoc/RubyXL/QueryTableDeletedField.html +5 -14
  308. data/rdoc/RubyXL/QueryTableDeletedFields.html +5 -14
  309. data/rdoc/RubyXL/QueryTableField.html +5 -14
  310. data/rdoc/RubyXL/QueryTableFields.html +5 -14
  311. data/rdoc/RubyXL/QueryTableRefresh.html +5 -14
  312. data/rdoc/RubyXL/RID.html +5 -14
  313. data/rdoc/RubyXL/RawOOXML.html +9 -51
  314. data/rdoc/RubyXL/Reference.html +9 -192
  315. data/rdoc/RubyXL/Relationship.html +5 -14
  316. data/rdoc/RubyXL/RelationshipSupport.html +9 -108
  317. data/rdoc/RubyXL/RelationshipSupport/ClassMehods.html +6 -28
  318. data/rdoc/RubyXL/RevisionPointer.html +5 -14
  319. data/rdoc/RubyXL/RichText.html +8 -31
  320. data/rdoc/RubyXL/RichTextRun.html +8 -31
  321. data/rdoc/RubyXL/Row.html +17 -154
  322. data/rdoc/RubyXL/RowExt.html +5 -14
  323. data/rdoc/RubyXL/RunProperties.html +5 -14
  324. data/rdoc/RubyXL/Scenario.html +5 -14
  325. data/rdoc/RubyXL/Scenarios.html +5 -14
  326. data/rdoc/RubyXL/Selection.html +8 -31
  327. data/rdoc/RubyXL/ShapeGuide.html +5 -14
  328. data/rdoc/RubyXL/ShapeTextRectangle.html +5 -14
  329. data/rdoc/RubyXL/SharedStringsTable.html +9 -121
  330. data/rdoc/RubyXL/Sheet.html +5 -14
  331. data/rdoc/RubyXL/SheetCalculationProperties.html +5 -14
  332. data/rdoc/RubyXL/SheetData.html +10 -46
  333. data/rdoc/RubyXL/SheetDataExt.html +5 -14
  334. data/rdoc/RubyXL/SheetDataSet.html +5 -14
  335. data/rdoc/RubyXL/SheetName.html +5 -14
  336. data/rdoc/RubyXL/SheetNames.html +5 -14
  337. data/rdoc/RubyXL/Sheets.html +5 -14
  338. data/rdoc/RubyXL/SlicerCacheFile.html +5 -22
  339. data/rdoc/RubyXL/SlicerFile.html +5 -22
  340. data/rdoc/RubyXL/SmartTagProperties.html +5 -14
  341. data/rdoc/RubyXL/SmartTagType.html +5 -14
  342. data/rdoc/RubyXL/SmartTagTypes.html +5 -14
  343. data/rdoc/RubyXL/SmartTags.html +5 -14
  344. data/rdoc/RubyXL/SortCondition.html +5 -14
  345. data/rdoc/RubyXL/SortState.html +5 -14
  346. data/rdoc/RubyXL/Sqref.html +9 -46
  347. data/rdoc/RubyXL/Stop.html +5 -14
  348. data/rdoc/RubyXL/StringNode.html +5 -14
  349. data/rdoc/RubyXL/StringNodeW3C.html +9 -46
  350. data/rdoc/RubyXL/StringValue.html +5 -14
  351. data/rdoc/RubyXL/Stylesheet.html +9 -94
  352. data/rdoc/RubyXL/TableFile.html +5 -22
  353. data/rdoc/RubyXL/TableParts.html +5 -14
  354. data/rdoc/RubyXL/TableStyle.html +5 -14
  355. data/rdoc/RubyXL/TableStyles.html +5 -14
  356. data/rdoc/RubyXL/Text.html +8 -52
  357. data/rdoc/RubyXL/TextImportSettings.html +5 -14
  358. data/rdoc/RubyXL/Theme.html +9 -67
  359. data/rdoc/RubyXL/ThemeElements.html +5 -14
  360. data/rdoc/RubyXL/ThumbnailFile.html +5 -22
  361. data/rdoc/RubyXL/Top10.html +5 -14
  362. data/rdoc/RubyXL/VMLDrawingFile.html +7 -27
  363. data/rdoc/RubyXL/Variant.html +5 -14
  364. data/rdoc/RubyXL/Vector.html +8 -31
  365. data/rdoc/RubyXL/VectorValue.html +5 -14
  366. data/rdoc/RubyXL/VisualProperties.html +5 -14
  367. data/rdoc/RubyXL/WebPublishObject.html +5 -14
  368. data/rdoc/RubyXL/WebPublishObjects.html +5 -14
  369. data/rdoc/RubyXL/WebPublishingItem.html +5 -14
  370. data/rdoc/RubyXL/WebPublishingItems.html +5 -14
  371. data/rdoc/RubyXL/WebPublishingProperties.html +5 -14
  372. data/rdoc/RubyXL/WebQueryProperties.html +5 -14
  373. data/rdoc/RubyXL/Workbook.html +11 -439
  374. data/rdoc/RubyXL/WorkbookConvenienceMethods.html +6 -223
  375. data/rdoc/RubyXL/WorkbookProperties.html +5 -14
  376. data/rdoc/RubyXL/WorkbookProtection.html +5 -14
  377. data/rdoc/RubyXL/WorkbookRoot.html +11 -101
  378. data/rdoc/RubyXL/WorkbookView.html +5 -14
  379. data/rdoc/RubyXL/WorkbookViews.html +5 -14
  380. data/rdoc/RubyXL/Worksheet.html +11 -132
  381. data/rdoc/RubyXL/WorksheetConvenienceMethods.html +132 -1001
  382. data/rdoc/RubyXL/WorksheetDimensions.html +5 -14
  383. data/rdoc/RubyXL/WorksheetFormatProperties.html +5 -14
  384. data/rdoc/RubyXL/WorksheetProperties.html +5 -14
  385. data/rdoc/RubyXL/WorksheetProtection.html +5 -14
  386. data/rdoc/RubyXL/WorksheetView.html +5 -14
  387. data/rdoc/RubyXL/WorksheetViews.html +5 -14
  388. data/rdoc/RubyXL/XF.html +5 -14
  389. data/rdoc/created.rid +5 -5
  390. data/rdoc/css/rdoc.css +1 -1
  391. data/rdoc/index.html +5 -394
  392. data/rdoc/js/navigation.js.gz +0 -0
  393. data/rdoc/js/search_index.js.gz +0 -0
  394. data/rdoc/js/searcher.js.gz +0 -0
  395. data/rdoc/table_of_contents.html +3 -820
  396. data/rubyXL.gemspec +3 -3
  397. data/spec/lib/cell_spec.rb +6 -0
  398. data/spec/lib/worksheet_spec.rb +265 -0
  399. metadata +2 -2
@@ -4,7 +4,7 @@
4
4
  <head>
5
5
  <meta charset="UTF-8">
6
6
 
7
- <title>module RubyXL::WorksheetConvenienceMethods - rubyXL 3.4.16</title>
7
+ <title>module RubyXL::WorksheetConvenienceMethods - rubyXL 3.4.17</title>
8
8
 
9
9
  <script type="text/javascript">
10
10
  var rdoc_rel_prefix = "../";
@@ -21,8 +21,6 @@
21
21
  <link href="../css/rdoc.css" rel="stylesheet">
22
22
 
23
23
 
24
-
25
-
26
24
  <body id="top" role="document" class="module">
27
25
  <nav role="navigation">
28
26
  <div id="project-navigation">
@@ -62,150 +60,81 @@
62
60
 
63
61
 
64
62
 
65
- <!-- Method Quickref -->
63
+
64
+ <!-- Method Quickref -->
66
65
  <div id="method-list-section" class="nav-section">
67
66
  <h3>Methods</h3>
68
67
 
69
68
  <ul class="link-list" role="directory">
70
-
71
69
  <li ><a href="#method-i-add_validation_list">#add_validation_list</a>
72
-
73
70
  <li ><a href="#method-i-change_column_alignment">#change_column_alignment</a>
74
-
75
71
  <li ><a href="#method-i-change_column_bold">#change_column_bold</a>
76
-
77
72
  <li ><a href="#method-i-change_column_border">#change_column_border</a>
78
-
79
73
  <li ><a href="#method-i-change_column_border_color">#change_column_border_color</a>
80
-
81
74
  <li ><a href="#method-i-change_column_fill">#change_column_fill</a>
82
-
83
75
  <li ><a href="#method-i-change_column_font">#change_column_font</a>
84
-
85
76
  <li ><a href="#method-i-change_column_font_color">#change_column_font_color</a>
86
-
87
77
  <li ><a href="#method-i-change_column_font_name">#change_column_font_name</a>
88
-
89
78
  <li ><a href="#method-i-change_column_font_size">#change_column_font_size</a>
90
-
91
79
  <li ><a href="#method-i-change_column_horizontal_alignment">#change_column_horizontal_alignment</a>
92
-
93
80
  <li ><a href="#method-i-change_column_italics">#change_column_italics</a>
94
-
95
81
  <li ><a href="#method-i-change_column_strikethrough">#change_column_strikethrough</a>
96
-
97
82
  <li ><a href="#method-i-change_column_underline">#change_column_underline</a>
98
-
99
83
  <li ><a href="#method-i-change_column_vertical_alignment">#change_column_vertical_alignment</a>
100
-
101
84
  <li ><a href="#method-i-change_column_width">#change_column_width</a>
102
-
103
85
  <li ><a href="#method-i-change_column_width_raw">#change_column_width_raw</a>
104
-
105
86
  <li ><a href="#method-i-change_row_alignment">#change_row_alignment</a>
106
-
107
87
  <li ><a href="#method-i-change_row_bold">#change_row_bold</a>
108
-
109
88
  <li ><a href="#method-i-change_row_border">#change_row_border</a>
110
-
111
89
  <li ><a href="#method-i-change_row_border_color">#change_row_border_color</a>
112
-
113
90
  <li ><a href="#method-i-change_row_fill">#change_row_fill</a>
114
-
115
91
  <li ><a href="#method-i-change_row_font">#change_row_font</a>
116
-
117
92
  <li ><a href="#method-i-change_row_font_color">#change_row_font_color</a>
118
-
119
93
  <li ><a href="#method-i-change_row_font_name">#change_row_font_name</a>
120
-
121
94
  <li ><a href="#method-i-change_row_font_size">#change_row_font_size</a>
122
-
123
95
  <li ><a href="#method-i-change_row_height">#change_row_height</a>
124
-
125
96
  <li ><a href="#method-i-change_row_horizontal_alignment">#change_row_horizontal_alignment</a>
126
-
127
97
  <li ><a href="#method-i-change_row_italics">#change_row_italics</a>
128
-
129
98
  <li ><a href="#method-i-change_row_strikethrough">#change_row_strikethrough</a>
130
-
131
99
  <li ><a href="#method-i-change_row_underline">#change_row_underline</a>
132
-
133
100
  <li ><a href="#method-i-change_row_vertical_alignment">#change_row_vertical_alignment</a>
134
-
135
101
  <li ><a href="#method-i-column_font">#column_font</a>
136
-
137
102
  <li ><a href="#method-i-delete_cell">#delete_cell</a>
138
-
139
103
  <li ><a href="#method-i-delete_column">#delete_column</a>
140
-
141
104
  <li ><a href="#method-i-delete_row">#delete_row</a>
142
-
143
105
  <li ><a href="#method-i-get_col_style">#get_col_style</a>
144
-
145
106
  <li ><a href="#method-i-get_cols_style_index">#get_cols_style_index</a>
146
-
147
107
  <li ><a href="#method-i-get_column_alignment">#get_column_alignment</a>
148
-
149
108
  <li ><a href="#method-i-get_column_border">#get_column_border</a>
150
-
151
109
  <li ><a href="#method-i-get_column_border_color">#get_column_border_color</a>
152
-
153
110
  <li ><a href="#method-i-get_column_fill">#get_column_fill</a>
154
-
155
111
  <li ><a href="#method-i-get_column_font_color">#get_column_font_color</a>
156
-
157
112
  <li ><a href="#method-i-get_column_font_name">#get_column_font_name</a>
158
-
159
113
  <li ><a href="#method-i-get_column_font_size">#get_column_font_size</a>
160
-
161
114
  <li ><a href="#method-i-get_column_width">#get_column_width</a>
162
-
163
115
  <li ><a href="#method-i-get_column_width_raw">#get_column_width_raw</a>
164
-
165
116
  <li ><a href="#method-i-get_row_alignment">#get_row_alignment</a>
166
-
167
117
  <li ><a href="#method-i-get_row_border">#get_row_border</a>
168
-
169
118
  <li ><a href="#method-i-get_row_border_color">#get_row_border_color</a>
170
-
171
119
  <li ><a href="#method-i-get_row_fill">#get_row_fill</a>
172
-
173
120
  <li ><a href="#method-i-get_row_font_color">#get_row_font_color</a>
174
-
175
121
  <li ><a href="#method-i-get_row_font_name">#get_row_font_name</a>
176
-
177
122
  <li ><a href="#method-i-get_row_font_size">#get_row_font_size</a>
178
-
179
123
  <li ><a href="#method-i-get_row_height">#get_row_height</a>
180
-
181
124
  <li ><a href="#method-i-get_row_style">#get_row_style</a>
182
-
183
125
  <li ><a href="#method-i-insert_cell">#insert_cell</a>
184
-
185
126
  <li ><a href="#method-i-insert_column">#insert_column</a>
186
-
187
127
  <li ><a href="#method-i-insert_row">#insert_row</a>
188
-
189
128
  <li ><a href="#method-i-is_column_bolded">#is_column_bolded</a>
190
-
191
129
  <li ><a href="#method-i-is_column_italicized">#is_column_italicized</a>
192
-
193
130
  <li ><a href="#method-i-is_column_struckthrough">#is_column_struckthrough</a>
194
-
195
131
  <li ><a href="#method-i-is_column_underlined">#is_column_underlined</a>
196
-
197
132
  <li ><a href="#method-i-is_row_bolded">#is_row_bolded</a>
198
-
199
133
  <li ><a href="#method-i-is_row_italicized">#is_row_italicized</a>
200
-
201
134
  <li ><a href="#method-i-is_row_struckthrough">#is_row_struckthrough</a>
202
-
203
135
  <li ><a href="#method-i-is_row_underlined">#is_row_underlined</a>
204
-
205
136
  <li ><a href="#method-i-merge_cells">#merge_cells</a>
206
-
207
137
  <li ><a href="#method-i-row_font">#row_font</a>
208
-
209
138
  </ul>
210
139
  </div>
211
140
 
@@ -221,87 +150,50 @@
221
150
 
222
151
  </section>
223
152
 
224
-
225
153
  <section id="5Buntitled-5D" class="documentation-section">
226
-
227
154
 
228
-
229
155
 
230
-
231
156
  <section class="constants-list">
232
157
  <header>
233
158
  <h3>Constants</h3>
234
159
  </header>
235
160
  <dl>
236
-
237
161
  <dt id="BOLD">BOLD
238
-
239
162
  <dd>
240
-
241
-
242
163
  <dt id="COLOR">COLOR
243
-
244
164
  <dd>
245
-
246
-
247
165
  <dt id="ITALICS">ITALICS
248
-
249
166
  <dd>
250
-
251
-
252
167
  <dt id="NAME">NAME
253
-
254
168
  <dd>
255
-
256
-
257
169
  <dt id="SIZE">SIZE
258
-
259
170
  <dd>
260
-
261
-
262
171
  <dt id="STRIKETHROUGH">STRIKETHROUGH
263
-
264
172
  <dd>
265
-
266
-
267
173
  <dt id="UNDERLINE">UNDERLINE
268
-
269
174
  <dd>
270
-
271
-
272
175
  </dl>
273
176
  </section>
274
-
275
177
 
276
-
277
178
 
278
-
179
+
279
180
  <section id="public-instance-5Buntitled-5D-method-details" class="method-section">
280
181
  <header>
281
182
  <h3>Public Instance Methods</h3>
282
183
  </header>
283
184
 
284
-
285
185
  <div id="method-i-add_validation_list" class="method-detail ">
286
-
287
186
  <div class="method-heading">
288
187
  <span class="method-name">add_validation_list</span><span
289
188
  class="method-args">(ref, list_arr)</span>
290
-
291
189
  <span class="method-click-advice">click to toggle source</span>
292
-
293
190
  </div>
294
-
295
191
 
296
192
  <div class="method-description">
297
193
 
298
-
299
-
300
-
301
194
 
302
-
303
195
  <div class="method-source-code" id="add_validation_list-source">
304
- <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/worksheet.rb, line 636</span>
196
+ <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/worksheet.rb, line 696</span>
305
197
  <span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">add_validation_list</span>(<span class="ruby-identifier">ref</span>, <span class="ruby-identifier">list_arr</span>)
306
198
  <span class="ruby-comment"># &quot;Any double quote characters in the value should be escaped with another double quote.</span>
307
199
  <span class="ruby-comment"># If the value does not contain a comma, newline or double quote, then the String value should be returned unchanged.</span>
@@ -314,35 +206,23 @@
314
206
  <span class="ruby-value">:type</span> <span class="ruby-operator">=&gt;</span> <span class="ruby-string">&#39;list&#39;</span>})
315
207
  <span class="ruby-keyword">end</span></pre>
316
208
  </div>
317
-
318
209
  </div>
319
210
 
320
-
321
211
 
322
-
323
212
  </div>
324
213
 
325
-
326
214
  <div id="method-i-change_column_alignment" class="method-detail ">
327
-
328
215
  <div class="method-heading">
329
216
  <span class="method-name">change_column_alignment</span><span
330
217
  class="method-args">(column_index, &amp;block)</span>
331
-
332
218
  <span class="method-click-advice">click to toggle source</span>
333
-
334
219
  </div>
335
-
336
220
 
337
221
  <div class="method-description">
338
222
 
339
-
340
-
341
-
342
223
 
343
-
344
224
  <div class="method-source-code" id="change_column_alignment-source">
345
- <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/worksheet.rb, line 611</span>
225
+ <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/worksheet.rb, line 671</span>
346
226
  <span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">change_column_alignment</span>(<span class="ruby-identifier">column_index</span>, <span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>)
347
227
  <span class="ruby-identifier">validate_workbook</span>
348
228
  <span class="ruby-identifier">ensure_cell_exists</span>(<span class="ruby-value">0</span>, <span class="ruby-identifier">column_index</span>)
@@ -359,35 +239,23 @@
359
239
  }
360
240
  <span class="ruby-keyword">end</span></pre>
361
241
  </div>
362
-
363
242
  </div>
364
243
 
365
-
366
244
 
367
-
368
245
  </div>
369
246
 
370
-
371
247
  <div id="method-i-change_column_bold" class="method-detail ">
372
-
373
248
  <div class="method-heading">
374
249
  <span class="method-name">change_column_bold</span><span
375
250
  class="method-args">(column_index, bolded = false)</span>
376
-
377
251
  <span class="method-click-advice">click to toggle source</span>
378
-
379
252
  </div>
380
-
381
253
 
382
254
  <div class="method-description">
383
255
 
384
-
385
-
386
-
387
256
 
388
-
389
257
  <div class="method-source-code" id="change_column_bold-source">
390
- <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/worksheet.rb, line 542</span>
258
+ <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/worksheet.rb, line 602</span>
391
259
  <span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">change_column_bold</span>(<span class="ruby-identifier">column_index</span>, <span class="ruby-identifier">bolded</span> = <span class="ruby-keyword">false</span>)
392
260
  <span class="ruby-identifier">xf</span> = <span class="ruby-identifier">get_col_xf</span>(<span class="ruby-identifier">column_index</span>)
393
261
  <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>
@@ -395,35 +263,23 @@
395
263
  <span class="ruby-identifier">change_column_font</span>(<span class="ruby-identifier">column_index</span>, <span class="ruby-constant">Worksheet</span><span class="ruby-operator">::</span><span class="ruby-constant">BOLD</span>, <span class="ruby-identifier">bolded</span>, <span class="ruby-identifier">font</span>, <span class="ruby-identifier">xf</span>)
396
264
  <span class="ruby-keyword">end</span></pre>
397
265
  </div>
398
-
399
266
  </div>
400
267
 
401
-
402
268
 
403
-
404
269
  </div>
405
270
 
406
-
407
271
  <div id="method-i-change_column_border" class="method-detail ">
408
-
409
272
  <div class="method-heading">
410
273
  <span class="method-name">change_column_border</span><span
411
274
  class="method-args">(column_index, direction, weight)</span>
412
-
413
275
  <span class="method-click-advice">click to toggle source</span>
414
-
415
276
  </div>
416
-
417
277
 
418
278
  <div class="method-description">
419
279
 
420
-
421
-
422
-
423
280
 
424
-
425
281
  <div class="method-source-code" id="change_column_border-source">
426
- <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/worksheet.rb, line 571</span>
282
+ <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/worksheet.rb, line 631</span>
427
283
  <span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">change_column_border</span>(<span class="ruby-identifier">column_index</span>, <span class="ruby-identifier">direction</span>, <span class="ruby-identifier">weight</span>)
428
284
  <span class="ruby-identifier">validate_workbook</span>
429
285
  <span class="ruby-identifier">ensure_cell_exists</span>(<span class="ruby-value">0</span>, <span class="ruby-identifier">column_index</span>)
@@ -438,35 +294,23 @@
438
294
  }
439
295
  <span class="ruby-keyword">end</span></pre>
440
296
  </div>
441
-
442
297
  </div>
443
298
 
444
-
445
299
 
446
-
447
300
  </div>
448
301
 
449
-
450
302
  <div id="method-i-change_column_border_color" class="method-detail ">
451
-
452
303
  <div class="method-heading">
453
304
  <span class="method-name">change_column_border_color</span><span
454
305
  class="method-args">(column_index, direction, color)</span>
455
-
456
306
  <span class="method-click-advice">click to toggle source</span>
457
-
458
307
  </div>
459
-
460
308
 
461
309
  <div class="method-description">
462
310
 
463
-
464
-
465
-
466
311
 
467
-
468
312
  <div class="method-source-code" id="change_column_border_color-source">
469
- <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/worksheet.rb, line 585</span>
313
+ <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/worksheet.rb, line 645</span>
470
314
  <span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">change_column_border_color</span>(<span class="ruby-identifier">column_index</span>, <span class="ruby-identifier">direction</span>, <span class="ruby-identifier">color</span>)
471
315
  <span class="ruby-identifier">validate_workbook</span>
472
316
  <span class="ruby-identifier">ensure_cell_exists</span>(<span class="ruby-value">0</span>, <span class="ruby-identifier">column_index</span>)
@@ -480,35 +324,23 @@
480
324
  }
481
325
  <span class="ruby-keyword">end</span></pre>
482
326
  </div>
483
-
484
327
  </div>
485
328
 
486
-
487
329
 
488
-
489
330
  </div>
490
331
 
491
-
492
332
  <div id="method-i-change_column_fill" class="method-detail ">
493
-
494
333
  <div class="method-heading">
495
334
  <span class="method-name">change_column_fill</span><span
496
335
  class="method-args">(column_index, color_code = &#39;ffffff&#39;)</span>
497
-
498
336
  <span class="method-click-advice">click to toggle source</span>
499
-
500
337
  </div>
501
-
502
338
 
503
339
  <div class="method-description">
504
340
 
505
-
506
-
507
-
508
341
 
509
-
510
342
  <div class="method-source-code" id="change_column_fill-source">
511
- <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/worksheet.rb, line 337</span>
343
+ <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/worksheet.rb, line 397</span>
512
344
  <span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">change_column_fill</span>(<span class="ruby-identifier">column_index</span>, <span class="ruby-identifier">color_code</span> = <span class="ruby-string">&#39;ffffff&#39;</span>)
513
345
  <span class="ruby-identifier">validate_workbook</span>
514
346
  <span class="ruby-constant">RubyXL</span><span class="ruby-operator">::</span><span class="ruby-constant">Color</span>.<span class="ruby-identifier">validate_color</span>(<span class="ruby-identifier">color_code</span>)
@@ -524,35 +356,23 @@
524
356
  }
525
357
  <span class="ruby-keyword">end</span></pre>
526
358
  </div>
527
-
528
359
  </div>
529
360
 
530
-
531
361
 
532
-
533
362
  </div>
534
363
 
535
-
536
364
  <div id="method-i-change_column_font" class="method-detail ">
537
-
538
365
  <div class="method-heading">
539
366
  <span class="method-name">change_column_font</span><span
540
367
  class="method-args">(column_index, change_type, arg, font, xf)</span>
541
-
542
368
  <span class="method-click-advice">click to toggle source</span>
543
-
544
369
  </div>
545
-
546
370
 
547
371
  <div class="method-description">
548
-
549
372
  <p>Helper method to update the fonts and cell styles array main method to change font, called from each separate font mutator method</p>
550
-
551
-
552
373
 
553
-
554
374
  <div class="method-source-code" id="change_column_font-source">
555
- <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/worksheet.rb, line 499</span>
375
+ <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/worksheet.rb, line 559</span>
556
376
  <span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">change_column_font</span>(<span class="ruby-identifier">column_index</span>, <span class="ruby-identifier">change_type</span>, <span class="ruby-identifier">arg</span>, <span class="ruby-identifier">font</span>, <span class="ruby-identifier">xf</span>)
557
377
  <span class="ruby-identifier">validate_workbook</span>
558
378
  <span class="ruby-identifier">ensure_cell_exists</span>(<span class="ruby-value">0</span>, <span class="ruby-identifier">column_index</span>)
@@ -566,35 +386,23 @@
566
386
  }
567
387
  <span class="ruby-keyword">end</span></pre>
568
388
  </div>
569
-
570
389
  </div>
571
390
 
572
-
573
391
 
574
-
575
392
  </div>
576
393
 
577
-
578
394
  <div id="method-i-change_column_font_color" class="method-detail ">
579
-
580
395
  <div class="method-heading">
581
396
  <span class="method-name">change_column_font_color</span><span
582
397
  class="method-args">(column_index, font_color=&#39;000000&#39;)</span>
583
-
584
398
  <span class="method-click-advice">click to toggle source</span>
585
-
586
399
  </div>
587
-
588
400
 
589
401
  <div class="method-description">
590
402
 
591
-
592
-
593
-
594
403
 
595
-
596
404
  <div class="method-source-code" id="change_column_font_color-source">
597
- <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/worksheet.rb, line 526</span>
405
+ <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/worksheet.rb, line 586</span>
598
406
  <span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">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>)
599
407
  <span class="ruby-constant">Color</span>.<span class="ruby-identifier">validate_color</span>(<span class="ruby-identifier">font_color</span>)
600
408
 
@@ -604,35 +412,23 @@
604
412
  <span class="ruby-identifier">change_column_font</span>(<span class="ruby-identifier">column_index</span>, <span class="ruby-constant">Worksheet</span><span class="ruby-operator">::</span><span class="ruby-constant">COLOR</span>, <span class="ruby-identifier">font_color</span>, <span class="ruby-identifier">font</span>, <span class="ruby-identifier">xf</span>)
605
413
  <span class="ruby-keyword">end</span></pre>
606
414
  </div>
607
-
608
415
  </div>
609
416
 
610
-
611
417
 
612
-
613
418
  </div>
614
419
 
615
-
616
420
  <div id="method-i-change_column_font_name" class="method-detail ">
617
-
618
421
  <div class="method-heading">
619
422
  <span class="method-name">change_column_font_name</span><span
620
423
  class="method-args">(column_index = 0, font_name = &#39;Verdana&#39;)</span>
621
-
622
424
  <span class="method-click-advice">click to toggle source</span>
623
-
624
425
  </div>
625
-
626
426
 
627
427
  <div class="method-description">
628
428
 
629
-
630
-
631
-
632
429
 
633
-
634
430
  <div class="method-source-code" id="change_column_font_name-source">
635
- <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/worksheet.rb, line 512</span>
431
+ <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/worksheet.rb, line 572</span>
636
432
  <span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">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>)
637
433
  <span class="ruby-identifier">xf</span> = <span class="ruby-identifier">get_col_xf</span>(<span class="ruby-identifier">column_index</span>)
638
434
  <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>
@@ -640,35 +436,23 @@
640
436
  <span class="ruby-identifier">change_column_font</span>(<span class="ruby-identifier">column_index</span>, <span class="ruby-constant">Worksheet</span><span class="ruby-operator">::</span><span class="ruby-constant">NAME</span>, <span class="ruby-identifier">font_name</span>, <span class="ruby-identifier">font</span>, <span class="ruby-identifier">xf</span>)
641
437
  <span class="ruby-keyword">end</span></pre>
642
438
  </div>
643
-
644
439
  </div>
645
440
 
646
-
647
441
 
648
-
649
442
  </div>
650
443
 
651
-
652
444
  <div id="method-i-change_column_font_size" class="method-detail ">
653
-
654
445
  <div class="method-heading">
655
446
  <span class="method-name">change_column_font_size</span><span
656
447
  class="method-args">(column_index, font_size=10)</span>
657
-
658
448
  <span class="method-click-advice">click to toggle source</span>
659
-
660
449
  </div>
661
-
662
450
 
663
451
  <div class="method-description">
664
452
 
665
-
666
-
667
-
668
453
 
669
-
670
454
  <div class="method-source-code" id="change_column_font_size-source">
671
- <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/worksheet.rb, line 519</span>
455
+ <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/worksheet.rb, line 579</span>
672
456
  <span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">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>)
673
457
  <span class="ruby-identifier">xf</span> = <span class="ruby-identifier">get_col_xf</span>(<span class="ruby-identifier">column_index</span>)
674
458
  <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>
@@ -676,68 +460,44 @@
676
460
  <span class="ruby-identifier">change_column_font</span>(<span class="ruby-identifier">column_index</span>, <span class="ruby-constant">Worksheet</span><span class="ruby-operator">::</span><span class="ruby-constant">SIZE</span>, <span class="ruby-identifier">font_size</span>, <span class="ruby-identifier">font</span>, <span class="ruby-identifier">xf</span>)
677
461
  <span class="ruby-keyword">end</span></pre>
678
462
  </div>
679
-
680
463
  </div>
681
464
 
682
-
683
465
 
684
-
685
466
  </div>
686
467
 
687
-
688
468
  <div id="method-i-change_column_horizontal_alignment" class="method-detail ">
689
-
690
469
  <div class="method-heading">
691
470
  <span class="method-name">change_column_horizontal_alignment</span><span
692
471
  class="method-args">(column_index, alignment = &#39;center&#39;)</span>
693
-
694
472
  <span class="method-click-advice">click to toggle source</span>
695
-
696
473
  </div>
697
-
698
474
 
699
475
  <div class="method-description">
700
476
 
701
-
702
-
703
-
704
477
 
705
-
706
478
  <div class="method-source-code" id="change_column_horizontal_alignment-source">
707
- <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/worksheet.rb, line 563</span>
479
+ <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/worksheet.rb, line 623</span>
708
480
  <span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">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>)
709
481
  <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> }
710
482
  <span class="ruby-keyword">end</span></pre>
711
483
  </div>
712
-
713
484
  </div>
714
485
 
715
-
716
486
 
717
-
718
487
  </div>
719
488
 
720
-
721
489
  <div id="method-i-change_column_italics" class="method-detail ">
722
-
723
490
  <div class="method-heading">
724
491
  <span class="method-name">change_column_italics</span><span
725
492
  class="method-args">(column_index, italicized = false)</span>
726
-
727
493
  <span class="method-click-advice">click to toggle source</span>
728
-
729
494
  </div>
730
-
731
495
 
732
496
  <div class="method-description">
733
497
 
734
-
735
-
736
-
737
498
 
738
-
739
499
  <div class="method-source-code" id="change_column_italics-source">
740
- <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/worksheet.rb, line 535</span>
500
+ <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/worksheet.rb, line 595</span>
741
501
  <span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">change_column_italics</span>(<span class="ruby-identifier">column_index</span>, <span class="ruby-identifier">italicized</span> = <span class="ruby-keyword">false</span>)
742
502
  <span class="ruby-identifier">xf</span> = <span class="ruby-identifier">get_col_xf</span>(<span class="ruby-identifier">column_index</span>)
743
503
  <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>
@@ -745,35 +505,23 @@
745
505
  <span class="ruby-identifier">change_column_font</span>(<span class="ruby-identifier">column_index</span>, <span class="ruby-constant">Worksheet</span><span class="ruby-operator">::</span><span class="ruby-constant">ITALICS</span>, <span class="ruby-identifier">italicized</span>, <span class="ruby-identifier">font</span>, <span class="ruby-identifier">xf</span>)
746
506
  <span class="ruby-keyword">end</span></pre>
747
507
  </div>
748
-
749
508
  </div>
750
509
 
751
-
752
510
 
753
-
754
511
  </div>
755
512
 
756
-
757
513
  <div id="method-i-change_column_strikethrough" class="method-detail ">
758
-
759
514
  <div class="method-heading">
760
515
  <span class="method-name">change_column_strikethrough</span><span
761
516
  class="method-args">(column_index, struckthrough=false)</span>
762
-
763
517
  <span class="method-click-advice">click to toggle source</span>
764
-
765
518
  </div>
766
-
767
519
 
768
520
  <div class="method-description">
769
521
 
770
-
771
-
772
-
773
522
 
774
-
775
523
  <div class="method-source-code" id="change_column_strikethrough-source">
776
- <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/worksheet.rb, line 556</span>
524
+ <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/worksheet.rb, line 616</span>
777
525
  <span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">change_column_strikethrough</span>(<span class="ruby-identifier">column_index</span>, <span class="ruby-identifier">struckthrough</span>=<span class="ruby-keyword">false</span>)
778
526
  <span class="ruby-identifier">xf</span> = <span class="ruby-identifier">get_col_xf</span>(<span class="ruby-identifier">column_index</span>)
779
527
  <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>
@@ -781,35 +529,23 @@
781
529
  <span class="ruby-identifier">change_column_font</span>(<span class="ruby-identifier">column_index</span>, <span class="ruby-constant">Worksheet</span><span class="ruby-operator">::</span><span class="ruby-constant">STRIKETHROUGH</span>, <span class="ruby-identifier">struckthrough</span>, <span class="ruby-identifier">font</span>, <span class="ruby-identifier">xf</span>)
782
530
  <span class="ruby-keyword">end</span></pre>
783
531
  </div>
784
-
785
532
  </div>
786
533
 
787
-
788
534
 
789
-
790
535
  </div>
791
536
 
792
-
793
537
  <div id="method-i-change_column_underline" class="method-detail ">
794
-
795
538
  <div class="method-heading">
796
539
  <span class="method-name">change_column_underline</span><span
797
540
  class="method-args">(column_index, underlined = false)</span>
798
-
799
541
  <span class="method-click-advice">click to toggle source</span>
800
-
801
542
  </div>
802
-
803
543
 
804
544
  <div class="method-description">
805
545
 
806
-
807
-
808
-
809
546
 
810
-
811
547
  <div class="method-source-code" id="change_column_underline-source">
812
- <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/worksheet.rb, line 549</span>
548
+ <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/worksheet.rb, line 609</span>
813
549
  <span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">change_column_underline</span>(<span class="ruby-identifier">column_index</span>, <span class="ruby-identifier">underlined</span> = <span class="ruby-keyword">false</span>)
814
550
  <span class="ruby-identifier">xf</span> = <span class="ruby-identifier">get_col_xf</span>(<span class="ruby-identifier">column_index</span>)
815
551
  <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>
@@ -817,101 +553,65 @@
817
553
  <span class="ruby-identifier">change_column_font</span>(<span class="ruby-identifier">column_index</span>, <span class="ruby-constant">Worksheet</span><span class="ruby-operator">::</span><span class="ruby-constant">UNDERLINE</span>, <span class="ruby-identifier">underlined</span>, <span class="ruby-identifier">font</span>, <span class="ruby-identifier">xf</span>)
818
554
  <span class="ruby-keyword">end</span></pre>
819
555
  </div>
820
-
821
556
  </div>
822
557
 
823
-
824
558
 
825
-
826
559
  </div>
827
560
 
828
-
829
561
  <div id="method-i-change_column_vertical_alignment" class="method-detail ">
830
-
831
562
  <div class="method-heading">
832
563
  <span class="method-name">change_column_vertical_alignment</span><span
833
564
  class="method-args">(column_index, alignment = &#39;center&#39;)</span>
834
-
835
565
  <span class="method-click-advice">click to toggle source</span>
836
-
837
566
  </div>
838
-
839
567
 
840
568
  <div class="method-description">
841
569
 
842
-
843
-
844
-
845
570
 
846
-
847
571
  <div class="method-source-code" id="change_column_vertical_alignment-source">
848
- <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/worksheet.rb, line 567</span>
572
+ <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/worksheet.rb, line 627</span>
849
573
  <span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">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>)
850
574
  <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> }
851
575
  <span class="ruby-keyword">end</span></pre>
852
576
  </div>
853
-
854
577
  </div>
855
578
 
856
-
857
579
 
858
-
859
580
  </div>
860
581
 
861
-
862
582
  <div id="method-i-change_column_width" class="method-detail ">
863
-
864
583
  <div class="method-heading">
865
584
  <span class="method-name">change_column_width</span><span
866
585
  class="method-args">(column_index, width_in_chars = RubyXL::ColumnRange::DEFAULT_WIDTH)</span>
867
-
868
586
  <span class="method-click-advice">click to toggle source</span>
869
-
870
587
  </div>
871
-
872
588
 
873
589
  <div class="method-description">
874
-
875
590
  <p>Get column width measured in number of digits, as per <a href="http://msdn.microsoft.com/en-us/library/documentformat.openxml.spreadsheet.column%28v=office.14%29.aspx">msdn.microsoft.com/en-us/library/documentformat.openxml.spreadsheet.column%28v=office.14%29.aspx</a></p>
876
-
877
-
878
591
 
879
-
880
592
  <div class="method-source-code" id="change_column_width-source">
881
- <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/worksheet.rb, line 320</span>
593
+ <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/worksheet.rb, line 380</span>
882
594
  <span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">change_column_width</span>(<span class="ruby-identifier">column_index</span>, <span class="ruby-identifier">width_in_chars</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>)
883
595
  <span class="ruby-identifier">change_column_width_raw</span>(<span class="ruby-identifier">column_index</span>, ((<span class="ruby-identifier">width_in_chars</span> <span class="ruby-operator">+</span> (<span class="ruby-value">5.0</span> <span class="ruby-operator">/</span> <span class="ruby-constant">RubyXL</span><span class="ruby-operator">::</span><span class="ruby-constant">Font</span><span class="ruby-operator">::</span><span class="ruby-constant">MAX_DIGIT_WIDTH</span>)) <span class="ruby-operator">*</span> <span class="ruby-value">256</span>).<span class="ruby-identifier">to_i</span> <span class="ruby-operator">/</span> <span class="ruby-value">256.0</span>)
884
596
  <span class="ruby-keyword">end</span></pre>
885
597
  </div>
886
-
887
598
  </div>
888
599
 
889
-
890
600
 
891
-
892
601
  </div>
893
602
 
894
-
895
603
  <div id="method-i-change_column_width_raw" class="method-detail ">
896
-
897
604
  <div class="method-heading">
898
605
  <span class="method-name">change_column_width_raw</span><span
899
606
  class="method-args">(column_index, width)</span>
900
-
901
607
  <span class="method-click-advice">click to toggle source</span>
902
-
903
608
  </div>
904
-
905
609
 
906
610
  <div class="method-description">
907
-
908
611
  <p>Set raw column width value</p>
909
-
910
-
911
612
 
912
-
913
613
  <div class="method-source-code" id="change_column_width_raw-source">
914
- <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/worksheet.rb, line 310</span>
614
+ <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/worksheet.rb, line 370</span>
915
615
  <span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">change_column_width_raw</span>(<span class="ruby-identifier">column_index</span>, <span class="ruby-identifier">width</span>)
916
616
  <span class="ruby-identifier">validate_workbook</span>
917
617
  <span class="ruby-identifier">ensure_cell_exists</span>(<span class="ruby-value">0</span>, <span class="ruby-identifier">column_index</span>)
@@ -920,35 +620,23 @@
920
620
  <span class="ruby-identifier">range</span>.<span class="ruby-identifier">custom_width</span> = <span class="ruby-keyword">true</span>
921
621
  <span class="ruby-keyword">end</span></pre>
922
622
  </div>
923
-
924
623
  </div>
925
624
 
926
-
927
625
 
928
-
929
626
  </div>
930
627
 
931
-
932
628
  <div id="method-i-change_row_alignment" class="method-detail ">
933
-
934
629
  <div class="method-heading">
935
630
  <span class="method-name">change_row_alignment</span><span
936
631
  class="method-args">(row, &amp;block)</span>
937
-
938
632
  <span class="method-click-advice">click to toggle source</span>
939
-
940
633
  </div>
941
-
942
634
 
943
635
  <div class="method-description">
944
636
 
945
-
946
-
947
-
948
637
 
949
-
950
638
  <div class="method-source-code" id="change_row_alignment-source">
951
- <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/worksheet.rb, line 598</span>
639
+ <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/worksheet.rb, line 658</span>
952
640
  <span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">change_row_alignment</span>(<span class="ruby-identifier">row</span>, <span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>)
953
641
  <span class="ruby-identifier">validate_workbook</span>
954
642
  <span class="ruby-identifier">validate_nonnegative</span>(<span class="ruby-identifier">row</span>)
@@ -962,35 +650,23 @@
962
650
  }
963
651
  <span class="ruby-keyword">end</span></pre>
964
652
  </div>
965
-
966
653
  </div>
967
654
 
968
-
969
655
 
970
-
971
656
  </div>
972
657
 
973
-
974
658
  <div id="method-i-change_row_bold" class="method-detail ">
975
-
976
659
  <div class="method-heading">
977
660
  <span class="method-name">change_row_bold</span><span
978
661
  class="method-args">(row = 0, bolded = false)</span>
979
-
980
662
  <span class="method-click-advice">click to toggle source</span>
981
-
982
663
  </div>
983
-
984
664
 
985
665
  <div class="method-description">
986
666
 
987
-
988
-
989
-
990
667
 
991
-
992
668
  <div class="method-source-code" id="change_row_bold-source">
993
- <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/worksheet.rb, line 467</span>
669
+ <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/worksheet.rb, line 527</span>
994
670
  <span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">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>)
995
671
  <span class="ruby-identifier">ensure_cell_exists</span>(<span class="ruby-identifier">row</span>)
996
672
  <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>
@@ -998,35 +674,23 @@
998
674
  <span class="ruby-identifier">change_row_font</span>(<span class="ruby-identifier">row</span>, <span class="ruby-constant">Worksheet</span><span class="ruby-operator">::</span><span class="ruby-constant">BOLD</span>, <span class="ruby-identifier">bolded</span>, <span class="ruby-identifier">font</span>)
999
675
  <span class="ruby-keyword">end</span></pre>
1000
676
  </div>
1001
-
1002
677
  </div>
1003
678
 
1004
-
1005
679
 
1006
-
1007
680
  </div>
1008
681
 
1009
-
1010
682
  <div id="method-i-change_row_border" class="method-detail ">
1011
-
1012
683
  <div class="method-heading">
1013
684
  <span class="method-name">change_row_border</span><span
1014
685
  class="method-args">(row, direction, weight)</span>
1015
-
1016
686
  <span class="method-click-advice">click to toggle source</span>
1017
-
1018
687
  </div>
1019
-
1020
688
 
1021
689
  <div class="method-description">
1022
690
 
1023
-
1024
-
1025
-
1026
691
 
1027
-
1028
692
  <div class="method-source-code" id="change_row_border-source">
1029
- <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/worksheet.rb, line 393</span>
693
+ <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/worksheet.rb, line 453</span>
1030
694
  <span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">change_row_border</span>(<span class="ruby-identifier">row</span>, <span class="ruby-identifier">direction</span>, <span class="ruby-identifier">weight</span>)
1031
695
  <span class="ruby-identifier">validate_workbook</span>
1032
696
  <span class="ruby-identifier">ensure_cell_exists</span>(<span class="ruby-identifier">row</span>)
@@ -1038,35 +702,23 @@
1038
702
  }
1039
703
  <span class="ruby-keyword">end</span></pre>
1040
704
  </div>
1041
-
1042
705
  </div>
1043
706
 
1044
-
1045
707
 
1046
-
1047
708
  </div>
1048
709
 
1049
-
1050
710
  <div id="method-i-change_row_border_color" class="method-detail ">
1051
-
1052
711
  <div class="method-heading">
1053
712
  <span class="method-name">change_row_border_color</span><span
1054
713
  class="method-args">(row, direction, color = &#39;000000&#39;)</span>
1055
-
1056
714
  <span class="method-click-advice">click to toggle source</span>
1057
-
1058
715
  </div>
1059
-
1060
716
 
1061
717
  <div class="method-description">
1062
718
 
1063
-
1064
-
1065
-
1066
719
 
1067
-
1068
720
  <div class="method-source-code" id="change_row_border_color-source">
1069
- <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/worksheet.rb, line 404</span>
721
+ <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/worksheet.rb, line 464</span>
1070
722
  <span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">change_row_border_color</span>(<span class="ruby-identifier">row</span>, <span class="ruby-identifier">direction</span>, <span class="ruby-identifier">color</span> = <span class="ruby-string">&#39;000000&#39;</span>)
1071
723
  <span class="ruby-identifier">validate_workbook</span>
1072
724
  <span class="ruby-identifier">ensure_cell_exists</span>(<span class="ruby-identifier">row</span>)
@@ -1079,35 +731,23 @@
1079
731
  }
1080
732
  <span class="ruby-keyword">end</span></pre>
1081
733
  </div>
1082
-
1083
734
  </div>
1084
735
 
1085
-
1086
736
 
1087
-
1088
737
  </div>
1089
738
 
1090
-
1091
739
  <div id="method-i-change_row_fill" class="method-detail ">
1092
-
1093
740
  <div class="method-heading">
1094
741
  <span class="method-name">change_row_fill</span><span
1095
742
  class="method-args">(row_index = 0, rgb = &#39;ffffff&#39;)</span>
1096
-
1097
743
  <span class="method-click-advice">click to toggle source</span>
1098
-
1099
744
  </div>
1100
-
1101
745
 
1102
746
  <div class="method-description">
1103
747
 
1104
-
1105
-
1106
-
1107
748
 
1108
-
1109
749
  <div class="method-source-code" id="change_row_fill-source">
1110
- <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/worksheet.rb, line 416</span>
750
+ <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/worksheet.rb, line 476</span>
1111
751
  <span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">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>)
1112
752
  <span class="ruby-identifier">validate_workbook</span>
1113
753
  <span class="ruby-identifier">ensure_cell_exists</span>(<span class="ruby-identifier">row_index</span>)
@@ -1117,35 +757,23 @@
1117
757
  <span class="ruby-identifier">sheet_data</span>[<span class="ruby-identifier">row_index</span>].<span class="ruby-identifier">cells</span>.<span class="ruby-identifier">each</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">c</span><span class="ruby-operator">|</span> <span class="ruby-identifier">c</span>.<span class="ruby-identifier">change_fill</span>(<span class="ruby-identifier">rgb</span>) <span class="ruby-keyword">unless</span> <span class="ruby-identifier">c</span>.<span class="ruby-identifier">nil?</span> }
1118
758
  <span class="ruby-keyword">end</span></pre>
1119
759
  </div>
1120
-
1121
760
  </div>
1122
761
 
1123
-
1124
762
 
1125
-
1126
763
  </div>
1127
764
 
1128
-
1129
765
  <div id="method-i-change_row_font" class="method-detail ">
1130
-
1131
766
  <div class="method-heading">
1132
767
  <span class="method-name">change_row_font</span><span
1133
768
  class="method-args">(row_index, change_type, arg, font)</span>
1134
-
1135
769
  <span class="method-click-advice">click to toggle source</span>
1136
-
1137
770
  </div>
1138
-
1139
771
 
1140
772
  <div class="method-description">
1141
-
1142
773
  <p>Helper method to update the row styles array change_type - <a href="WorksheetConvenienceMethods.html#NAME"><code>NAME</code></a> or <a href="WorksheetConvenienceMethods.html#SIZE"><code>SIZE</code></a> or <a href="WorksheetConvenienceMethods.html#COLOR"><code>COLOR</code></a> etc main method to change font, called from each separate font mutator method</p>
1143
-
1144
-
1145
774
 
1146
-
1147
775
  <div class="method-source-code" id="change_row_font-source">
1148
- <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/worksheet.rb, line 428</span>
776
+ <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/worksheet.rb, line 488</span>
1149
777
  <span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">change_row_font</span>(<span class="ruby-identifier">row_index</span>, <span class="ruby-identifier">change_type</span>, <span class="ruby-identifier">arg</span>, <span class="ruby-identifier">font</span>)
1150
778
  <span class="ruby-identifier">validate_workbook</span>
1151
779
  <span class="ruby-identifier">ensure_cell_exists</span>(<span class="ruby-identifier">row_index</span>)
@@ -1156,35 +784,23 @@
1156
784
  <span class="ruby-identifier">row</span>.<span class="ruby-identifier">cells</span>.<span class="ruby-identifier">each</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">c</span><span class="ruby-operator">|</span> <span class="ruby-identifier">c</span>.<span class="ruby-identifier">font_switch</span>(<span class="ruby-identifier">change_type</span>, <span class="ruby-identifier">arg</span>) <span class="ruby-keyword">unless</span> <span class="ruby-identifier">c</span>.<span class="ruby-identifier">nil?</span> }
1157
785
  <span class="ruby-keyword">end</span></pre>
1158
786
  </div>
1159
-
1160
787
  </div>
1161
788
 
1162
-
1163
789
 
1164
-
1165
790
  </div>
1166
791
 
1167
-
1168
792
  <div id="method-i-change_row_font_color" class="method-detail ">
1169
-
1170
793
  <div class="method-heading">
1171
794
  <span class="method-name">change_row_font_color</span><span
1172
795
  class="method-args">(row = 0, font_color = &#39;000000&#39;)</span>
1173
-
1174
796
  <span class="method-click-advice">click to toggle source</span>
1175
-
1176
797
  </div>
1177
-
1178
798
 
1179
799
  <div class="method-description">
1180
800
 
1181
-
1182
-
1183
-
1184
801
 
1185
-
1186
802
  <div class="method-source-code" id="change_row_font_color-source">
1187
- <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/worksheet.rb, line 452</span>
803
+ <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/worksheet.rb, line 512</span>
1188
804
  <span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">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>)
1189
805
  <span class="ruby-identifier">ensure_cell_exists</span>(<span class="ruby-identifier">row</span>)
1190
806
  <span class="ruby-constant">Color</span>.<span class="ruby-identifier">validate_color</span>(<span class="ruby-identifier">font_color</span>)
@@ -1193,35 +809,23 @@
1193
809
  <span class="ruby-identifier">change_row_font</span>(<span class="ruby-identifier">row</span>, <span class="ruby-constant">Worksheet</span><span class="ruby-operator">::</span><span class="ruby-constant">COLOR</span>, <span class="ruby-identifier">font_color</span>, <span class="ruby-identifier">font</span>)
1194
810
  <span class="ruby-keyword">end</span></pre>
1195
811
  </div>
1196
-
1197
812
  </div>
1198
813
 
1199
-
1200
814
 
1201
-
1202
815
  </div>
1203
816
 
1204
-
1205
817
  <div id="method-i-change_row_font_name" class="method-detail ">
1206
-
1207
818
  <div class="method-heading">
1208
819
  <span class="method-name">change_row_font_name</span><span
1209
820
  class="method-args">(row = 0, font_name = &#39;Verdana&#39;)</span>
1210
-
1211
821
  <span class="method-click-advice">click to toggle source</span>
1212
-
1213
822
  </div>
1214
-
1215
823
 
1216
824
  <div class="method-description">
1217
825
 
1218
-
1219
-
1220
-
1221
826
 
1222
-
1223
827
  <div class="method-source-code" id="change_row_font_name-source">
1224
- <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/worksheet.rb, line 438</span>
828
+ <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/worksheet.rb, line 498</span>
1225
829
  <span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">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>)
1226
830
  <span class="ruby-identifier">ensure_cell_exists</span>(<span class="ruby-identifier">row</span>)
1227
831
  <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>
@@ -1229,35 +833,23 @@
1229
833
  <span class="ruby-identifier">change_row_font</span>(<span class="ruby-identifier">row</span>, <span class="ruby-constant">Worksheet</span><span class="ruby-operator">::</span><span class="ruby-constant">NAME</span>, <span class="ruby-identifier">font_name</span>, <span class="ruby-identifier">font</span>)
1230
834
  <span class="ruby-keyword">end</span></pre>
1231
835
  </div>
1232
-
1233
836
  </div>
1234
837
 
1235
-
1236
838
 
1237
-
1238
839
  </div>
1239
840
 
1240
-
1241
841
  <div id="method-i-change_row_font_size" class="method-detail ">
1242
-
1243
842
  <div class="method-heading">
1244
843
  <span class="method-name">change_row_font_size</span><span
1245
844
  class="method-args">(row = 0, font_size=10)</span>
1246
-
1247
845
  <span class="method-click-advice">click to toggle source</span>
1248
-
1249
846
  </div>
1250
-
1251
847
 
1252
848
  <div class="method-description">
1253
849
 
1254
-
1255
-
1256
-
1257
850
 
1258
-
1259
851
  <div class="method-source-code" id="change_row_font_size-source">
1260
- <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/worksheet.rb, line 445</span>
852
+ <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/worksheet.rb, line 505</span>
1261
853
  <span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">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>)
1262
854
  <span class="ruby-identifier">ensure_cell_exists</span>(<span class="ruby-identifier">row</span>)
1263
855
  <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>
@@ -1265,35 +857,23 @@
1265
857
  <span class="ruby-identifier">change_row_font</span>(<span class="ruby-identifier">row</span>, <span class="ruby-constant">Worksheet</span><span class="ruby-operator">::</span><span class="ruby-constant">SIZE</span>, <span class="ruby-identifier">font_size</span>, <span class="ruby-identifier">font</span>)
1266
858
  <span class="ruby-keyword">end</span></pre>
1267
859
  </div>
1268
-
1269
860
  </div>
1270
861
 
1271
-
1272
862
 
1273
-
1274
863
  </div>
1275
864
 
1276
-
1277
865
  <div id="method-i-change_row_height" class="method-detail ">
1278
-
1279
866
  <div class="method-heading">
1280
867
  <span class="method-name">change_row_height</span><span
1281
868
  class="method-args">(row = 0, height = 10)</span>
1282
-
1283
869
  <span class="method-click-advice">click to toggle source</span>
1284
-
1285
870
  </div>
1286
-
1287
871
 
1288
872
  <div class="method-description">
1289
873
 
1290
-
1291
-
1292
-
1293
874
 
1294
-
1295
875
  <div class="method-source-code" id="change_row_height-source">
1296
- <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/worksheet.rb, line 488</span>
876
+ <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/worksheet.rb, line 548</span>
1297
877
  <span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">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>)
1298
878
  <span class="ruby-identifier">validate_workbook</span>
1299
879
  <span class="ruby-identifier">ensure_cell_exists</span>(<span class="ruby-identifier">row</span>)
@@ -1303,70 +883,46 @@
1303
883
  <span class="ruby-identifier">c</span>.<span class="ruby-identifier">custom_height</span> = <span class="ruby-keyword">true</span>
1304
884
  <span class="ruby-keyword">end</span></pre>
1305
885
  </div>
1306
-
1307
886
  </div>
1308
887
 
1309
-
1310
888
 
1311
-
1312
889
  </div>
1313
890
 
1314
-
1315
891
  <div id="method-i-change_row_horizontal_alignment" class="method-detail ">
1316
-
1317
892
  <div class="method-heading">
1318
893
  <span class="method-name">change_row_horizontal_alignment</span><span
1319
894
  class="method-args">(row = 0, alignment = &#39;center&#39;)</span>
1320
-
1321
895
  <span class="method-click-advice">click to toggle source</span>
1322
-
1323
896
  </div>
1324
-
1325
897
 
1326
898
  <div class="method-description">
1327
899
 
1328
-
1329
-
1330
-
1331
900
 
1332
-
1333
901
  <div class="method-source-code" id="change_row_horizontal_alignment-source">
1334
- <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/worksheet.rb, line 381</span>
902
+ <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/worksheet.rb, line 441</span>
1335
903
  <span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">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>)
1336
904
  <span class="ruby-identifier">validate_workbook</span>
1337
905
  <span class="ruby-identifier">validate_nonnegative</span>(<span class="ruby-identifier">row</span>)
1338
906
  <span class="ruby-identifier">change_row_alignment</span>(<span class="ruby-identifier">row</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> }
1339
907
  <span class="ruby-keyword">end</span></pre>
1340
908
  </div>
1341
-
1342
909
  </div>
1343
910
 
1344
-
1345
911
 
1346
-
1347
912
  </div>
1348
913
 
1349
-
1350
914
  <div id="method-i-change_row_italics" class="method-detail ">
1351
-
1352
915
  <div class="method-heading">
1353
916
  <span class="method-name">change_row_italics</span><span
1354
917
  class="method-args">(row = 0, italicized = false)</span>
1355
-
1356
918
  <span class="method-click-advice">click to toggle source</span>
1357
-
1358
919
  </div>
1359
-
1360
920
 
1361
921
  <div class="method-description">
1362
922
 
1363
-
1364
-
1365
-
1366
923
 
1367
-
1368
924
  <div class="method-source-code" id="change_row_italics-source">
1369
- <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/worksheet.rb, line 460</span>
925
+ <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/worksheet.rb, line 520</span>
1370
926
  <span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">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>)
1371
927
  <span class="ruby-identifier">ensure_cell_exists</span>(<span class="ruby-identifier">row</span>)
1372
928
  <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>
@@ -1374,35 +930,23 @@
1374
930
  <span class="ruby-identifier">change_row_font</span>(<span class="ruby-identifier">row</span>, <span class="ruby-constant">Worksheet</span><span class="ruby-operator">::</span><span class="ruby-constant">ITALICS</span>, <span class="ruby-identifier">italicized</span>, <span class="ruby-identifier">font</span>)
1375
931
  <span class="ruby-keyword">end</span></pre>
1376
932
  </div>
1377
-
1378
933
  </div>
1379
934
 
1380
-
1381
935
 
1382
-
1383
936
  </div>
1384
937
 
1385
-
1386
938
  <div id="method-i-change_row_strikethrough" class="method-detail ">
1387
-
1388
939
  <div class="method-heading">
1389
940
  <span class="method-name">change_row_strikethrough</span><span
1390
941
  class="method-args">(row = 0, struckthrough=false)</span>
1391
-
1392
942
  <span class="method-click-advice">click to toggle source</span>
1393
-
1394
943
  </div>
1395
-
1396
944
 
1397
945
  <div class="method-description">
1398
946
 
1399
-
1400
-
1401
-
1402
947
 
1403
-
1404
948
  <div class="method-source-code" id="change_row_strikethrough-source">
1405
- <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/worksheet.rb, line 481</span>
949
+ <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/worksheet.rb, line 541</span>
1406
950
  <span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">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>)
1407
951
  <span class="ruby-identifier">ensure_cell_exists</span>(<span class="ruby-identifier">row</span>)
1408
952
  <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>
@@ -1410,35 +954,23 @@
1410
954
  <span class="ruby-identifier">change_row_font</span>(<span class="ruby-identifier">row</span>, <span class="ruby-constant">Worksheet</span><span class="ruby-operator">::</span><span class="ruby-constant">STRIKETHROUGH</span>, <span class="ruby-identifier">struckthrough</span>, <span class="ruby-identifier">font</span>)
1411
955
  <span class="ruby-keyword">end</span></pre>
1412
956
  </div>
1413
-
1414
957
  </div>
1415
958
 
1416
-
1417
959
 
1418
-
1419
960
  </div>
1420
961
 
1421
-
1422
962
  <div id="method-i-change_row_underline" class="method-detail ">
1423
-
1424
963
  <div class="method-heading">
1425
964
  <span class="method-name">change_row_underline</span><span
1426
965
  class="method-args">(row = 0, underlined=false)</span>
1427
-
1428
966
  <span class="method-click-advice">click to toggle source</span>
1429
-
1430
967
  </div>
1431
-
1432
968
 
1433
969
  <div class="method-description">
1434
970
 
1435
-
1436
-
1437
-
1438
971
 
1439
-
1440
972
  <div class="method-source-code" id="change_row_underline-source">
1441
- <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/worksheet.rb, line 474</span>
973
+ <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/worksheet.rb, line 534</span>
1442
974
  <span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">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>)
1443
975
  <span class="ruby-identifier">ensure_cell_exists</span>(<span class="ruby-identifier">row</span>)
1444
976
  <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>
@@ -1446,103 +978,67 @@
1446
978
  <span class="ruby-identifier">change_row_font</span>(<span class="ruby-identifier">row</span>, <span class="ruby-constant">Worksheet</span><span class="ruby-operator">::</span><span class="ruby-constant">UNDERLINE</span>, <span class="ruby-identifier">underlined</span>, <span class="ruby-identifier">font</span>)
1447
979
  <span class="ruby-keyword">end</span></pre>
1448
980
  </div>
1449
-
1450
981
  </div>
1451
982
 
1452
-
1453
983
 
1454
-
1455
984
  </div>
1456
985
 
1457
-
1458
986
  <div id="method-i-change_row_vertical_alignment" class="method-detail ">
1459
-
1460
987
  <div class="method-heading">
1461
988
  <span class="method-name">change_row_vertical_alignment</span><span
1462
989
  class="method-args">(row = 0, alignment = &#39;center&#39;)</span>
1463
-
1464
990
  <span class="method-click-advice">click to toggle source</span>
1465
-
1466
991
  </div>
1467
-
1468
992
 
1469
993
  <div class="method-description">
1470
994
 
1471
-
1472
-
1473
-
1474
995
 
1475
-
1476
996
  <div class="method-source-code" id="change_row_vertical_alignment-source">
1477
- <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/worksheet.rb, line 387</span>
997
+ <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/worksheet.rb, line 447</span>
1478
998
  <span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">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>)
1479
999
  <span class="ruby-identifier">validate_workbook</span>
1480
1000
  <span class="ruby-identifier">validate_nonnegative</span>(<span class="ruby-identifier">row</span>)
1481
1001
  <span class="ruby-identifier">change_row_alignment</span>(<span class="ruby-identifier">row</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> }
1482
1002
  <span class="ruby-keyword">end</span></pre>
1483
1003
  </div>
1484
-
1485
1004
  </div>
1486
1005
 
1487
-
1488
1006
 
1489
-
1490
1007
  </div>
1491
1008
 
1492
-
1493
1009
  <div id="method-i-column_font" class="method-detail ">
1494
-
1495
1010
  <div class="method-heading">
1496
1011
  <span class="method-name">column_font</span><span
1497
1012
  class="method-args">(col)</span>
1498
-
1499
1013
  <span class="method-click-advice">click to toggle source</span>
1500
-
1501
1014
  </div>
1502
-
1503
1015
 
1504
1016
  <div class="method-description">
1505
1017
 
1506
-
1507
-
1508
-
1509
1018
 
1510
-
1511
1019
  <div class="method-source-code" id="column_font-source">
1512
- <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/worksheet.rb, line 368</span>
1020
+ <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/worksheet.rb, line 428</span>
1513
1021
  <span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">column_font</span>(<span class="ruby-identifier">col</span>)
1514
1022
  <span class="ruby-identifier">validate_workbook</span>
1515
1023
 
1516
1024
  <span class="ruby-ivar">@workbook</span>.<span class="ruby-identifier">fonts</span>[<span class="ruby-ivar">@workbook</span>.<span class="ruby-identifier">cell_xfs</span>[<span class="ruby-identifier">get_cols_style_index</span>(<span class="ruby-identifier">col</span>)].<span class="ruby-identifier">font_id</span>]
1517
1025
  <span class="ruby-keyword">end</span></pre>
1518
1026
  </div>
1519
-
1520
1027
  </div>
1521
1028
 
1522
-
1523
1029
 
1524
-
1525
1030
  </div>
1526
1031
 
1527
-
1528
1032
  <div id="method-i-delete_cell" class="method-detail ">
1529
-
1530
1033
  <div class="method-heading">
1531
1034
  <span class="method-name">delete_cell</span><span
1532
1035
  class="method-args">(row_index = 0, column_index=0, shift=nil)</span>
1533
-
1534
1036
  <span class="method-click-advice">click to toggle source</span>
1535
-
1536
1037
  </div>
1537
-
1538
1038
 
1539
1039
  <div class="method-description">
1540
-
1541
1040
  <p>by default, only sets cell to nil if :left is specified, method will shift row contents to the right of the deleted cell to the left if :up is specified, method will shift column contents below the deleted cell upward</p>
1542
-
1543
-
1544
1041
 
1545
-
1546
1042
  <div class="method-source-code" id="delete_cell-source">
1547
1043
  <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/worksheet.rb, line 41</span>
1548
1044
  <span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">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>)
@@ -1576,35 +1072,23 @@
1576
1072
  <span class="ruby-keyword">return</span> <span class="ruby-identifier">old_cell</span>
1577
1073
  <span class="ruby-keyword">end</span></pre>
1578
1074
  </div>
1579
-
1580
1075
  </div>
1581
1076
 
1582
-
1583
1077
 
1584
-
1585
1078
  </div>
1586
1079
 
1587
-
1588
1080
  <div id="method-i-delete_column" class="method-detail ">
1589
-
1590
1081
  <div class="method-heading">
1591
1082
  <span class="method-name">delete_column</span><span
1592
1083
  class="method-args">(column_index = 0)</span>
1593
-
1594
1084
  <span class="method-click-advice">click to toggle source</span>
1595
-
1596
1085
  </div>
1597
-
1598
1086
 
1599
1087
  <div class="method-description">
1600
1088
 
1601
-
1602
-
1603
-
1604
1089
 
1605
-
1606
1090
  <div class="method-source-code" id="delete_column-source">
1607
- <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/worksheet.rb, line 158</span>
1091
+ <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/worksheet.rb, line 202</span>
1608
1092
  <span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">delete_column</span>(<span class="ruby-identifier">column_index</span> = <span class="ruby-value">0</span>)
1609
1093
  <span class="ruby-identifier">validate_workbook</span>
1610
1094
  <span class="ruby-identifier">validate_nonnegative</span>(<span class="ruby-identifier">column_index</span>)
@@ -1621,37 +1105,41 @@
1621
1105
  }
1622
1106
 
1623
1107
  <span class="ruby-identifier">cols</span>.<span class="ruby-identifier">each</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">range</span><span class="ruby-operator">|</span> <span class="ruby-identifier">range</span>.<span class="ruby-identifier">delete_column</span>(<span class="ruby-identifier">column_index</span>) }
1108
+
1109
+ <span class="ruby-comment"># Update row number of merged cells</span>
1110
+ <span class="ruby-keyword">self</span>.<span class="ruby-identifier">merged_cells</span> <span class="ruby-operator">||=</span> <span class="ruby-constant">RubyXL</span><span class="ruby-operator">::</span><span class="ruby-constant">MergedCells</span>.<span class="ruby-identifier">new</span>
1111
+ <span class="ruby-identifier">merged_cells</span>.<span class="ruby-identifier">delete_if</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">mc</span><span class="ruby-operator">|</span> <span class="ruby-identifier">mc</span>.<span class="ruby-identifier">ref</span>.<span class="ruby-identifier">col_range</span> <span class="ruby-operator">==</span> (<span class="ruby-identifier">column_index</span><span class="ruby-operator">..</span><span class="ruby-identifier">column_index</span>) }
1112
+ <span class="ruby-identifier">merged_cells</span>.<span class="ruby-identifier">each</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">mc</span><span class="ruby-operator">|</span>
1113
+ <span class="ruby-keyword">next</span> <span class="ruby-keyword">if</span> <span class="ruby-identifier">mc</span>.<span class="ruby-identifier">ref</span>.<span class="ruby-identifier">col_range</span>.<span class="ruby-identifier">last</span> <span class="ruby-operator">&lt;</span> <span class="ruby-identifier">column_index</span>
1114
+
1115
+ <span class="ruby-identifier">in_merged_cell</span> = <span class="ruby-identifier">mc</span>.<span class="ruby-identifier">ref</span>.<span class="ruby-identifier">col_range</span>.<span class="ruby-identifier">first</span> <span class="ruby-operator">&lt;=</span> <span class="ruby-identifier">column_index</span>
1116
+ <span class="ruby-identifier">mc</span>.<span class="ruby-identifier">ref</span> = <span class="ruby-constant">RubyXL</span><span class="ruby-operator">::</span><span class="ruby-constant">Reference</span>.<span class="ruby-identifier">new</span>(
1117
+ <span class="ruby-identifier">mc</span>.<span class="ruby-identifier">ref</span>.<span class="ruby-identifier">row_range</span>.<span class="ruby-identifier">first</span>,
1118
+ <span class="ruby-identifier">mc</span>.<span class="ruby-identifier">ref</span>.<span class="ruby-identifier">row_range</span>.<span class="ruby-identifier">last</span>,
1119
+ <span class="ruby-identifier">mc</span>.<span class="ruby-identifier">ref</span>.<span class="ruby-identifier">col_range</span>.<span class="ruby-identifier">first</span> <span class="ruby-operator">-</span> (<span class="ruby-identifier">in_merged_cell</span> <span class="ruby-operator">?</span> <span class="ruby-value">0</span> <span class="ruby-operator">:</span> <span class="ruby-value">1</span>),
1120
+ <span class="ruby-identifier">mc</span>.<span class="ruby-identifier">ref</span>.<span class="ruby-identifier">col_range</span>.<span class="ruby-identifier">last</span> <span class="ruby-operator">-</span> <span class="ruby-value">1</span>,
1121
+ )
1122
+ }
1123
+ <span class="ruby-identifier">merged_cells</span>.<span class="ruby-identifier">delete_if</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">mc</span><span class="ruby-operator">|</span> <span class="ruby-identifier">mc</span>.<span class="ruby-identifier">ref</span>.<span class="ruby-identifier">single_cell?</span> }
1624
1124
  <span class="ruby-keyword">end</span></pre>
1625
1125
  </div>
1626
-
1627
1126
  </div>
1628
1127
 
1629
-
1630
1128
 
1631
-
1632
1129
  </div>
1633
1130
 
1634
-
1635
1131
  <div id="method-i-delete_row" class="method-detail ">
1636
-
1637
1132
  <div class="method-heading">
1638
1133
  <span class="method-name">delete_row</span><span
1639
1134
  class="method-args">(row_index=0)</span>
1640
-
1641
1135
  <span class="method-click-advice">click to toggle source</span>
1642
-
1643
1136
  </div>
1644
-
1645
1137
 
1646
1138
  <div class="method-description">
1647
1139
 
1648
-
1649
-
1650
-
1651
1140
 
1652
-
1653
1141
  <div class="method-source-code" id="delete_row-source">
1654
- <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/worksheet.rb, line 112</span>
1142
+ <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/worksheet.rb, line 126</span>
1655
1143
  <span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">delete_row</span>(<span class="ruby-identifier">row_index</span>=<span class="ruby-value">0</span>)
1656
1144
  <span class="ruby-identifier">validate_workbook</span>
1657
1145
  <span class="ruby-identifier">validate_nonnegative</span>(<span class="ruby-identifier">row_index</span>)
@@ -1664,107 +1152,87 @@
1664
1152
  <span class="ruby-identifier">row</span> <span class="ruby-operator">&amp;&amp;</span> <span class="ruby-identifier">row</span>.<span class="ruby-identifier">cells</span>.<span class="ruby-identifier">each</span>{ <span class="ruby-operator">|</span><span class="ruby-identifier">c</span><span class="ruby-operator">|</span> <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">unless</span> <span class="ruby-identifier">c</span>.<span class="ruby-identifier">nil?</span> }
1665
1153
  }
1666
1154
 
1155
+ <span class="ruby-comment"># Update row number of merged cells</span>
1156
+ <span class="ruby-keyword">self</span>.<span class="ruby-identifier">merged_cells</span> <span class="ruby-operator">||=</span> <span class="ruby-constant">RubyXL</span><span class="ruby-operator">::</span><span class="ruby-constant">MergedCells</span>.<span class="ruby-identifier">new</span>
1157
+ <span class="ruby-identifier">merged_cells</span>.<span class="ruby-identifier">delete_if</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">mc</span><span class="ruby-operator">|</span> <span class="ruby-identifier">mc</span>.<span class="ruby-identifier">ref</span>.<span class="ruby-identifier">row_range</span> <span class="ruby-operator">==</span> (<span class="ruby-identifier">row_index</span><span class="ruby-operator">..</span><span class="ruby-identifier">row_index</span>) }
1158
+ <span class="ruby-identifier">merged_cells</span>.<span class="ruby-identifier">each</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">mc</span><span class="ruby-operator">|</span>
1159
+ <span class="ruby-keyword">next</span> <span class="ruby-keyword">if</span> <span class="ruby-identifier">mc</span>.<span class="ruby-identifier">ref</span>.<span class="ruby-identifier">row_range</span>.<span class="ruby-identifier">last</span> <span class="ruby-operator">&lt;</span> <span class="ruby-identifier">row_index</span>
1160
+
1161
+ <span class="ruby-identifier">in_merged_cell</span> = <span class="ruby-identifier">mc</span>.<span class="ruby-identifier">ref</span>.<span class="ruby-identifier">row_range</span>.<span class="ruby-identifier">first</span> <span class="ruby-operator">&lt;=</span> <span class="ruby-identifier">row_index</span>
1162
+ <span class="ruby-identifier">mc</span>.<span class="ruby-identifier">ref</span> = <span class="ruby-constant">RubyXL</span><span class="ruby-operator">::</span><span class="ruby-constant">Reference</span>.<span class="ruby-identifier">new</span>(
1163
+ <span class="ruby-identifier">mc</span>.<span class="ruby-identifier">ref</span>.<span class="ruby-identifier">row_range</span>.<span class="ruby-identifier">first</span> <span class="ruby-operator">-</span> (<span class="ruby-identifier">in_merged_cell</span> <span class="ruby-operator">?</span> <span class="ruby-value">0</span> <span class="ruby-operator">:</span> <span class="ruby-value">1</span>),
1164
+ <span class="ruby-identifier">mc</span>.<span class="ruby-identifier">ref</span>.<span class="ruby-identifier">row_range</span>.<span class="ruby-identifier">last</span> <span class="ruby-operator">-</span> <span class="ruby-value">1</span>,
1165
+ <span class="ruby-identifier">mc</span>.<span class="ruby-identifier">ref</span>.<span class="ruby-identifier">col_range</span>.<span class="ruby-identifier">first</span>,
1166
+ <span class="ruby-identifier">mc</span>.<span class="ruby-identifier">ref</span>.<span class="ruby-identifier">col_range</span>.<span class="ruby-identifier">last</span>,
1167
+ )
1168
+ }
1169
+ <span class="ruby-identifier">merged_cells</span>.<span class="ruby-identifier">delete_if</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">mc</span><span class="ruby-operator">|</span> <span class="ruby-identifier">mc</span>.<span class="ruby-identifier">ref</span>.<span class="ruby-identifier">single_cell?</span> }
1170
+
1667
1171
  <span class="ruby-keyword">return</span> <span class="ruby-identifier">deleted</span>
1668
1172
  <span class="ruby-keyword">end</span></pre>
1669
1173
  </div>
1670
-
1671
1174
  </div>
1672
1175
 
1673
-
1674
1176
 
1675
-
1676
1177
  </div>
1677
1178
 
1678
-
1679
1179
  <div id="method-i-get_col_style" class="method-detail ">
1680
-
1681
1180
  <div class="method-heading">
1682
1181
  <span class="method-name">get_col_style</span><span
1683
1182
  class="method-args">(column_index)</span>
1684
-
1685
1183
  <span class="method-click-advice">click to toggle source</span>
1686
-
1687
1184
  </div>
1688
-
1689
1185
 
1690
1186
  <div class="method-description">
1691
-
1692
1187
  <p>Helper method to get the style index for a column</p>
1693
-
1694
-
1695
1188
 
1696
-
1697
1189
  <div class="method-source-code" id="get_col_style-source">
1698
- <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/worksheet.rb, line 325</span>
1190
+ <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/worksheet.rb, line 385</span>
1699
1191
  <span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">get_col_style</span>(<span class="ruby-identifier">column_index</span>)
1700
1192
  <span class="ruby-identifier">range</span> = <span class="ruby-identifier">cols</span>.<span class="ruby-identifier">locate_range</span>(<span class="ruby-identifier">column_index</span>)
1701
1193
  (<span class="ruby-identifier">range</span> <span class="ruby-operator">&amp;&amp;</span> <span class="ruby-identifier">range</span>.<span class="ruby-identifier">style_index</span>) <span class="ruby-operator">||</span> <span class="ruby-value">0</span>
1702
1194
  <span class="ruby-keyword">end</span></pre>
1703
1195
  </div>
1704
-
1705
1196
  </div>
1706
1197
 
1707
-
1708
1198
 
1709
-
1710
1199
  </div>
1711
1200
 
1712
-
1713
1201
  <div id="method-i-get_cols_style_index" class="method-detail ">
1714
-
1715
1202
  <div class="method-heading">
1716
1203
  <span class="method-name">get_cols_style_index</span><span
1717
1204
  class="method-args">(column_index)</span>
1718
-
1719
1205
  <span class="method-click-advice">click to toggle source</span>
1720
-
1721
1206
  </div>
1722
-
1723
1207
 
1724
1208
  <div class="method-description">
1725
1209
 
1726
-
1727
-
1728
-
1729
1210
 
1730
-
1731
1211
  <div class="method-source-code" id="get_cols_style_index-source">
1732
- <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/worksheet.rb, line 251</span>
1212
+ <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/worksheet.rb, line 311</span>
1733
1213
  <span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">get_cols_style_index</span>(<span class="ruby-identifier">column_index</span>)
1734
1214
  <span class="ruby-identifier">validate_nonnegative</span>(<span class="ruby-identifier">column_index</span>)
1735
1215
  <span class="ruby-identifier">range</span> = <span class="ruby-identifier">cols</span>.<span class="ruby-identifier">locate_range</span>(<span class="ruby-identifier">column_index</span>)
1736
1216
  (<span class="ruby-identifier">range</span> <span class="ruby-operator">&amp;&amp;</span> <span class="ruby-identifier">range</span>.<span class="ruby-identifier">style_index</span>) <span class="ruby-operator">||</span> <span class="ruby-value">0</span>
1737
1217
  <span class="ruby-keyword">end</span></pre>
1738
1218
  </div>
1739
-
1740
1219
  </div>
1741
1220
 
1742
-
1743
1221
 
1744
-
1745
1222
  </div>
1746
1223
 
1747
-
1748
1224
  <div id="method-i-get_column_alignment" class="method-detail ">
1749
-
1750
1225
  <div class="method-heading">
1751
1226
  <span class="method-name">get_column_alignment</span><span
1752
1227
  class="method-args">(col, type)</span>
1753
-
1754
1228
  <span class="method-click-advice">click to toggle source</span>
1755
-
1756
1229
  </div>
1757
-
1758
1230
 
1759
1231
  <div class="method-description">
1760
1232
 
1761
-
1762
-
1763
-
1764
1233
 
1765
-
1766
1234
  <div class="method-source-code" id="get_column_alignment-source">
1767
- <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/worksheet.rb, line 374</span>
1235
+ <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/worksheet.rb, line 434</span>
1768
1236
  <span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">get_column_alignment</span>(<span class="ruby-identifier">col</span>, <span class="ruby-identifier">type</span>)
1769
1237
  <span class="ruby-identifier">validate_workbook</span>
1770
1238
 
@@ -1772,35 +1240,23 @@
1772
1240
  <span class="ruby-identifier">xf</span>.<span class="ruby-identifier">alignment</span> <span class="ruby-operator">&amp;&amp;</span> <span class="ruby-identifier">xf</span>.<span class="ruby-identifier">alignment</span>.<span class="ruby-identifier">send</span>(<span class="ruby-identifier">type</span>)
1773
1241
  <span class="ruby-keyword">end</span></pre>
1774
1242
  </div>
1775
-
1776
1243
  </div>
1777
1244
 
1778
-
1779
1245
 
1780
-
1781
1246
  </div>
1782
1247
 
1783
-
1784
1248
  <div id="method-i-get_column_border" class="method-detail ">
1785
-
1786
1249
  <div class="method-heading">
1787
1250
  <span class="method-name">get_column_border</span><span
1788
1251
  class="method-args">(col, border_direction)</span>
1789
-
1790
1252
  <span class="method-click-advice">click to toggle source</span>
1791
-
1792
1253
  </div>
1793
-
1794
1254
 
1795
1255
  <div class="method-description">
1796
1256
 
1797
-
1798
-
1799
-
1800
1257
 
1801
-
1802
1258
  <div class="method-source-code" id="get_column_border-source">
1803
- <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/worksheet.rb, line 352</span>
1259
+ <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/worksheet.rb, line 412</span>
1804
1260
  <span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">get_column_border</span>(<span class="ruby-identifier">col</span>, <span class="ruby-identifier">border_direction</span>)
1805
1261
  <span class="ruby-identifier">validate_workbook</span>
1806
1262
 
@@ -1809,35 +1265,23 @@
1809
1265
  <span class="ruby-identifier">border</span> <span class="ruby-operator">&amp;&amp;</span> <span class="ruby-identifier">border</span>.<span class="ruby-identifier">get_edge_style</span>(<span class="ruby-identifier">border_direction</span>)
1810
1266
  <span class="ruby-keyword">end</span></pre>
1811
1267
  </div>
1812
-
1813
1268
  </div>
1814
1269
 
1815
-
1816
1270
 
1817
-
1818
1271
  </div>
1819
1272
 
1820
-
1821
1273
  <div id="method-i-get_column_border_color" class="method-detail ">
1822
-
1823
1274
  <div class="method-heading">
1824
1275
  <span class="method-name">get_column_border_color</span><span
1825
1276
  class="method-args">(col, border_direction)</span>
1826
-
1827
1277
  <span class="method-click-advice">click to toggle source</span>
1828
-
1829
1278
  </div>
1830
-
1831
1279
 
1832
1280
  <div class="method-description">
1833
1281
 
1834
-
1835
-
1836
-
1837
1282
 
1838
-
1839
1283
  <div class="method-source-code" id="get_column_border_color-source">
1840
- <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/worksheet.rb, line 360</span>
1284
+ <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/worksheet.rb, line 420</span>
1841
1285
  <span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">get_column_border_color</span>(<span class="ruby-identifier">col</span>, <span class="ruby-identifier">border_direction</span>)
1842
1286
  <span class="ruby-identifier">validate_workbook</span>
1843
1287
 
@@ -1846,35 +1290,23 @@
1846
1290
  <span class="ruby-identifier">border</span> <span class="ruby-operator">&amp;&amp;</span> <span class="ruby-identifier">border</span>.<span class="ruby-identifier">get_edge_color</span>(<span class="ruby-identifier">border_direction</span>)
1847
1291
  <span class="ruby-keyword">end</span></pre>
1848
1292
  </div>
1849
-
1850
1293
  </div>
1851
1294
 
1852
-
1853
1295
 
1854
-
1855
1296
  </div>
1856
1297
 
1857
-
1858
1298
  <div id="method-i-get_column_fill" class="method-detail ">
1859
-
1860
1299
  <div class="method-heading">
1861
1300
  <span class="method-name">get_column_fill</span><span
1862
1301
  class="method-args">(col=0)</span>
1863
-
1864
1302
  <span class="method-click-advice">click to toggle source</span>
1865
-
1866
1303
  </div>
1867
-
1868
1304
 
1869
1305
  <div class="method-description">
1870
1306
 
1871
-
1872
-
1873
-
1874
1307
 
1875
-
1876
1308
  <div class="method-source-code" id="get_column_fill-source">
1877
- <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/worksheet.rb, line 330</span>
1309
+ <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/worksheet.rb, line 390</span>
1878
1310
  <span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">get_column_fill</span>(<span class="ruby-identifier">col</span>=<span class="ruby-value">0</span>)
1879
1311
  <span class="ruby-identifier">validate_workbook</span>
1880
1312
  <span class="ruby-identifier">validate_nonnegative</span>(<span class="ruby-identifier">col</span>)
@@ -1882,172 +1314,112 @@
1882
1314
  <span class="ruby-ivar">@workbook</span>.<span class="ruby-identifier">get_fill_color</span>(<span class="ruby-identifier">get_col_xf</span>(<span class="ruby-identifier">col</span>))
1883
1315
  <span class="ruby-keyword">end</span></pre>
1884
1316
  </div>
1885
-
1886
1317
  </div>
1887
1318
 
1888
-
1889
1319
 
1890
-
1891
1320
  </div>
1892
1321
 
1893
-
1894
1322
  <div id="method-i-get_column_font_color" class="method-detail ">
1895
-
1896
1323
  <div class="method-heading">
1897
1324
  <span class="method-name">get_column_font_color</span><span
1898
1325
  class="method-args">(col = 0)</span>
1899
-
1900
1326
  <span class="method-click-advice">click to toggle source</span>
1901
-
1902
1327
  </div>
1903
-
1904
1328
 
1905
1329
  <div class="method-description">
1906
1330
 
1907
-
1908
-
1909
-
1910
1331
 
1911
-
1912
1332
  <div class="method-source-code" id="get_column_font_color-source">
1913
- <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/worksheet.rb, line 267</span>
1333
+ <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/worksheet.rb, line 327</span>
1914
1334
  <span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">get_column_font_color</span>(<span class="ruby-identifier">col</span> = <span class="ruby-value">0</span>)
1915
1335
  <span class="ruby-identifier">font</span> = <span class="ruby-identifier">column_font</span>(<span class="ruby-identifier">col</span>)
1916
1336
  <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>)
1917
1337
  <span class="ruby-keyword">end</span></pre>
1918
1338
  </div>
1919
-
1920
1339
  </div>
1921
1340
 
1922
-
1923
1341
 
1924
-
1925
1342
  </div>
1926
1343
 
1927
-
1928
1344
  <div id="method-i-get_column_font_name" class="method-detail ">
1929
-
1930
1345
  <div class="method-heading">
1931
1346
  <span class="method-name">get_column_font_name</span><span
1932
1347
  class="method-args">(col = 0)</span>
1933
-
1934
1348
  <span class="method-click-advice">click to toggle source</span>
1935
-
1936
1349
  </div>
1937
-
1938
1350
 
1939
1351
  <div class="method-description">
1940
1352
 
1941
-
1942
-
1943
-
1944
1353
 
1945
-
1946
1354
  <div class="method-source-code" id="get_column_font_name-source">
1947
- <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/worksheet.rb, line 257</span>
1355
+ <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/worksheet.rb, line 317</span>
1948
1356
  <span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">get_column_font_name</span>(<span class="ruby-identifier">col</span> = <span class="ruby-value">0</span>)
1949
1357
  <span class="ruby-identifier">font</span> = <span class="ruby-identifier">column_font</span>(<span class="ruby-identifier">col</span>)
1950
1358
  <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>
1951
1359
  <span class="ruby-keyword">end</span></pre>
1952
1360
  </div>
1953
-
1954
1361
  </div>
1955
1362
 
1956
-
1957
1363
 
1958
-
1959
1364
  </div>
1960
1365
 
1961
-
1962
1366
  <div id="method-i-get_column_font_size" class="method-detail ">
1963
-
1964
1367
  <div class="method-heading">
1965
1368
  <span class="method-name">get_column_font_size</span><span
1966
1369
  class="method-args">(col = 0)</span>
1967
-
1968
1370
  <span class="method-click-advice">click to toggle source</span>
1969
-
1970
1371
  </div>
1971
-
1972
1372
 
1973
1373
  <div class="method-description">
1974
1374
 
1975
-
1976
-
1977
-
1978
1375
 
1979
-
1980
1376
  <div class="method-source-code" id="get_column_font_size-source">
1981
- <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/worksheet.rb, line 262</span>
1377
+ <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/worksheet.rb, line 322</span>
1982
1378
  <span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">get_column_font_size</span>(<span class="ruby-identifier">col</span> = <span class="ruby-value">0</span>)
1983
1379
  <span class="ruby-identifier">font</span> = <span class="ruby-identifier">column_font</span>(<span class="ruby-identifier">col</span>)
1984
1380
  <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>
1985
1381
  <span class="ruby-keyword">end</span></pre>
1986
1382
  </div>
1987
-
1988
1383
  </div>
1989
1384
 
1990
-
1991
1385
 
1992
-
1993
1386
  </div>
1994
1387
 
1995
-
1996
1388
  <div id="method-i-get_column_width" class="method-detail ">
1997
-
1998
1389
  <div class="method-heading">
1999
1390
  <span class="method-name">get_column_width</span><span
2000
1391
  class="method-args">(column_index = 0)</span>
2001
-
2002
1392
  <span class="method-click-advice">click to toggle source</span>
2003
-
2004
1393
  </div>
2005
-
2006
1394
 
2007
1395
  <div class="method-description">
2008
-
2009
1396
  <p>Get column width measured in number of digits, as per <a href="http://msdn.microsoft.com/en-us/library/documentformat.openxml.spreadsheet.column%28v=office.14%29.aspx">msdn.microsoft.com/en-us/library/documentformat.openxml.spreadsheet.column%28v=office.14%29.aspx</a></p>
2010
-
2011
-
2012
1397
 
2013
-
2014
1398
  <div class="method-source-code" id="get_column_width-source">
2015
- <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/worksheet.rb, line 303</span>
1399
+ <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/worksheet.rb, line 363</span>
2016
1400
  <span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">get_column_width</span>(<span class="ruby-identifier">column_index</span> = <span class="ruby-value">0</span>)
2017
1401
  <span class="ruby-identifier">width</span> = <span class="ruby-identifier">get_column_width_raw</span>(<span class="ruby-identifier">column_index</span>)
2018
1402
  <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>
2019
1403
  (<span class="ruby-identifier">width</span> <span class="ruby-operator">-</span> (<span class="ruby-value">5.0</span> <span class="ruby-operator">/</span> <span class="ruby-constant">RubyXL</span><span class="ruby-operator">::</span><span class="ruby-constant">Font</span><span class="ruby-operator">::</span><span class="ruby-constant">MAX_DIGIT_WIDTH</span>)).<span class="ruby-identifier">round</span>
2020
1404
  <span class="ruby-keyword">end</span></pre>
2021
1405
  </div>
2022
-
2023
1406
  </div>
2024
1407
 
2025
-
2026
1408
 
2027
-
2028
1409
  </div>
2029
1410
 
2030
-
2031
1411
  <div id="method-i-get_column_width_raw" class="method-detail ">
2032
-
2033
1412
  <div class="method-heading">
2034
1413
  <span class="method-name">get_column_width_raw</span><span
2035
1414
  class="method-args">(column_index = 0)</span>
2036
-
2037
1415
  <span class="method-click-advice">click to toggle source</span>
2038
-
2039
1416
  </div>
2040
-
2041
1417
 
2042
1418
  <div class="method-description">
2043
-
2044
1419
  <p>Get raw column width value as stored in the file</p>
2045
-
2046
-
2047
1420
 
2048
-
2049
1421
  <div class="method-source-code" id="get_column_width_raw-source">
2050
- <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/worksheet.rb, line 293</span>
1422
+ <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/worksheet.rb, line 353</span>
2051
1423
  <span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">get_column_width_raw</span>(<span class="ruby-identifier">column_index</span> = <span class="ruby-value">0</span>)
2052
1424
  <span class="ruby-identifier">validate_workbook</span>
2053
1425
  <span class="ruby-identifier">validate_nonnegative</span>(<span class="ruby-identifier">column_index</span>)
@@ -2056,35 +1428,23 @@
2056
1428
  <span class="ruby-identifier">range</span> <span class="ruby-operator">&amp;&amp;</span> <span class="ruby-identifier">range</span>.<span class="ruby-identifier">width</span>
2057
1429
  <span class="ruby-keyword">end</span></pre>
2058
1430
  </div>
2059
-
2060
1431
  </div>
2061
1432
 
2062
-
2063
1433
 
2064
-
2065
1434
  </div>
2066
1435
 
2067
-
2068
1436
  <div id="method-i-get_row_alignment" class="method-detail ">
2069
-
2070
1437
  <div class="method-heading">
2071
1438
  <span class="method-name">get_row_alignment</span><span
2072
1439
  class="method-args">(row, is_horizontal)</span>
2073
-
2074
1440
  <span class="method-click-advice">click to toggle source</span>
2075
-
2076
1441
  </div>
2077
-
2078
1442
 
2079
1443
  <div class="method-description">
2080
1444
 
2081
-
2082
-
2083
-
2084
1445
 
2085
-
2086
1446
  <div class="method-source-code" id="get_row_alignment-source">
2087
- <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/worksheet.rb, line 240</span>
1447
+ <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/worksheet.rb, line 300</span>
2088
1448
  <span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">get_row_alignment</span>(<span class="ruby-identifier">row</span>, <span class="ruby-identifier">is_horizontal</span>)
2089
1449
  <span class="ruby-identifier">validate_workbook</span>
2090
1450
 
@@ -2096,35 +1456,23 @@
2096
1456
  <span class="ruby-keyword">end</span>
2097
1457
  <span class="ruby-keyword">end</span></pre>
2098
1458
  </div>
2099
-
2100
1459
  </div>
2101
1460
 
2102
-
2103
1461
 
2104
-
2105
1462
  </div>
2106
1463
 
2107
-
2108
1464
  <div id="method-i-get_row_border" class="method-detail ">
2109
-
2110
1465
  <div class="method-heading">
2111
1466
  <span class="method-name">get_row_border</span><span
2112
1467
  class="method-args">(row, border_direction)</span>
2113
-
2114
1468
  <span class="method-click-advice">click to toggle source</span>
2115
-
2116
1469
  </div>
2117
-
2118
1470
 
2119
1471
  <div class="method-description">
2120
1472
 
2121
-
2122
-
2123
-
2124
1473
 
2125
-
2126
1474
  <div class="method-source-code" id="get_row_border-source">
2127
- <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/worksheet.rb, line 222</span>
1475
+ <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/worksheet.rb, line 282</span>
2128
1476
  <span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">get_row_border</span>(<span class="ruby-identifier">row</span>, <span class="ruby-identifier">border_direction</span>)
2129
1477
  <span class="ruby-identifier">validate_workbook</span>
2130
1478
 
@@ -2132,35 +1480,23 @@
2132
1480
  <span class="ruby-identifier">border</span> <span class="ruby-operator">&amp;&amp;</span> <span class="ruby-identifier">border</span>.<span class="ruby-identifier">get_edge_style</span>(<span class="ruby-identifier">border_direction</span>)
2133
1481
  <span class="ruby-keyword">end</span></pre>
2134
1482
  </div>
2135
-
2136
1483
  </div>
2137
1484
 
2138
-
2139
1485
 
2140
-
2141
1486
  </div>
2142
1487
 
2143
-
2144
1488
  <div id="method-i-get_row_border_color" class="method-detail ">
2145
-
2146
1489
  <div class="method-heading">
2147
1490
  <span class="method-name">get_row_border_color</span><span
2148
1491
  class="method-args">(row, border_direction)</span>
2149
-
2150
1492
  <span class="method-click-advice">click to toggle source</span>
2151
-
2152
1493
  </div>
2153
-
2154
1494
 
2155
1495
  <div class="method-description">
2156
1496
 
2157
-
2158
-
2159
-
2160
1497
 
2161
-
2162
1498
  <div class="method-source-code" id="get_row_border_color-source">
2163
- <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/worksheet.rb, line 229</span>
1499
+ <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/worksheet.rb, line 289</span>
2164
1500
  <span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">get_row_border_color</span>(<span class="ruby-identifier">row</span>, <span class="ruby-identifier">border_direction</span>)
2165
1501
  <span class="ruby-identifier">validate_workbook</span>
2166
1502
 
@@ -2168,169 +1504,109 @@
2168
1504
  <span class="ruby-identifier">border</span> <span class="ruby-operator">&amp;&amp;</span> <span class="ruby-identifier">border</span>.<span class="ruby-identifier">get_edge_color</span>(<span class="ruby-identifier">border_direction</span>)
2169
1505
  <span class="ruby-keyword">end</span></pre>
2170
1506
  </div>
2171
-
2172
1507
  </div>
2173
1508
 
2174
-
2175
1509
 
2176
-
2177
1510
  </div>
2178
1511
 
2179
-
2180
1512
  <div id="method-i-get_row_fill" class="method-detail ">
2181
-
2182
1513
  <div class="method-heading">
2183
1514
  <span class="method-name">get_row_fill</span><span
2184
1515
  class="method-args">(row = 0)</span>
2185
-
2186
1516
  <span class="method-click-advice">click to toggle source</span>
2187
-
2188
1517
  </div>
2189
-
2190
1518
 
2191
1519
  <div class="method-description">
2192
1520
 
2193
-
2194
-
2195
-
2196
1521
 
2197
-
2198
1522
  <div class="method-source-code" id="get_row_fill-source">
2199
- <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/worksheet.rb, line 181</span>
1523
+ <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/worksheet.rb, line 241</span>
2200
1524
  <span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">get_row_fill</span>(<span class="ruby-identifier">row</span> = <span class="ruby-value">0</span>)
2201
1525
  (<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>
2202
1526
  <span class="ruby-keyword">end</span></pre>
2203
1527
  </div>
2204
-
2205
1528
  </div>
2206
1529
 
2207
-
2208
1530
 
2209
-
2210
1531
  </div>
2211
1532
 
2212
-
2213
1533
  <div id="method-i-get_row_font_color" class="method-detail ">
2214
-
2215
1534
  <div class="method-heading">
2216
1535
  <span class="method-name">get_row_font_color</span><span
2217
1536
  class="method-args">(row = 0)</span>
2218
-
2219
1537
  <span class="method-click-advice">click to toggle source</span>
2220
-
2221
1538
  </div>
2222
-
2223
1539
 
2224
1540
  <div class="method-description">
2225
1541
 
2226
-
2227
-
2228
-
2229
1542
 
2230
-
2231
1543
  <div class="method-source-code" id="get_row_font_color-source">
2232
- <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/worksheet.rb, line 193</span>
1544
+ <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/worksheet.rb, line 253</span>
2233
1545
  <span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">get_row_font_color</span>(<span class="ruby-identifier">row</span> = <span class="ruby-value">0</span>)
2234
1546
  <span class="ruby-identifier">font</span> = <span class="ruby-identifier">row_font</span>(<span class="ruby-identifier">row</span>)
2235
1547
  <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>
2236
1548
  <span class="ruby-identifier">color</span> <span class="ruby-operator">&amp;&amp;</span> (<span class="ruby-identifier">color</span>.<span class="ruby-identifier">rgb</span> <span class="ruby-operator">||</span> <span class="ruby-string">&#39;000000&#39;</span>)
2237
1549
  <span class="ruby-keyword">end</span></pre>
2238
1550
  </div>
2239
-
2240
1551
  </div>
2241
1552
 
2242
-
2243
1553
 
2244
-
2245
1554
  </div>
2246
1555
 
2247
-
2248
1556
  <div id="method-i-get_row_font_name" class="method-detail ">
2249
-
2250
1557
  <div class="method-heading">
2251
1558
  <span class="method-name">get_row_font_name</span><span
2252
1559
  class="method-args">(row = 0)</span>
2253
-
2254
1560
  <span class="method-click-advice">click to toggle source</span>
2255
-
2256
1561
  </div>
2257
-
2258
1562
 
2259
1563
  <div class="method-description">
2260
1564
 
2261
-
2262
-
2263
-
2264
1565
 
2265
-
2266
1566
  <div class="method-source-code" id="get_row_font_name-source">
2267
- <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/worksheet.rb, line 185</span>
1567
+ <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/worksheet.rb, line 245</span>
2268
1568
  <span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">get_row_font_name</span>(<span class="ruby-identifier">row</span> = <span class="ruby-value">0</span>)
2269
1569
  (<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>
2270
1570
  <span class="ruby-keyword">end</span></pre>
2271
1571
  </div>
2272
-
2273
1572
  </div>
2274
1573
 
2275
-
2276
1574
 
2277
-
2278
1575
  </div>
2279
1576
 
2280
-
2281
1577
  <div id="method-i-get_row_font_size" class="method-detail ">
2282
-
2283
1578
  <div class="method-heading">
2284
1579
  <span class="method-name">get_row_font_size</span><span
2285
1580
  class="method-args">(row = 0)</span>
2286
-
2287
1581
  <span class="method-click-advice">click to toggle source</span>
2288
-
2289
1582
  </div>
2290
-
2291
1583
 
2292
1584
  <div class="method-description">
2293
1585
 
2294
-
2295
-
2296
-
2297
1586
 
2298
-
2299
1587
  <div class="method-source-code" id="get_row_font_size-source">
2300
- <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/worksheet.rb, line 189</span>
1588
+ <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/worksheet.rb, line 249</span>
2301
1589
  <span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">get_row_font_size</span>(<span class="ruby-identifier">row</span> = <span class="ruby-value">0</span>)
2302
1590
  (<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>
2303
1591
  <span class="ruby-keyword">end</span></pre>
2304
1592
  </div>
2305
-
2306
1593
  </div>
2307
1594
 
2308
-
2309
1595
 
2310
-
2311
1596
  </div>
2312
1597
 
2313
-
2314
1598
  <div id="method-i-get_row_height" class="method-detail ">
2315
-
2316
1599
  <div class="method-heading">
2317
1600
  <span class="method-name">get_row_height</span><span
2318
1601
  class="method-args">(row = 0)</span>
2319
-
2320
1602
  <span class="method-click-advice">click to toggle source</span>
2321
-
2322
1603
  </div>
2323
-
2324
1604
 
2325
1605
  <div class="method-description">
2326
1606
 
2327
-
2328
-
2329
-
2330
1607
 
2331
-
2332
1608
  <div class="method-source-code" id="get_row_height-source">
2333
- <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/worksheet.rb, line 215</span>
1609
+ <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/worksheet.rb, line 275</span>
2334
1610
  <span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">get_row_height</span>(<span class="ruby-identifier">row</span> = <span class="ruby-value">0</span>)
2335
1611
  <span class="ruby-identifier">validate_workbook</span>
2336
1612
  <span class="ruby-identifier">validate_nonnegative</span>(<span class="ruby-identifier">row</span>)
@@ -2338,67 +1614,43 @@
2338
1614
  <span class="ruby-identifier">row</span> <span class="ruby-operator">&amp;&amp;</span> <span class="ruby-identifier">row</span>.<span class="ruby-identifier">ht</span> <span class="ruby-operator">||</span> <span class="ruby-constant">RubyXL</span><span class="ruby-operator">::</span><span class="ruby-constant">Row</span><span class="ruby-operator">::</span><span class="ruby-constant">DEFAULT_HEIGHT</span>
2339
1615
  <span class="ruby-keyword">end</span></pre>
2340
1616
  </div>
2341
-
2342
1617
  </div>
2343
1618
 
2344
-
2345
1619
 
2346
-
2347
1620
  </div>
2348
1621
 
2349
-
2350
1622
  <div id="method-i-get_row_style" class="method-detail ">
2351
-
2352
1623
  <div class="method-heading">
2353
1624
  <span class="method-name">get_row_style</span><span
2354
1625
  class="method-args">(row_index)</span>
2355
-
2356
1626
  <span class="method-click-advice">click to toggle source</span>
2357
-
2358
1627
  </div>
2359
-
2360
1628
 
2361
1629
  <div class="method-description">
2362
1630
 
2363
-
2364
-
2365
-
2366
1631
 
2367
-
2368
1632
  <div class="method-source-code" id="get_row_style-source">
2369
- <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/worksheet.rb, line 176</span>
1633
+ <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/worksheet.rb, line 236</span>
2370
1634
  <span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">get_row_style</span>(<span class="ruby-identifier">row_index</span>)
2371
1635
  <span class="ruby-identifier">row</span> = <span class="ruby-identifier">sheet_data</span>.<span class="ruby-identifier">rows</span>[<span class="ruby-identifier">row_index</span>]
2372
1636
  (<span class="ruby-identifier">row</span> <span class="ruby-operator">&amp;&amp;</span> <span class="ruby-identifier">row</span>.<span class="ruby-identifier">style_index</span>) <span class="ruby-operator">||</span> <span class="ruby-value">0</span>
2373
1637
  <span class="ruby-keyword">end</span></pre>
2374
1638
  </div>
2375
-
2376
1639
  </div>
2377
1640
 
2378
-
2379
1641
 
2380
-
2381
1642
  </div>
2382
1643
 
2383
-
2384
1644
  <div id="method-i-insert_cell" class="method-detail ">
2385
-
2386
1645
  <div class="method-heading">
2387
1646
  <span class="method-name">insert_cell</span><span
2388
1647
  class="method-args">(row = 0, col = 0, data = nil, formula = nil, shift = nil)</span>
2389
-
2390
1648
  <span class="method-click-advice">click to toggle source</span>
2391
-
2392
1649
  </div>
2393
-
2394
1650
 
2395
1651
  <div class="method-description">
2396
1652
 
2397
-
2398
-
2399
-
2400
1653
 
2401
-
2402
1654
  <div class="method-source-code" id="insert_cell-source">
2403
1655
  <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/worksheet.rb, line 12</span>
2404
1656
  <span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">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>)
@@ -2427,35 +1679,23 @@
2427
1679
  <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>)
2428
1680
  <span class="ruby-keyword">end</span></pre>
2429
1681
  </div>
2430
-
2431
1682
  </div>
2432
1683
 
2433
-
2434
1684
 
2435
-
2436
1685
  </div>
2437
1686
 
2438
-
2439
1687
  <div id="method-i-insert_column" class="method-detail ">
2440
-
2441
1688
  <div class="method-heading">
2442
1689
  <span class="method-name">insert_column</span><span
2443
1690
  class="method-args">(column_index = 0)</span>
2444
-
2445
1691
  <span class="method-click-advice">click to toggle source</span>
2446
-
2447
1692
  </div>
2448
-
2449
1693
 
2450
1694
  <div class="method-description">
2451
-
2452
1695
  <p>Inserts column at <code>column_index</code>, pushes everything right, takes styles from column to left NOTE: use of this method will break formulas which reference cells which are being “pushed right”</p>
2453
-
2454
-
2455
1696
 
2456
-
2457
1697
  <div class="method-source-code" id="insert_column-source">
2458
- <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/worksheet.rb, line 129</span>
1698
+ <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/worksheet.rb, line 159</span>
2459
1699
  <span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">insert_column</span>(<span class="ruby-identifier">column_index</span> = <span class="ruby-value">0</span>)
2460
1700
  <span class="ruby-identifier">validate_workbook</span>
2461
1701
  <span class="ruby-identifier">ensure_cell_exists</span>(<span class="ruby-value">0</span>, <span class="ruby-identifier">column_index</span>)
@@ -2482,36 +1722,38 @@
2482
1722
 
2483
1723
  <span class="ruby-identifier">cols</span>.<span class="ruby-identifier">insert_column</span>(<span class="ruby-identifier">column_index</span>)
2484
1724
 
1725
+ <span class="ruby-comment"># Update merged cells for all rows below</span>
1726
+ <span class="ruby-keyword">self</span>.<span class="ruby-identifier">merged_cells</span> <span class="ruby-operator">||=</span> <span class="ruby-constant">RubyXL</span><span class="ruby-operator">::</span><span class="ruby-constant">MergedCells</span>.<span class="ruby-identifier">new</span>
1727
+ <span class="ruby-identifier">merged_cells</span>.<span class="ruby-identifier">each</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">mc</span><span class="ruby-operator">|</span>
1728
+ <span class="ruby-keyword">next</span> <span class="ruby-keyword">if</span> <span class="ruby-identifier">mc</span>.<span class="ruby-identifier">ref</span>.<span class="ruby-identifier">col_range</span>.<span class="ruby-identifier">last</span> <span class="ruby-operator">&lt;</span> <span class="ruby-identifier">column_index</span>
1729
+
1730
+ <span class="ruby-identifier">in_merged_cell</span> = <span class="ruby-identifier">mc</span>.<span class="ruby-identifier">ref</span>.<span class="ruby-identifier">row_range</span>.<span class="ruby-identifier">first</span> <span class="ruby-operator">&lt;</span> <span class="ruby-identifier">column_index</span>
1731
+ <span class="ruby-identifier">mc</span>.<span class="ruby-identifier">ref</span> = <span class="ruby-constant">RubyXL</span><span class="ruby-operator">::</span><span class="ruby-constant">Reference</span>.<span class="ruby-identifier">new</span>(
1732
+ <span class="ruby-identifier">mc</span>.<span class="ruby-identifier">ref</span>.<span class="ruby-identifier">row_range</span>.<span class="ruby-identifier">first</span>,
1733
+ <span class="ruby-identifier">mc</span>.<span class="ruby-identifier">ref</span>.<span class="ruby-identifier">row_range</span>.<span class="ruby-identifier">last</span>,
1734
+ <span class="ruby-identifier">mc</span>.<span class="ruby-identifier">ref</span>.<span class="ruby-identifier">col_range</span>.<span class="ruby-identifier">first</span> <span class="ruby-operator">+</span> (<span class="ruby-identifier">in_merged_cell</span> <span class="ruby-operator">?</span> <span class="ruby-value">0</span> <span class="ruby-operator">:</span> <span class="ruby-value">1</span>),
1735
+ <span class="ruby-identifier">mc</span>.<span class="ruby-identifier">ref</span>.<span class="ruby-identifier">col_range</span>.<span class="ruby-identifier">last</span> <span class="ruby-operator">+</span> <span class="ruby-value">1</span>,
1736
+ )
1737
+ }
1738
+
2485
1739
  <span class="ruby-comment"># TODO: update column numbers</span>
2486
1740
  <span class="ruby-keyword">end</span></pre>
2487
1741
  </div>
2488
-
2489
1742
  </div>
2490
1743
 
2491
-
2492
1744
 
2493
-
2494
1745
  </div>
2495
1746
 
2496
-
2497
1747
  <div id="method-i-insert_row" class="method-detail ">
2498
-
2499
1748
  <div class="method-heading">
2500
1749
  <span class="method-name">insert_row</span><span
2501
1750
  class="method-args">(row_index = 0)</span>
2502
-
2503
1751
  <span class="method-click-advice">click to toggle source</span>
2504
-
2505
1752
  </div>
2506
-
2507
1753
 
2508
1754
  <div class="method-description">
2509
-
2510
1755
  <p>Inserts row at row_index, pushes down, copies style from the row above (that&#39;s what Excel 2013 does!) NOTE: use of this method will break formulas which reference cells which are being “pushed down”</p>
2511
-
2512
-
2513
1756
 
2514
-
2515
1757
  <div class="method-source-code" id="insert_row-source">
2516
1758
  <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/worksheet.rb, line 74</span>
2517
1759
  <span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">insert_row</span>(<span class="ruby-identifier">row_index</span> = <span class="ruby-value">0</span>)
@@ -2549,306 +1791,212 @@
2549
1791
  }
2550
1792
  }
2551
1793
 
1794
+ <span class="ruby-comment"># Update merged cells for all rows below</span>
1795
+ <span class="ruby-keyword">self</span>.<span class="ruby-identifier">merged_cells</span> <span class="ruby-operator">||=</span> <span class="ruby-constant">RubyXL</span><span class="ruby-operator">::</span><span class="ruby-constant">MergedCells</span>.<span class="ruby-identifier">new</span>
1796
+ <span class="ruby-identifier">merged_cells</span>.<span class="ruby-identifier">each</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">mc</span><span class="ruby-operator">|</span>
1797
+ <span class="ruby-keyword">next</span> <span class="ruby-keyword">if</span> <span class="ruby-identifier">mc</span>.<span class="ruby-identifier">ref</span>.<span class="ruby-identifier">row_range</span>.<span class="ruby-identifier">last</span> <span class="ruby-operator">&lt;</span> <span class="ruby-identifier">row_index</span>
1798
+
1799
+ <span class="ruby-identifier">in_merged_cell</span> = <span class="ruby-identifier">mc</span>.<span class="ruby-identifier">ref</span>.<span class="ruby-identifier">row_range</span>.<span class="ruby-identifier">first</span> <span class="ruby-operator">&lt;</span> <span class="ruby-identifier">row_index</span>
1800
+ <span class="ruby-identifier">mc</span>.<span class="ruby-identifier">ref</span> = <span class="ruby-constant">RubyXL</span><span class="ruby-operator">::</span><span class="ruby-constant">Reference</span>.<span class="ruby-identifier">new</span>(
1801
+ <span class="ruby-identifier">mc</span>.<span class="ruby-identifier">ref</span>.<span class="ruby-identifier">row_range</span>.<span class="ruby-identifier">first</span> <span class="ruby-operator">+</span> (<span class="ruby-identifier">in_merged_cell</span> <span class="ruby-operator">?</span> <span class="ruby-value">0</span> <span class="ruby-operator">:</span> <span class="ruby-value">1</span>),
1802
+ <span class="ruby-identifier">mc</span>.<span class="ruby-identifier">ref</span>.<span class="ruby-identifier">row_range</span>.<span class="ruby-identifier">last</span> <span class="ruby-operator">+</span> <span class="ruby-value">1</span>,
1803
+ <span class="ruby-identifier">mc</span>.<span class="ruby-identifier">ref</span>.<span class="ruby-identifier">col_range</span>.<span class="ruby-identifier">first</span>,
1804
+ <span class="ruby-identifier">mc</span>.<span class="ruby-identifier">ref</span>.<span class="ruby-identifier">col_range</span>.<span class="ruby-identifier">last</span>,
1805
+ )
1806
+ }
1807
+
2552
1808
  <span class="ruby-keyword">return</span> <span class="ruby-identifier">new_row</span>
2553
1809
  <span class="ruby-keyword">end</span></pre>
2554
1810
  </div>
2555
-
2556
1811
  </div>
2557
1812
 
2558
-
2559
1813
 
2560
-
2561
1814
  </div>
2562
1815
 
2563
-
2564
1816
  <div id="method-i-is_column_bolded" class="method-detail ">
2565
-
2566
1817
  <div class="method-heading">
2567
1818
  <span class="method-name">is_column_bolded</span><span
2568
1819
  class="method-args">(col = 0)</span>
2569
-
2570
1820
  <span class="method-click-advice">click to toggle source</span>
2571
-
2572
1821
  </div>
2573
-
2574
1822
 
2575
1823
  <div class="method-description">
2576
1824
 
2577
-
2578
-
2579
-
2580
1825
 
2581
-
2582
1826
  <div class="method-source-code" id="is_column_bolded-source">
2583
- <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/worksheet.rb, line 277</span>
1827
+ <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/worksheet.rb, line 337</span>
2584
1828
  <span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">is_column_bolded</span>(<span class="ruby-identifier">col</span> = <span class="ruby-value">0</span>)
2585
1829
  <span class="ruby-identifier">font</span> = <span class="ruby-identifier">column_font</span>(<span class="ruby-identifier">col</span>)
2586
1830
  <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>
2587
1831
  <span class="ruby-keyword">end</span></pre>
2588
1832
  </div>
2589
-
2590
1833
  </div>
2591
1834
 
2592
-
2593
1835
 
2594
-
2595
1836
  </div>
2596
1837
 
2597
-
2598
1838
  <div id="method-i-is_column_italicized" class="method-detail ">
2599
-
2600
1839
  <div class="method-heading">
2601
1840
  <span class="method-name">is_column_italicized</span><span
2602
1841
  class="method-args">(col = 0)</span>
2603
-
2604
1842
  <span class="method-click-advice">click to toggle source</span>
2605
-
2606
1843
  </div>
2607
-
2608
1844
 
2609
1845
  <div class="method-description">
2610
1846
 
2611
-
2612
-
2613
-
2614
1847
 
2615
-
2616
1848
  <div class="method-source-code" id="is_column_italicized-source">
2617
- <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/worksheet.rb, line 272</span>
1849
+ <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/worksheet.rb, line 332</span>
2618
1850
  <span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">is_column_italicized</span>(<span class="ruby-identifier">col</span> = <span class="ruby-value">0</span>)
2619
1851
  <span class="ruby-identifier">font</span> = <span class="ruby-identifier">column_font</span>(<span class="ruby-identifier">col</span>)
2620
1852
  <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>
2621
1853
  <span class="ruby-keyword">end</span></pre>
2622
1854
  </div>
2623
-
2624
1855
  </div>
2625
1856
 
2626
-
2627
1857
 
2628
-
2629
1858
  </div>
2630
1859
 
2631
-
2632
1860
  <div id="method-i-is_column_struckthrough" class="method-detail ">
2633
-
2634
1861
  <div class="method-heading">
2635
1862
  <span class="method-name">is_column_struckthrough</span><span
2636
1863
  class="method-args">(col = 0)</span>
2637
-
2638
1864
  <span class="method-click-advice">click to toggle source</span>
2639
-
2640
1865
  </div>
2641
-
2642
1866
 
2643
1867
  <div class="method-description">
2644
1868
 
2645
-
2646
-
2647
-
2648
1869
 
2649
-
2650
1870
  <div class="method-source-code" id="is_column_struckthrough-source">
2651
- <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/worksheet.rb, line 287</span>
1871
+ <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/worksheet.rb, line 347</span>
2652
1872
  <span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">is_column_struckthrough</span>(<span class="ruby-identifier">col</span> = <span class="ruby-value">0</span>)
2653
1873
  <span class="ruby-identifier">font</span> = <span class="ruby-identifier">column_font</span>(<span class="ruby-identifier">col</span>)
2654
1874
  <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>
2655
1875
  <span class="ruby-keyword">end</span></pre>
2656
1876
  </div>
2657
-
2658
1877
  </div>
2659
1878
 
2660
-
2661
1879
 
2662
-
2663
1880
  </div>
2664
1881
 
2665
-
2666
1882
  <div id="method-i-is_column_underlined" class="method-detail ">
2667
-
2668
1883
  <div class="method-heading">
2669
1884
  <span class="method-name">is_column_underlined</span><span
2670
1885
  class="method-args">(col = 0)</span>
2671
-
2672
1886
  <span class="method-click-advice">click to toggle source</span>
2673
-
2674
1887
  </div>
2675
-
2676
1888
 
2677
1889
  <div class="method-description">
2678
1890
 
2679
-
2680
-
2681
-
2682
1891
 
2683
-
2684
1892
  <div class="method-source-code" id="is_column_underlined-source">
2685
- <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/worksheet.rb, line 282</span>
1893
+ <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/worksheet.rb, line 342</span>
2686
1894
  <span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">is_column_underlined</span>(<span class="ruby-identifier">col</span> = <span class="ruby-value">0</span>)
2687
1895
  <span class="ruby-identifier">font</span> = <span class="ruby-identifier">column_font</span>(<span class="ruby-identifier">col</span>)
2688
1896
  <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>
2689
1897
  <span class="ruby-keyword">end</span></pre>
2690
1898
  </div>
2691
-
2692
1899
  </div>
2693
1900
 
2694
-
2695
1901
 
2696
-
2697
1902
  </div>
2698
1903
 
2699
-
2700
1904
  <div id="method-i-is_row_bolded" class="method-detail ">
2701
-
2702
1905
  <div class="method-heading">
2703
1906
  <span class="method-name">is_row_bolded</span><span
2704
1907
  class="method-args">(row = 0)</span>
2705
-
2706
1908
  <span class="method-click-advice">click to toggle source</span>
2707
-
2708
1909
  </div>
2709
-
2710
1910
 
2711
1911
  <div class="method-description">
2712
1912
 
2713
-
2714
-
2715
-
2716
1913
 
2717
-
2718
1914
  <div class="method-source-code" id="is_row_bolded-source">
2719
- <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/worksheet.rb, line 203</span>
1915
+ <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/worksheet.rb, line 263</span>
2720
1916
  <span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">is_row_bolded</span>(<span class="ruby-identifier">row</span> = <span class="ruby-value">0</span>)
2721
1917
  (<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>
2722
1918
  <span class="ruby-keyword">end</span></pre>
2723
1919
  </div>
2724
-
2725
1920
  </div>
2726
1921
 
2727
-
2728
1922
 
2729
-
2730
1923
  </div>
2731
1924
 
2732
-
2733
1925
  <div id="method-i-is_row_italicized" class="method-detail ">
2734
-
2735
1926
  <div class="method-heading">
2736
1927
  <span class="method-name">is_row_italicized</span><span
2737
1928
  class="method-args">(row = 0)</span>
2738
-
2739
1929
  <span class="method-click-advice">click to toggle source</span>
2740
-
2741
1930
  </div>
2742
-
2743
1931
 
2744
1932
  <div class="method-description">
2745
1933
 
2746
-
2747
-
2748
-
2749
1934
 
2750
-
2751
1935
  <div class="method-source-code" id="is_row_italicized-source">
2752
- <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/worksheet.rb, line 199</span>
1936
+ <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/worksheet.rb, line 259</span>
2753
1937
  <span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">is_row_italicized</span>(<span class="ruby-identifier">row</span> = <span class="ruby-value">0</span>)
2754
1938
  (<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>
2755
1939
  <span class="ruby-keyword">end</span></pre>
2756
1940
  </div>
2757
-
2758
1941
  </div>
2759
1942
 
2760
-
2761
1943
 
2762
-
2763
1944
  </div>
2764
1945
 
2765
-
2766
1946
  <div id="method-i-is_row_struckthrough" class="method-detail ">
2767
-
2768
1947
  <div class="method-heading">
2769
1948
  <span class="method-name">is_row_struckthrough</span><span
2770
1949
  class="method-args">(row = 0)</span>
2771
-
2772
1950
  <span class="method-click-advice">click to toggle source</span>
2773
-
2774
1951
  </div>
2775
-
2776
1952
 
2777
1953
  <div class="method-description">
2778
1954
 
2779
-
2780
-
2781
-
2782
1955
 
2783
-
2784
1956
  <div class="method-source-code" id="is_row_struckthrough-source">
2785
- <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/worksheet.rb, line 211</span>
1957
+ <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/worksheet.rb, line 271</span>
2786
1958
  <span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">is_row_struckthrough</span>(<span class="ruby-identifier">row</span> = <span class="ruby-value">0</span>)
2787
1959
  (<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>
2788
1960
  <span class="ruby-keyword">end</span></pre>
2789
1961
  </div>
2790
-
2791
1962
  </div>
2792
1963
 
2793
-
2794
1964
 
2795
-
2796
1965
  </div>
2797
1966
 
2798
-
2799
1967
  <div id="method-i-is_row_underlined" class="method-detail ">
2800
-
2801
1968
  <div class="method-heading">
2802
1969
  <span class="method-name">is_row_underlined</span><span
2803
1970
  class="method-args">(row = 0)</span>
2804
-
2805
1971
  <span class="method-click-advice">click to toggle source</span>
2806
-
2807
1972
  </div>
2808
-
2809
1973
 
2810
1974
  <div class="method-description">
2811
1975
 
2812
-
2813
-
2814
-
2815
1976
 
2816
-
2817
1977
  <div class="method-source-code" id="is_row_underlined-source">
2818
- <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/worksheet.rb, line 207</span>
1978
+ <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/worksheet.rb, line 267</span>
2819
1979
  <span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">is_row_underlined</span>(<span class="ruby-identifier">row</span> = <span class="ruby-value">0</span>)
2820
1980
  (<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>
2821
1981
  <span class="ruby-keyword">end</span></pre>
2822
1982
  </div>
2823
-
2824
1983
  </div>
2825
1984
 
2826
-
2827
1985
 
2828
-
2829
1986
  </div>
2830
1987
 
2831
-
2832
1988
  <div id="method-i-merge_cells" class="method-detail ">
2833
-
2834
1989
  <div class="method-heading">
2835
1990
  <span class="method-name">merge_cells</span><span
2836
1991
  class="method-args">(start_row, start_col, end_row, end_col)</span>
2837
-
2838
1992
  <span class="method-click-advice">click to toggle source</span>
2839
-
2840
1993
  </div>
2841
-
2842
1994
 
2843
1995
  <div class="method-description">
2844
-
2845
1996
  <p>Merges cells within a rectangular area</p>
2846
-
2847
-
2848
1997
 
2849
-
2850
1998
  <div class="method-source-code" id="merge_cells-source">
2851
- <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/worksheet.rb, line 628</span>
1999
+ <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/worksheet.rb, line 688</span>
2852
2000
  <span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">merge_cells</span>(<span class="ruby-identifier">start_row</span>, <span class="ruby-identifier">start_col</span>, <span class="ruby-identifier">end_row</span>, <span class="ruby-identifier">end_col</span>)
2853
2001
  <span class="ruby-identifier">validate_workbook</span>
2854
2002
 
@@ -2857,58 +2005,41 @@
2857
2005
  <span class="ruby-identifier">merged_cells</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-constant">RubyXL</span><span class="ruby-operator">::</span><span class="ruby-constant">MergedCell</span>.<span class="ruby-identifier">new</span>(<span class="ruby-value">:ref</span> <span class="ruby-operator">=&gt;</span> <span class="ruby-constant">RubyXL</span><span class="ruby-operator">::</span><span class="ruby-constant">Reference</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">start_row</span>, <span class="ruby-identifier">end_row</span>, <span class="ruby-identifier">start_col</span>, <span class="ruby-identifier">end_col</span>))
2858
2006
  <span class="ruby-keyword">end</span></pre>
2859
2007
  </div>
2860
-
2861
2008
  </div>
2862
2009
 
2863
-
2864
2010
 
2865
-
2866
2011
  </div>
2867
2012
 
2868
-
2869
2013
  <div id="method-i-row_font" class="method-detail ">
2870
-
2871
2014
  <div class="method-heading">
2872
2015
  <span class="method-name">row_font</span><span
2873
2016
  class="method-args">(row)</span>
2874
-
2875
2017
  <span class="method-click-advice">click to toggle source</span>
2876
-
2877
2018
  </div>
2878
-
2879
2019
 
2880
2020
  <div class="method-description">
2881
2021
 
2882
-
2883
-
2884
-
2885
2022
 
2886
-
2887
2023
  <div class="method-source-code" id="row_font-source">
2888
- <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/worksheet.rb, line 236</span>
2024
+ <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/worksheet.rb, line 296</span>
2889
2025
  <span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">row_font</span>(<span class="ruby-identifier">row</span>)
2890
2026
  (<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_font</span>
2891
2027
  <span class="ruby-keyword">end</span></pre>
2892
2028
  </div>
2893
-
2894
2029
  </div>
2895
2030
 
2896
-
2897
2031
 
2898
-
2899
2032
  </div>
2900
2033
 
2901
-
2902
2034
  </section>
2903
-
2904
- </section>
2905
2035
 
2036
+ </section>
2906
2037
  </main>
2907
2038
 
2908
2039
 
2909
2040
  <footer id="validator-badges" role="contentinfo">
2910
2041
  <p><a href="https://validator.w3.org/check/referer">Validate</a>
2911
- <p>Generated by <a href="https://ruby.github.io/rdoc/">RDoc</a> 6.2.1.
2042
+ <p>Generated by <a href="https://ruby.github.io/rdoc/">RDoc</a> 6.3.0.
2912
2043
  <p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
2913
2044
  </footer>
2914
2045