rubyXL 3.4.14 → 3.4.18

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