rubyXL 3.4.11 → 3.4.17

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (419) hide show
  1. checksums.yaml +4 -4
  2. data/.circleci/config.yml +2 -1
  3. data/Gemfile +1 -1
  4. data/Gemfile.lock +38 -34
  5. data/LICENSE.txt +1 -1
  6. data/README.rdoc +6 -1
  7. data/VERSION +1 -1
  8. data/lib/rubyXL/convenience_methods/cell.rb +1 -1
  9. data/lib/rubyXL/convenience_methods/color.rb +5 -3
  10. data/lib/rubyXL/convenience_methods/worksheet.rb +72 -0
  11. data/lib/rubyXL/objects/chartsheet.rb +1 -1
  12. data/lib/rubyXL/objects/data_validation.rb +2 -0
  13. data/lib/rubyXL/objects/document_properties.rb +2 -2
  14. data/lib/rubyXL/objects/external_links.rb +25 -1
  15. data/lib/rubyXL/objects/ooxml_object.rb +10 -0
  16. data/lib/rubyXL/objects/relationships.rb +1 -1
  17. data/lib/rubyXL/objects/sheet_data.rb +2 -1
  18. data/lib/rubyXL/objects/storage.rb +1 -0
  19. data/lib/rubyXL/objects/theme.rb +1 -1
  20. data/lib/rubyXL/objects/workbook.rb +12 -6
  21. data/lib/rubyXL/objects/worksheet.rb +7 -7
  22. data/lib/rubyXL/worksheet.rb +1 -1
  23. data/rdoc/README_rdoc.html +12 -7
  24. data/rdoc/RubyXL.html +6 -319
  25. data/rdoc/RubyXL/AExtension.html +9 -49
  26. data/rdoc/RubyXL/AExtensionStorageArea.html +5 -12
  27. data/rdoc/RubyXL/ActiveX.html +11 -40
  28. data/rdoc/RubyXL/ActiveXBinary.html +5 -17
  29. data/rdoc/RubyXL/AdjustHandleList.html +5 -12
  30. data/rdoc/RubyXL/Alignment.html +5 -12
  31. data/rdoc/RubyXL/AlternateContent.html +5 -12
  32. data/rdoc/RubyXL/Authors.html +5 -12
  33. data/rdoc/RubyXL/AutoFilter.html +5 -12
  34. data/rdoc/RubyXL/AutoFilterColumn.html +5 -12
  35. data/rdoc/RubyXL/BinaryImageFile.html +5 -20
  36. data/rdoc/RubyXL/BodyProperties.html +5 -12
  37. data/rdoc/RubyXL/BooleanNode.html +5 -12
  38. data/rdoc/RubyXL/BooleanValue.html +5 -12
  39. data/rdoc/RubyXL/Border.html +8 -68
  40. data/rdoc/RubyXL/BorderEdge.html +8 -42
  41. data/rdoc/RubyXL/Borders.html +8 -29
  42. data/rdoc/RubyXL/Break.html +5 -12
  43. data/rdoc/RubyXL/BreakList.html +5 -12
  44. data/rdoc/RubyXL/CT_AdjPoint2D.html +5 -12
  45. data/rdoc/RubyXL/CT_AlphaBiLevelEffect.html +5 -12
  46. data/rdoc/RubyXL/CT_AlphaModulateEffect.html +5 -12
  47. data/rdoc/RubyXL/CT_AlphaModulateFixedEffect.html +5 -12
  48. data/rdoc/RubyXL/CT_AlphaOutsetEffect.html +5 -12
  49. data/rdoc/RubyXL/CT_AlphaReplaceEffect.html +5 -12
  50. data/rdoc/RubyXL/CT_Backdrop.html +5 -12
  51. data/rdoc/RubyXL/CT_Bevel.html +5 -12
  52. data/rdoc/RubyXL/CT_BiLevelEffect.html +5 -12
  53. data/rdoc/RubyXL/CT_BlendEffect.html +5 -12
  54. data/rdoc/RubyXL/CT_Blip.html +5 -12
  55. data/rdoc/RubyXL/CT_BlipFillProperties.html +5 -12
  56. data/rdoc/RubyXL/CT_BlurEffect.html +5 -12
  57. data/rdoc/RubyXL/CT_Camera.html +5 -12
  58. data/rdoc/RubyXL/CT_Color.html +5 -12
  59. data/rdoc/RubyXL/CT_ColorChangeEffect.html +5 -12
  60. data/rdoc/RubyXL/CT_ColorMapping.html +5 -12
  61. data/rdoc/RubyXL/CT_ColorScheme.html +5 -12
  62. data/rdoc/RubyXL/CT_ColorSchemeAndMapping.html +5 -12
  63. data/rdoc/RubyXL/CT_ConnectionSite.html +5 -12
  64. data/rdoc/RubyXL/CT_ConnectionSiteList.html +5 -12
  65. data/rdoc/RubyXL/CT_DashStop.html +5 -12
  66. data/rdoc/RubyXL/CT_DashStopList.html +5 -12
  67. data/rdoc/RubyXL/CT_DefaultShapeDefinition.html +5 -12
  68. data/rdoc/RubyXL/CT_DuotoneEffect.html +5 -12
  69. data/rdoc/RubyXL/CT_EffectContainer.html +5 -12
  70. data/rdoc/RubyXL/CT_EffectList.html +5 -12
  71. data/rdoc/RubyXL/CT_EffectReference.html +5 -12
  72. data/rdoc/RubyXL/CT_EffectStyleItem.html +5 -12
  73. data/rdoc/RubyXL/CT_EffectStyleList.html +5 -12
  74. data/rdoc/RubyXL/CT_EmbeddedWAVAudioFile.html +5 -12
  75. data/rdoc/RubyXL/CT_FillEffect.html +5 -12
  76. data/rdoc/RubyXL/CT_FillOverlayEffect.html +5 -12
  77. data/rdoc/RubyXL/CT_FillStyleList.html +5 -12
  78. data/rdoc/RubyXL/CT_FlatText.html +5 -12
  79. data/rdoc/RubyXL/CT_FontCollection.html +5 -12
  80. data/rdoc/RubyXL/CT_FontReference.html +5 -12
  81. data/rdoc/RubyXL/CT_GeomGuideList.html +5 -12
  82. data/rdoc/RubyXL/CT_GlowEffect.html +5 -12
  83. data/rdoc/RubyXL/CT_GradientFillProperties.html +5 -12
  84. data/rdoc/RubyXL/CT_GradientStop.html +5 -12
  85. data/rdoc/RubyXL/CT_GradientStopList.html +5 -12
  86. data/rdoc/RubyXL/CT_HSLEffect.html +5 -12
  87. data/rdoc/RubyXL/CT_HslColor.html +5 -12
  88. data/rdoc/RubyXL/CT_Hyperlink.html +5 -12
  89. data/rdoc/RubyXL/CT_InnerShadowEffect.html +5 -12
  90. data/rdoc/RubyXL/CT_LightRig.html +5 -12
  91. data/rdoc/RubyXL/CT_LineEndProperties.html +5 -12
  92. data/rdoc/RubyXL/CT_LineJoinMiterProperties.html +5 -12
  93. data/rdoc/RubyXL/CT_LineProperties.html +5 -12
  94. data/rdoc/RubyXL/CT_LineStyleList.html +5 -12
  95. data/rdoc/RubyXL/CT_LinearShadeProperties.html +5 -12
  96. data/rdoc/RubyXL/CT_LuminanceEffect.html +5 -12
  97. data/rdoc/RubyXL/CT_ObjectStyleDefaults.html +5 -12
  98. data/rdoc/RubyXL/CT_OuterShadowEffect.html +5 -12
  99. data/rdoc/RubyXL/CT_Path2D.html +5 -12
  100. data/rdoc/RubyXL/CT_Path2DArcTo.html +5 -12
  101. data/rdoc/RubyXL/CT_Path2DCubicBezierTo.html +5 -12
  102. data/rdoc/RubyXL/CT_Path2DList.html +5 -12
  103. data/rdoc/RubyXL/CT_Path2DQuadBezierTo.html +5 -12
  104. data/rdoc/RubyXL/CT_Path2DTo.html +5 -12
  105. data/rdoc/RubyXL/CT_PathShadeProperties.html +5 -12
  106. data/rdoc/RubyXL/CT_PatternFillProperties.html +5 -12
  107. data/rdoc/RubyXL/CT_Point3D.html +5 -12
  108. data/rdoc/RubyXL/CT_PolarAdjustHandle.html +5 -12
  109. data/rdoc/RubyXL/CT_PresetColor.html +5 -12
  110. data/rdoc/RubyXL/CT_PresetLineDashProperties.html +5 -12
  111. data/rdoc/RubyXL/CT_PresetShadowEffect.html +5 -12
  112. data/rdoc/RubyXL/CT_PresetTextShape.html +5 -12
  113. data/rdoc/RubyXL/CT_ReflectionEffect.html +5 -12
  114. data/rdoc/RubyXL/CT_RelativeOffsetEffect.html +5 -12
  115. data/rdoc/RubyXL/CT_RelativeRect.html +5 -12
  116. data/rdoc/RubyXL/CT_SRgbColor.html +5 -12
  117. data/rdoc/RubyXL/CT_ScRgbColor.html +5 -12
  118. data/rdoc/RubyXL/CT_Scene3D.html +5 -12
  119. data/rdoc/RubyXL/CT_SchemeColor.html +5 -12
  120. data/rdoc/RubyXL/CT_Shape3D.html +5 -12
  121. data/rdoc/RubyXL/CT_ShapeStyle.html +5 -12
  122. data/rdoc/RubyXL/CT_SoftEdgesEffect.html +5 -12
  123. data/rdoc/RubyXL/CT_SphereCoords.html +5 -12
  124. data/rdoc/RubyXL/CT_StretchInfoProperties.html +5 -12
  125. data/rdoc/RubyXL/CT_StyleMatrix.html +5 -12
  126. data/rdoc/RubyXL/CT_StyleMatrixReference.html +5 -12
  127. data/rdoc/RubyXL/CT_SupplementalFont.html +5 -12
  128. data/rdoc/RubyXL/CT_SystemColor.html +5 -12
  129. data/rdoc/RubyXL/CT_TextAutonumberBullet.html +5 -12
  130. data/rdoc/RubyXL/CT_TextBlipBullet.html +5 -12
  131. data/rdoc/RubyXL/CT_TextCharBullet.html +5 -12
  132. data/rdoc/RubyXL/CT_TextCharacterProperties.html +5 -12
  133. data/rdoc/RubyXL/CT_TextFont.html +5 -12
  134. data/rdoc/RubyXL/CT_TextListStyle.html +5 -12
  135. data/rdoc/RubyXL/CT_TextNormalAutofit.html +5 -12
  136. data/rdoc/RubyXL/CT_TextParagraphProperties.html +5 -12
  137. data/rdoc/RubyXL/CT_TextSpacing.html +5 -12
  138. data/rdoc/RubyXL/CT_TextTabStop.html +5 -12
  139. data/rdoc/RubyXL/CT_TextTabStopList.html +5 -12
  140. data/rdoc/RubyXL/CT_TileInfoProperties.html +5 -12
  141. data/rdoc/RubyXL/CT_TintEffect.html +5 -12
  142. data/rdoc/RubyXL/CT_Transform2D.html +5 -12
  143. data/rdoc/RubyXL/CT_TransformEffect.html +5 -12
  144. data/rdoc/RubyXL/CT_Vector3D.html +5 -12
  145. data/rdoc/RubyXL/CT_XYAdjustHandle.html +5 -12
  146. data/rdoc/RubyXL/CalculationChain.html +8 -37
  147. data/rdoc/RubyXL/CalculationChainCell.html +5 -12
  148. data/rdoc/RubyXL/CalculationProperties.html +5 -12
  149. data/rdoc/RubyXL/Cell.html +13 -215
  150. data/rdoc/RubyXL/CellConvenienceMethods.html +6 -455
  151. data/rdoc/RubyXL/CellExt.html +5 -12
  152. data/rdoc/RubyXL/CellSmartTag.html +5 -12
  153. data/rdoc/RubyXL/CellSmartTagProperty.html +5 -12
  154. data/rdoc/RubyXL/CellSmartTags.html +5 -12
  155. data/rdoc/RubyXL/CellStyle.html +5 -12
  156. data/rdoc/RubyXL/CellStyleXFs.html +8 -29
  157. data/rdoc/RubyXL/CellStyles.html +8 -29
  158. data/rdoc/RubyXL/CellValue.html +8 -29
  159. data/rdoc/RubyXL/CellWatch.html +5 -12
  160. data/rdoc/RubyXL/CellWatches.html +5 -12
  161. data/rdoc/RubyXL/CellXFs.html +8 -29
  162. data/rdoc/RubyXL/ChartColorsFile.html +5 -20
  163. data/rdoc/RubyXL/ChartFile.html +10 -42
  164. data/rdoc/RubyXL/ChartStyleFile.html +5 -20
  165. data/rdoc/RubyXL/ChartUserShapesFile.html +5 -20
  166. data/rdoc/RubyXL/Chartsheet.html +10 -59
  167. data/rdoc/RubyXL/ChartsheetPageSetup.html +5 -12
  168. data/rdoc/RubyXL/ChartsheetProperties.html +5 -12
  169. data/rdoc/RubyXL/ChartsheetProtection.html +5 -12
  170. data/rdoc/RubyXL/ChartsheetView.html +5 -12
  171. data/rdoc/RubyXL/ChartsheetViews.html +5 -12
  172. data/rdoc/RubyXL/Color.html +8 -34
  173. data/rdoc/RubyXL/ColorConvenienceClasses.html +3 -9
  174. data/rdoc/RubyXL/ColorConvenienceClasses/HlsColor.html +10 -58
  175. data/rdoc/RubyXL/ColorConvenienceClasses/RgbColor.html +14 -74
  176. data/rdoc/RubyXL/ColorConvenienceMethods.html +6 -26
  177. data/rdoc/RubyXL/ColorFilter.html +5 -12
  178. data/rdoc/RubyXL/ColorScale.html +5 -12
  179. data/rdoc/RubyXL/ColorSet.html +5 -12
  180. data/rdoc/RubyXL/Colors.html +5 -12
  181. data/rdoc/RubyXL/ColumnRange.html +8 -60
  182. data/rdoc/RubyXL/ColumnRanges.html +8 -68
  183. data/rdoc/RubyXL/Comment.html +5 -12
  184. data/rdoc/RubyXL/CommentList.html +5 -12
  185. data/rdoc/RubyXL/CommentsFile.html +8 -42
  186. data/rdoc/RubyXL/ConditionalFormatValue.html +5 -12
  187. data/rdoc/RubyXL/ConditionalFormatting.html +5 -12
  188. data/rdoc/RubyXL/ConditionalFormattingRule.html +5 -12
  189. data/rdoc/RubyXL/Connection.html +5 -12
  190. data/rdoc/RubyXL/ConnectionTable.html +5 -12
  191. data/rdoc/RubyXL/ConnectionTables.html +5 -12
  192. data/rdoc/RubyXL/ConnectionTextField.html +5 -12
  193. data/rdoc/RubyXL/ConnectionTextFields.html +5 -12
  194. data/rdoc/RubyXL/Connections.html +8 -37
  195. data/rdoc/RubyXL/ContentTypeDefault.html +5 -12
  196. data/rdoc/RubyXL/ContentTypeOverride.html +5 -12
  197. data/rdoc/RubyXL/ContentTypes.html +8 -50
  198. data/rdoc/RubyXL/ControlPropertiesFile.html +7 -17
  199. data/rdoc/RubyXL/CorePropertiesFile.html +10 -148
  200. data/rdoc/RubyXL/CustomColor.html +5 -12
  201. data/rdoc/RubyXL/CustomColorList.html +5 -12
  202. data/rdoc/RubyXL/CustomFilter.html +5 -12
  203. data/rdoc/RubyXL/CustomFilters.html +5 -12
  204. data/rdoc/RubyXL/CustomGeometry.html +5 -12
  205. data/rdoc/RubyXL/CustomProperties.html +5 -12
  206. data/rdoc/RubyXL/CustomPropertiesFile.html +5 -20
  207. data/rdoc/RubyXL/CustomProperty.html +5 -12
  208. data/rdoc/RubyXL/CustomPropertyFile.html +5 -20
  209. data/rdoc/RubyXL/CustomSheetView.html +5 -12
  210. data/rdoc/RubyXL/CustomSheetViews.html +5 -12
  211. data/rdoc/RubyXL/CustomWorkbookView.html +5 -12
  212. data/rdoc/RubyXL/CustomWorkbookViews.html +5 -12
  213. data/rdoc/RubyXL/CustomXMLFile.html +5 -17
  214. data/rdoc/RubyXL/DXF.html +5 -12
  215. data/rdoc/RubyXL/DXFs.html +5 -12
  216. data/rdoc/RubyXL/DataBar.html +5 -12
  217. data/rdoc/RubyXL/DataConsolidate.html +5 -12
  218. data/rdoc/RubyXL/DataConsolidationReference.html +5 -12
  219. data/rdoc/RubyXL/DataConsolidationReferences.html +5 -12
  220. data/rdoc/RubyXL/DataType.html +3 -32
  221. data/rdoc/RubyXL/DataValidation.html +5 -12
  222. data/rdoc/RubyXL/DataValidations.html +5 -12
  223. data/rdoc/RubyXL/DateGroupItem.html +5 -12
  224. data/rdoc/RubyXL/DefinedName.html +5 -12
  225. data/rdoc/RubyXL/DefinedNameExt.html +5 -12
  226. data/rdoc/RubyXL/DefinedNames.html +5 -12
  227. data/rdoc/RubyXL/DefinedNamesExt.html +5 -12
  228. data/rdoc/RubyXL/DocumentPropertiesFile.html +8 -55
  229. data/rdoc/RubyXL/DrawingFile.html +10 -42
  230. data/rdoc/RubyXL/DynamicFilter.html +5 -12
  231. data/rdoc/RubyXL/EmbeddedControl.html +5 -12
  232. data/rdoc/RubyXL/EmbeddedControls.html +5 -12
  233. data/rdoc/RubyXL/Extension.html +5 -12
  234. data/rdoc/RubyXL/ExtensionStorageArea.html +5 -12
  235. data/rdoc/RubyXL/Extents.html +5 -12
  236. data/rdoc/RubyXL/ExternalBook.html +5 -12
  237. data/rdoc/RubyXL/ExternalLinksFile.html +11 -43
  238. data/rdoc/RubyXL/ExternalReference.html +5 -12
  239. data/rdoc/RubyXL/ExternalReferences.html +5 -12
  240. data/rdoc/RubyXL/ExtraColorSchemeList.html +5 -12
  241. data/rdoc/RubyXL/FieldItem.html +5 -12
  242. data/rdoc/RubyXL/FileRecoveryProperties.html +5 -12
  243. data/rdoc/RubyXL/FileSharing.html +5 -12
  244. data/rdoc/RubyXL/FileVersion.html +5 -12
  245. data/rdoc/RubyXL/Fill.html +8 -29
  246. data/rdoc/RubyXL/Fills.html +8 -29
  247. data/rdoc/RubyXL/FilterContainer.html +5 -12
  248. data/rdoc/RubyXL/FloatNode.html +5 -12
  249. data/rdoc/RubyXL/FloatValue.html +5 -12
  250. data/rdoc/RubyXL/Font.html +8 -34
  251. data/rdoc/RubyXL/FontConvenienceMethods.html +6 -195
  252. data/rdoc/RubyXL/FontScheme.html +5 -12
  253. data/rdoc/RubyXL/Fonts.html +8 -29
  254. data/rdoc/RubyXL/Formula.html +5 -12
  255. data/rdoc/RubyXL/FunctionGroup.html +5 -12
  256. data/rdoc/RubyXL/FunctionGroups.html +5 -12
  257. data/rdoc/RubyXL/GenericStorageObject.html +9 -73
  258. data/rdoc/RubyXL/GradientFill.html +5 -12
  259. data/rdoc/RubyXL/HeaderFooterSettings.html +5 -12
  260. data/rdoc/RubyXL/Hyperlink.html +5 -12
  261. data/rdoc/RubyXL/HyperlinkRelFile.html +5 -17
  262. data/rdoc/RubyXL/Hyperlinks.html +5 -12
  263. data/rdoc/RubyXL/IconFilter.html +5 -12
  264. data/rdoc/RubyXL/IconSet.html +5 -12
  265. data/rdoc/RubyXL/IgnoredError.html +5 -12
  266. data/rdoc/RubyXL/IgnoredErrors.html +5 -12
  267. data/rdoc/RubyXL/IndexedColors.html +5 -12
  268. data/rdoc/RubyXL/InputCells.html +5 -12
  269. data/rdoc/RubyXL/IntegerNode.html +5 -12
  270. data/rdoc/RubyXL/IntegerValue.html +5 -12
  271. data/rdoc/RubyXL/LegacyCell.html +6 -26
  272. data/rdoc/RubyXL/LegacyWorksheet.html +10 -87
  273. data/rdoc/RubyXL/MRUColors.html +5 -12
  274. data/rdoc/RubyXL/MacrosFile.html +5 -20
  275. data/rdoc/RubyXL/MergedCell.html +5 -12
  276. data/rdoc/RubyXL/MergedCells.html +5 -12
  277. data/rdoc/RubyXL/NumFmt.html +5 -12
  278. data/rdoc/RubyXL/NumberFormat.html +8 -29
  279. data/rdoc/RubyXL/NumberFormats.html +8 -34
  280. data/rdoc/RubyXL/OLEObject.html +5 -12
  281. data/rdoc/RubyXL/OLEObjectFile.html +5 -20
  282. data/rdoc/RubyXL/OLEObjects.html +5 -12
  283. data/rdoc/RubyXL/OLESize.html +5 -12
  284. data/rdoc/RubyXL/OOXMLContainerObject.html +19 -114
  285. data/rdoc/RubyXL/OOXMLIgnored.html +9 -44
  286. data/rdoc/RubyXL/OOXMLObject.html +7 -17
  287. data/rdoc/RubyXL/OOXMLObjectClassMethods.html +31 -81
  288. data/rdoc/RubyXL/OOXMLObjectInstanceMethods.html +23 -139
  289. data/rdoc/RubyXL/OOXMLRelationshipsFile.html +10 -167
  290. data/rdoc/RubyXL/OOXMLTopLevelObject.html +14 -101
  291. data/rdoc/RubyXL/OdbcOleDbProperties.html +5 -12
  292. data/rdoc/RubyXL/Offset.html +5 -12
  293. data/rdoc/RubyXL/OlapProperties.html +5 -12
  294. data/rdoc/RubyXL/OleItem.html +99 -0
  295. data/rdoc/RubyXL/OleItems.html +99 -0
  296. data/rdoc/RubyXL/OleLink.html +99 -0
  297. data/rdoc/RubyXL/OutlineProperties.html +5 -12
  298. data/rdoc/RubyXL/PageMargins.html +5 -12
  299. data/rdoc/RubyXL/PageSetup.html +5 -12
  300. data/rdoc/RubyXL/PageSetupProperties.html +5 -12
  301. data/rdoc/RubyXL/Pane.html +5 -12
  302. data/rdoc/RubyXL/Parser.html +8 -42
  303. data/rdoc/RubyXL/PatternFill.html +5 -12
  304. data/rdoc/RubyXL/PhoneticProperties.html +5 -12
  305. data/rdoc/RubyXL/PhoneticRun.html +5 -12
  306. data/rdoc/RubyXL/PivotArea.html +5 -12
  307. data/rdoc/RubyXL/PivotCache.html +5 -12
  308. data/rdoc/RubyXL/PivotCacheDefinitionFile.html +7 -25
  309. data/rdoc/RubyXL/PivotCacheRecordsFile.html +5 -20
  310. data/rdoc/RubyXL/PivotCaches.html +5 -12
  311. data/rdoc/RubyXL/PivotReference.html +5 -12
  312. data/rdoc/RubyXL/PivotReferences.html +5 -12
  313. data/rdoc/RubyXL/PivotTableFile.html +7 -25
  314. data/rdoc/RubyXL/PivotTableSelection.html +5 -12
  315. data/rdoc/RubyXL/PresetGeometry.html +5 -12
  316. data/rdoc/RubyXL/PrintOptions.html +5 -12
  317. data/rdoc/RubyXL/PrinterSettingsFile.html +5 -20
  318. data/rdoc/RubyXL/ProtectedRange.html +5 -12
  319. data/rdoc/RubyXL/ProtectedRanges.html +5 -12
  320. data/rdoc/RubyXL/Protection.html +5 -12
  321. data/rdoc/RubyXL/QueryParameter.html +5 -12
  322. data/rdoc/RubyXL/QueryParameters.html +5 -12
  323. data/rdoc/RubyXL/QueryTable.html +10 -42
  324. data/rdoc/RubyXL/QueryTableDeletedField.html +5 -12
  325. data/rdoc/RubyXL/QueryTableDeletedFields.html +5 -12
  326. data/rdoc/RubyXL/QueryTableField.html +5 -12
  327. data/rdoc/RubyXL/QueryTableFields.html +5 -12
  328. data/rdoc/RubyXL/QueryTableRefresh.html +5 -12
  329. data/rdoc/RubyXL/RID.html +5 -12
  330. data/rdoc/RubyXL/RawOOXML.html +9 -49
  331. data/rdoc/RubyXL/Reference.html +9 -190
  332. data/rdoc/RubyXL/Relationship.html +5 -12
  333. data/rdoc/RubyXL/RelationshipSupport.html +9 -106
  334. data/rdoc/RubyXL/RelationshipSupport/ClassMehods.html +6 -26
  335. data/rdoc/RubyXL/RevisionPointer.html +5 -12
  336. data/rdoc/RubyXL/RichText.html +8 -29
  337. data/rdoc/RubyXL/RichTextRun.html +8 -29
  338. data/rdoc/RubyXL/Row.html +17 -152
  339. data/rdoc/RubyXL/RowExt.html +5 -12
  340. data/rdoc/RubyXL/RunProperties.html +5 -12
  341. data/rdoc/RubyXL/Scenario.html +5 -12
  342. data/rdoc/RubyXL/Scenarios.html +5 -12
  343. data/rdoc/RubyXL/Selection.html +8 -29
  344. data/rdoc/RubyXL/ShapeGuide.html +5 -12
  345. data/rdoc/RubyXL/ShapeTextRectangle.html +5 -12
  346. data/rdoc/RubyXL/SharedStringsTable.html +9 -119
  347. data/rdoc/RubyXL/Sheet.html +5 -12
  348. data/rdoc/RubyXL/SheetCalculationProperties.html +5 -12
  349. data/rdoc/RubyXL/SheetData.html +10 -44
  350. data/rdoc/RubyXL/SheetDataExt.html +5 -12
  351. data/rdoc/RubyXL/SheetDataSet.html +5 -12
  352. data/rdoc/RubyXL/SheetName.html +5 -12
  353. data/rdoc/RubyXL/SheetNames.html +5 -12
  354. data/rdoc/RubyXL/Sheets.html +5 -12
  355. data/rdoc/RubyXL/SlicerCacheFile.html +5 -20
  356. data/rdoc/RubyXL/SlicerFile.html +5 -20
  357. data/rdoc/RubyXL/SmartTagProperties.html +5 -12
  358. data/rdoc/RubyXL/SmartTagType.html +5 -12
  359. data/rdoc/RubyXL/SmartTagTypes.html +5 -12
  360. data/rdoc/RubyXL/SmartTags.html +5 -12
  361. data/rdoc/RubyXL/SortCondition.html +5 -12
  362. data/rdoc/RubyXL/SortState.html +5 -12
  363. data/rdoc/RubyXL/Sqref.html +9 -44
  364. data/rdoc/RubyXL/Stop.html +5 -12
  365. data/rdoc/RubyXL/StringNode.html +5 -12
  366. data/rdoc/RubyXL/StringNodeW3C.html +9 -44
  367. data/rdoc/RubyXL/StringValue.html +5 -12
  368. data/rdoc/RubyXL/Stylesheet.html +9 -92
  369. data/rdoc/RubyXL/TableFile.html +5 -20
  370. data/rdoc/RubyXL/TableParts.html +5 -12
  371. data/rdoc/RubyXL/TableStyle.html +5 -12
  372. data/rdoc/RubyXL/TableStyles.html +5 -12
  373. data/rdoc/RubyXL/Text.html +8 -50
  374. data/rdoc/RubyXL/TextImportSettings.html +5 -12
  375. data/rdoc/RubyXL/Theme.html +9 -65
  376. data/rdoc/RubyXL/ThemeElements.html +5 -12
  377. data/rdoc/RubyXL/ThumbnailFile.html +5 -20
  378. data/rdoc/RubyXL/Top10.html +5 -12
  379. data/rdoc/RubyXL/VMLDrawingFile.html +7 -25
  380. data/rdoc/RubyXL/Variant.html +5 -12
  381. data/rdoc/RubyXL/Vector.html +8 -29
  382. data/rdoc/RubyXL/VectorValue.html +5 -12
  383. data/rdoc/RubyXL/VisualProperties.html +5 -12
  384. data/rdoc/RubyXL/WebPublishObject.html +5 -12
  385. data/rdoc/RubyXL/WebPublishObjects.html +5 -12
  386. data/rdoc/RubyXL/WebPublishingItem.html +5 -12
  387. data/rdoc/RubyXL/WebPublishingItems.html +5 -12
  388. data/rdoc/RubyXL/WebPublishingProperties.html +5 -12
  389. data/rdoc/RubyXL/WebQueryProperties.html +5 -12
  390. data/rdoc/RubyXL/Workbook.html +40 -460
  391. data/rdoc/RubyXL/WorkbookConvenienceMethods.html +6 -221
  392. data/rdoc/RubyXL/WorkbookProperties.html +5 -12
  393. data/rdoc/RubyXL/WorkbookProtection.html +5 -12
  394. data/rdoc/RubyXL/WorkbookRoot.html +11 -99
  395. data/rdoc/RubyXL/WorkbookView.html +5 -12
  396. data/rdoc/RubyXL/WorkbookViews.html +5 -12
  397. data/rdoc/RubyXL/Worksheet.html +11 -130
  398. data/rdoc/RubyXL/WorksheetConvenienceMethods.html +161 -985
  399. data/rdoc/RubyXL/WorksheetDimensions.html +5 -12
  400. data/rdoc/RubyXL/WorksheetFormatProperties.html +5 -12
  401. data/rdoc/RubyXL/WorksheetProperties.html +5 -12
  402. data/rdoc/RubyXL/WorksheetProtection.html +5 -12
  403. data/rdoc/RubyXL/WorksheetView.html +5 -12
  404. data/rdoc/RubyXL/WorksheetViews.html +5 -12
  405. data/rdoc/RubyXL/XF.html +5 -12
  406. data/rdoc/created.rid +20 -20
  407. data/rdoc/css/rdoc.css +1 -1
  408. data/rdoc/index.html +8 -388
  409. data/rdoc/js/navigation.js.gz +0 -0
  410. data/rdoc/js/search_index.js +1 -1
  411. data/rdoc/js/search_index.js.gz +0 -0
  412. data/rdoc/js/searcher.js.gz +0 -0
  413. data/rdoc/table_of_contents.html +23 -5
  414. data/rubyXL.gemspec +20 -27
  415. data/spec/lib/cell_spec.rb +28 -3
  416. data/spec/lib/rgb_color_spec.rb +16 -0
  417. data/spec/lib/worksheet_spec.rb +265 -0
  418. metadata +9 -7
  419. data/test/output/test.xlsx +0 -0
@@ -4,7 +4,7 @@
4
4
  <head>
5
5
  <meta charset="UTF-8">
6
6
 
7
- <title>module RubyXL::WorksheetConvenienceMethods - rubyXL 3.4.11</title>
7
+ <title>module RubyXL::WorksheetConvenienceMethods - rubyXL 3.4.17</title>
8
8
 
9
9
  <script type="text/javascript">
10
10
  var rdoc_rel_prefix = "../";
@@ -21,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 696</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 671</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 602</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 631</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 645</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 397</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 559</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 586</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 572</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 579</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 623</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 595</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 616</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 609</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 627</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 380</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 370</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 658</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 527</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 453</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 464</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 476</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 488</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 512</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 498</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 505</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 548</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 441</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 520</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 541</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 534</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 447</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 428</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 202</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,41 @@
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">self</span>.<span class="ruby-identifier">merged_cells</span> <span class="ruby-operator">||=</span> <span class="ruby-constant">RubyXL</span><span class="ruby-operator">::</span><span class="ruby-constant">MergedCells</span>.<span class="ruby-identifier">new</span>
1111
+ <span class="ruby-identifier">merged_cells</span>.<span class="ruby-identifier">delete_if</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">mc</span><span class="ruby-operator">|</span> <span class="ruby-identifier">mc</span>.<span class="ruby-identifier">ref</span>.<span class="ruby-identifier">col_range</span> <span class="ruby-operator">==</span> (<span class="ruby-identifier">column_index</span><span class="ruby-operator">..</span><span class="ruby-identifier">column_index</span>) }
1112
+ <span class="ruby-identifier">merged_cells</span>.<span class="ruby-identifier">each</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">mc</span><span class="ruby-operator">|</span>
1113
+ <span class="ruby-keyword">next</span> <span class="ruby-keyword">if</span> <span class="ruby-identifier">mc</span>.<span class="ruby-identifier">ref</span>.<span class="ruby-identifier">col_range</span>.<span class="ruby-identifier">last</span> <span class="ruby-operator">&lt;</span> <span class="ruby-identifier">column_index</span>
1114
+
1115
+ <span class="ruby-identifier">in_merged_cell</span> = <span class="ruby-identifier">mc</span>.<span class="ruby-identifier">ref</span>.<span class="ruby-identifier">col_range</span>.<span class="ruby-identifier">first</span> <span class="ruby-operator">&lt;=</span> <span class="ruby-identifier">column_index</span>
1116
+ <span class="ruby-identifier">mc</span>.<span class="ruby-identifier">ref</span> = <span class="ruby-constant">RubyXL</span><span class="ruby-operator">::</span><span class="ruby-constant">Reference</span>.<span class="ruby-identifier">new</span>(
1117
+ <span class="ruby-identifier">mc</span>.<span class="ruby-identifier">ref</span>.<span class="ruby-identifier">row_range</span>.<span class="ruby-identifier">first</span>,
1118
+ <span class="ruby-identifier">mc</span>.<span class="ruby-identifier">ref</span>.<span class="ruby-identifier">row_range</span>.<span class="ruby-identifier">last</span>,
1119
+ <span class="ruby-identifier">mc</span>.<span class="ruby-identifier">ref</span>.<span class="ruby-identifier">col_range</span>.<span class="ruby-identifier">first</span> <span class="ruby-operator">-</span> (<span class="ruby-identifier">in_merged_cell</span> <span class="ruby-operator">?</span> <span class="ruby-value">0</span> <span class="ruby-operator">:</span> <span class="ruby-value">1</span>),
1120
+ <span class="ruby-identifier">mc</span>.<span class="ruby-identifier">ref</span>.<span class="ruby-identifier">col_range</span>.<span class="ruby-identifier">last</span> <span class="ruby-operator">-</span> <span class="ruby-value">1</span>,
1121
+ )
1122
+ }
1123
+ <span class="ruby-identifier">merged_cells</span>.<span class="ruby-identifier">delete_if</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">mc</span><span class="ruby-operator">|</span> <span class="ruby-identifier">mc</span>.<span class="ruby-identifier">ref</span>.<span class="ruby-identifier">single_cell?</span> }
1580
1124
  <span class="ruby-keyword">end</span></pre>
1581
1125
  </div>
1582
-
1583
1126
  </div>
1584
1127
 
1585
-
1586
1128
 
1587
-
1588
1129
  </div>
1589
1130
 
1590
-
1591
1131
  <div id="method-i-delete_row" class="method-detail ">
1592
-
1593
1132
  <div class="method-heading">
1594
1133
  <span class="method-name">delete_row</span><span
1595
1134
  class="method-args">(row_index=0)</span>
1596
-
1597
1135
  <span class="method-click-advice">click to toggle source</span>
1598
-
1599
1136
  </div>
1600
-
1601
1137
 
1602
1138
  <div class="method-description">
1603
1139
 
1604
-
1605
-
1606
-
1607
1140
 
1608
-
1609
1141
  <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>
1142
+ <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/worksheet.rb, line 126</span>
1611
1143
  <span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">delete_row</span>(<span class="ruby-identifier">row_index</span>=<span class="ruby-value">0</span>)
1612
1144
  <span class="ruby-identifier">validate_workbook</span>
1613
1145
  <span class="ruby-identifier">validate_nonnegative</span>(<span class="ruby-identifier">row_index</span>)
@@ -1620,107 +1152,87 @@
1620
1152
  <span class="ruby-identifier">row</span> <span class="ruby-operator">&amp;&amp;</span> <span class="ruby-identifier">row</span>.<span class="ruby-identifier">cells</span>.<span class="ruby-identifier">each</span>{ <span class="ruby-operator">|</span><span class="ruby-identifier">c</span><span class="ruby-operator">|</span> <span class="ruby-identifier">c</span>.<span class="ruby-identifier">row</span> <span class="ruby-operator">-=</span> <span class="ruby-value">1</span> <span class="ruby-keyword">unless</span> <span class="ruby-identifier">c</span>.<span class="ruby-identifier">nil?</span> }
1621
1153
  }
1622
1154
 
1155
+ <span class="ruby-comment"># Update row number of merged cells</span>
1156
+ <span class="ruby-keyword">self</span>.<span class="ruby-identifier">merged_cells</span> <span class="ruby-operator">||=</span> <span class="ruby-constant">RubyXL</span><span class="ruby-operator">::</span><span class="ruby-constant">MergedCells</span>.<span class="ruby-identifier">new</span>
1157
+ <span class="ruby-identifier">merged_cells</span>.<span class="ruby-identifier">delete_if</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">mc</span><span class="ruby-operator">|</span> <span class="ruby-identifier">mc</span>.<span class="ruby-identifier">ref</span>.<span class="ruby-identifier">row_range</span> <span class="ruby-operator">==</span> (<span class="ruby-identifier">row_index</span><span class="ruby-operator">..</span><span class="ruby-identifier">row_index</span>) }
1158
+ <span class="ruby-identifier">merged_cells</span>.<span class="ruby-identifier">each</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">mc</span><span class="ruby-operator">|</span>
1159
+ <span class="ruby-keyword">next</span> <span class="ruby-keyword">if</span> <span class="ruby-identifier">mc</span>.<span class="ruby-identifier">ref</span>.<span class="ruby-identifier">row_range</span>.<span class="ruby-identifier">last</span> <span class="ruby-operator">&lt;</span> <span class="ruby-identifier">row_index</span>
1160
+
1161
+ <span class="ruby-identifier">in_merged_cell</span> = <span class="ruby-identifier">mc</span>.<span class="ruby-identifier">ref</span>.<span class="ruby-identifier">row_range</span>.<span class="ruby-identifier">first</span> <span class="ruby-operator">&lt;=</span> <span class="ruby-identifier">row_index</span>
1162
+ <span class="ruby-identifier">mc</span>.<span class="ruby-identifier">ref</span> = <span class="ruby-constant">RubyXL</span><span class="ruby-operator">::</span><span class="ruby-constant">Reference</span>.<span class="ruby-identifier">new</span>(
1163
+ <span class="ruby-identifier">mc</span>.<span class="ruby-identifier">ref</span>.<span class="ruby-identifier">row_range</span>.<span class="ruby-identifier">first</span> <span class="ruby-operator">-</span> (<span class="ruby-identifier">in_merged_cell</span> <span class="ruby-operator">?</span> <span class="ruby-value">0</span> <span class="ruby-operator">:</span> <span class="ruby-value">1</span>),
1164
+ <span class="ruby-identifier">mc</span>.<span class="ruby-identifier">ref</span>.<span class="ruby-identifier">row_range</span>.<span class="ruby-identifier">last</span> <span class="ruby-operator">-</span> <span class="ruby-value">1</span>,
1165
+ <span class="ruby-identifier">mc</span>.<span class="ruby-identifier">ref</span>.<span class="ruby-identifier">col_range</span>.<span class="ruby-identifier">first</span>,
1166
+ <span class="ruby-identifier">mc</span>.<span class="ruby-identifier">ref</span>.<span class="ruby-identifier">col_range</span>.<span class="ruby-identifier">last</span>,
1167
+ )
1168
+ }
1169
+ <span class="ruby-identifier">merged_cells</span>.<span class="ruby-identifier">delete_if</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">mc</span><span class="ruby-operator">|</span> <span class="ruby-identifier">mc</span>.<span class="ruby-identifier">ref</span>.<span class="ruby-identifier">single_cell?</span> }
1170
+
1623
1171
  <span class="ruby-keyword">return</span> <span class="ruby-identifier">deleted</span>
1624
1172
  <span class="ruby-keyword">end</span></pre>
1625
1173
  </div>
1626
-
1627
1174
  </div>
1628
1175
 
1629
-
1630
1176
 
1631
-
1632
1177
  </div>
1633
1178
 
1634
-
1635
1179
  <div id="method-i-get_col_style" class="method-detail ">
1636
-
1637
1180
  <div class="method-heading">
1638
1181
  <span class="method-name">get_col_style</span><span
1639
1182
  class="method-args">(column_index)</span>
1640
-
1641
1183
  <span class="method-click-advice">click to toggle source</span>
1642
-
1643
1184
  </div>
1644
-
1645
1185
 
1646
1186
  <div class="method-description">
1647
-
1648
1187
  <p>Helper method to get the style index for a column</p>
1649
-
1650
-
1651
1188
 
1652
-
1653
1189
  <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>
1190
+ <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/worksheet.rb, line 385</span>
1655
1191
  <span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">get_col_style</span>(<span class="ruby-identifier">column_index</span>)
1656
1192
  <span class="ruby-identifier">range</span> = <span class="ruby-identifier">cols</span>.<span class="ruby-identifier">locate_range</span>(<span class="ruby-identifier">column_index</span>)
1657
1193
  (<span class="ruby-identifier">range</span> <span class="ruby-operator">&amp;&amp;</span> <span class="ruby-identifier">range</span>.<span class="ruby-identifier">style_index</span>) <span class="ruby-operator">||</span> <span class="ruby-value">0</span>
1658
1194
  <span class="ruby-keyword">end</span></pre>
1659
1195
  </div>
1660
-
1661
1196
  </div>
1662
1197
 
1663
-
1664
1198
 
1665
-
1666
1199
  </div>
1667
1200
 
1668
-
1669
1201
  <div id="method-i-get_cols_style_index" class="method-detail ">
1670
-
1671
1202
  <div class="method-heading">
1672
1203
  <span class="method-name">get_cols_style_index</span><span
1673
1204
  class="method-args">(column_index)</span>
1674
-
1675
1205
  <span class="method-click-advice">click to toggle source</span>
1676
-
1677
1206
  </div>
1678
-
1679
1207
 
1680
1208
  <div class="method-description">
1681
1209
 
1682
-
1683
-
1684
-
1685
1210
 
1686
-
1687
1211
  <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>
1212
+ <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/worksheet.rb, line 311</span>
1689
1213
  <span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">get_cols_style_index</span>(<span class="ruby-identifier">column_index</span>)
1690
1214
  <span class="ruby-identifier">validate_nonnegative</span>(<span class="ruby-identifier">column_index</span>)
1691
1215
  <span class="ruby-identifier">range</span> = <span class="ruby-identifier">cols</span>.<span class="ruby-identifier">locate_range</span>(<span class="ruby-identifier">column_index</span>)
1692
1216
  (<span class="ruby-identifier">range</span> <span class="ruby-operator">&amp;&amp;</span> <span class="ruby-identifier">range</span>.<span class="ruby-identifier">style_index</span>) <span class="ruby-operator">||</span> <span class="ruby-value">0</span>
1693
1217
  <span class="ruby-keyword">end</span></pre>
1694
1218
  </div>
1695
-
1696
1219
  </div>
1697
1220
 
1698
-
1699
1221
 
1700
-
1701
1222
  </div>
1702
1223
 
1703
-
1704
1224
  <div id="method-i-get_column_alignment" class="method-detail ">
1705
-
1706
1225
  <div class="method-heading">
1707
1226
  <span class="method-name">get_column_alignment</span><span
1708
1227
  class="method-args">(col, type)</span>
1709
-
1710
1228
  <span class="method-click-advice">click to toggle source</span>
1711
-
1712
1229
  </div>
1713
-
1714
1230
 
1715
1231
  <div class="method-description">
1716
1232
 
1717
-
1718
-
1719
-
1720
1233
 
1721
-
1722
1234
  <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>
1235
+ <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/worksheet.rb, line 434</span>
1724
1236
  <span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">get_column_alignment</span>(<span class="ruby-identifier">col</span>, <span class="ruby-identifier">type</span>)
1725
1237
  <span class="ruby-identifier">validate_workbook</span>
1726
1238
 
@@ -1728,35 +1240,23 @@
1728
1240
  <span class="ruby-identifier">xf</span>.<span class="ruby-identifier">alignment</span> <span class="ruby-operator">&amp;&amp;</span> <span class="ruby-identifier">xf</span>.<span class="ruby-identifier">alignment</span>.<span class="ruby-identifier">send</span>(<span class="ruby-identifier">type</span>)
1729
1241
  <span class="ruby-keyword">end</span></pre>
1730
1242
  </div>
1731
-
1732
1243
  </div>
1733
1244
 
1734
-
1735
1245
 
1736
-
1737
1246
  </div>
1738
1247
 
1739
-
1740
1248
  <div id="method-i-get_column_border" class="method-detail ">
1741
-
1742
1249
  <div class="method-heading">
1743
1250
  <span class="method-name">get_column_border</span><span
1744
1251
  class="method-args">(col, border_direction)</span>
1745
-
1746
1252
  <span class="method-click-advice">click to toggle source</span>
1747
-
1748
1253
  </div>
1749
-
1750
1254
 
1751
1255
  <div class="method-description">
1752
1256
 
1753
-
1754
-
1755
-
1756
1257
 
1757
-
1758
1258
  <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>
1259
+ <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/worksheet.rb, line 412</span>
1760
1260
  <span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">get_column_border</span>(<span class="ruby-identifier">col</span>, <span class="ruby-identifier">border_direction</span>)
1761
1261
  <span class="ruby-identifier">validate_workbook</span>
1762
1262
 
@@ -1765,35 +1265,23 @@
1765
1265
  <span class="ruby-identifier">border</span> <span class="ruby-operator">&amp;&amp;</span> <span class="ruby-identifier">border</span>.<span class="ruby-identifier">get_edge_style</span>(<span class="ruby-identifier">border_direction</span>)
1766
1266
  <span class="ruby-keyword">end</span></pre>
1767
1267
  </div>
1768
-
1769
1268
  </div>
1770
1269
 
1771
-
1772
1270
 
1773
-
1774
1271
  </div>
1775
1272
 
1776
-
1777
1273
  <div id="method-i-get_column_border_color" class="method-detail ">
1778
-
1779
1274
  <div class="method-heading">
1780
1275
  <span class="method-name">get_column_border_color</span><span
1781
1276
  class="method-args">(col, border_direction)</span>
1782
-
1783
1277
  <span class="method-click-advice">click to toggle source</span>
1784
-
1785
1278
  </div>
1786
-
1787
1279
 
1788
1280
  <div class="method-description">
1789
1281
 
1790
-
1791
-
1792
-
1793
1282
 
1794
-
1795
1283
  <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>
1284
+ <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/worksheet.rb, line 420</span>
1797
1285
  <span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">get_column_border_color</span>(<span class="ruby-identifier">col</span>, <span class="ruby-identifier">border_direction</span>)
1798
1286
  <span class="ruby-identifier">validate_workbook</span>
1799
1287
 
@@ -1802,35 +1290,23 @@
1802
1290
  <span class="ruby-identifier">border</span> <span class="ruby-operator">&amp;&amp;</span> <span class="ruby-identifier">border</span>.<span class="ruby-identifier">get_edge_color</span>(<span class="ruby-identifier">border_direction</span>)
1803
1291
  <span class="ruby-keyword">end</span></pre>
1804
1292
  </div>
1805
-
1806
1293
  </div>
1807
1294
 
1808
-
1809
1295
 
1810
-
1811
1296
  </div>
1812
1297
 
1813
-
1814
1298
  <div id="method-i-get_column_fill" class="method-detail ">
1815
-
1816
1299
  <div class="method-heading">
1817
1300
  <span class="method-name">get_column_fill</span><span
1818
1301
  class="method-args">(col=0)</span>
1819
-
1820
1302
  <span class="method-click-advice">click to toggle source</span>
1821
-
1822
1303
  </div>
1823
-
1824
1304
 
1825
1305
  <div class="method-description">
1826
1306
 
1827
-
1828
-
1829
-
1830
1307
 
1831
-
1832
1308
  <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>
1309
+ <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/worksheet.rb, line 390</span>
1834
1310
  <span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">get_column_fill</span>(<span class="ruby-identifier">col</span>=<span class="ruby-value">0</span>)
1835
1311
  <span class="ruby-identifier">validate_workbook</span>
1836
1312
  <span class="ruby-identifier">validate_nonnegative</span>(<span class="ruby-identifier">col</span>)
@@ -1838,172 +1314,112 @@
1838
1314
  <span class="ruby-ivar">@workbook</span>.<span class="ruby-identifier">get_fill_color</span>(<span class="ruby-identifier">get_col_xf</span>(<span class="ruby-identifier">col</span>))
1839
1315
  <span class="ruby-keyword">end</span></pre>
1840
1316
  </div>
1841
-
1842
1317
  </div>
1843
1318
 
1844
-
1845
1319
 
1846
-
1847
1320
  </div>
1848
1321
 
1849
-
1850
1322
  <div id="method-i-get_column_font_color" class="method-detail ">
1851
-
1852
1323
  <div class="method-heading">
1853
1324
  <span class="method-name">get_column_font_color</span><span
1854
1325
  class="method-args">(col = 0)</span>
1855
-
1856
1326
  <span class="method-click-advice">click to toggle source</span>
1857
-
1858
1327
  </div>
1859
-
1860
1328
 
1861
1329
  <div class="method-description">
1862
1330
 
1863
-
1864
-
1865
-
1866
1331
 
1867
-
1868
1332
  <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>
1333
+ <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/worksheet.rb, line 327</span>
1870
1334
  <span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">get_column_font_color</span>(<span class="ruby-identifier">col</span> = <span class="ruby-value">0</span>)
1871
1335
  <span class="ruby-identifier">font</span> = <span class="ruby-identifier">column_font</span>(<span class="ruby-identifier">col</span>)
1872
1336
  <span class="ruby-identifier">font</span> <span class="ruby-operator">&amp;&amp;</span> (<span class="ruby-identifier">font</span>.<span class="ruby-identifier">get_rgb_color</span> <span class="ruby-operator">||</span> <span class="ruby-string">&#39;000000&#39;</span>)
1873
1337
  <span class="ruby-keyword">end</span></pre>
1874
1338
  </div>
1875
-
1876
1339
  </div>
1877
1340
 
1878
-
1879
1341
 
1880
-
1881
1342
  </div>
1882
1343
 
1883
-
1884
1344
  <div id="method-i-get_column_font_name" class="method-detail ">
1885
-
1886
1345
  <div class="method-heading">
1887
1346
  <span class="method-name">get_column_font_name</span><span
1888
1347
  class="method-args">(col = 0)</span>
1889
-
1890
1348
  <span class="method-click-advice">click to toggle source</span>
1891
-
1892
1349
  </div>
1893
-
1894
1350
 
1895
1351
  <div class="method-description">
1896
1352
 
1897
-
1898
-
1899
-
1900
1353
 
1901
-
1902
1354
  <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>
1355
+ <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/worksheet.rb, line 317</span>
1904
1356
  <span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">get_column_font_name</span>(<span class="ruby-identifier">col</span> = <span class="ruby-value">0</span>)
1905
1357
  <span class="ruby-identifier">font</span> = <span class="ruby-identifier">column_font</span>(<span class="ruby-identifier">col</span>)
1906
1358
  <span class="ruby-identifier">font</span> <span class="ruby-operator">&amp;&amp;</span> <span class="ruby-identifier">font</span>.<span class="ruby-identifier">get_name</span>
1907
1359
  <span class="ruby-keyword">end</span></pre>
1908
1360
  </div>
1909
-
1910
1361
  </div>
1911
1362
 
1912
-
1913
1363
 
1914
-
1915
1364
  </div>
1916
1365
 
1917
-
1918
1366
  <div id="method-i-get_column_font_size" class="method-detail ">
1919
-
1920
1367
  <div class="method-heading">
1921
1368
  <span class="method-name">get_column_font_size</span><span
1922
1369
  class="method-args">(col = 0)</span>
1923
-
1924
1370
  <span class="method-click-advice">click to toggle source</span>
1925
-
1926
1371
  </div>
1927
-
1928
1372
 
1929
1373
  <div class="method-description">
1930
1374
 
1931
-
1932
-
1933
-
1934
1375
 
1935
-
1936
1376
  <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>
1377
+ <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/worksheet.rb, line 322</span>
1938
1378
  <span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">get_column_font_size</span>(<span class="ruby-identifier">col</span> = <span class="ruby-value">0</span>)
1939
1379
  <span class="ruby-identifier">font</span> = <span class="ruby-identifier">column_font</span>(<span class="ruby-identifier">col</span>)
1940
1380
  <span class="ruby-identifier">font</span> <span class="ruby-operator">&amp;&amp;</span> <span class="ruby-identifier">font</span>.<span class="ruby-identifier">get_size</span>
1941
1381
  <span class="ruby-keyword">end</span></pre>
1942
1382
  </div>
1943
-
1944
1383
  </div>
1945
1384
 
1946
-
1947
1385
 
1948
-
1949
1386
  </div>
1950
1387
 
1951
-
1952
1388
  <div id="method-i-get_column_width" class="method-detail ">
1953
-
1954
1389
  <div class="method-heading">
1955
1390
  <span class="method-name">get_column_width</span><span
1956
1391
  class="method-args">(column_index = 0)</span>
1957
-
1958
1392
  <span class="method-click-advice">click to toggle source</span>
1959
-
1960
1393
  </div>
1961
-
1962
1394
 
1963
1395
  <div class="method-description">
1964
-
1965
1396
  <p>Get column width measured in number of digits, as per <a href="http://msdn.microsoft.com/en-us/library/documentformat.openxml.spreadsheet.column%28v=office.14%29.aspx">msdn.microsoft.com/en-us/library/documentformat.openxml.spreadsheet.column%28v=office.14%29.aspx</a></p>
1966
-
1967
-
1968
1397
 
1969
-
1970
1398
  <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>
1399
+ <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/worksheet.rb, line 363</span>
1972
1400
  <span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">get_column_width</span>(<span class="ruby-identifier">column_index</span> = <span class="ruby-value">0</span>)
1973
1401
  <span class="ruby-identifier">width</span> = <span class="ruby-identifier">get_column_width_raw</span>(<span class="ruby-identifier">column_index</span>)
1974
1402
  <span class="ruby-keyword">return</span> <span class="ruby-constant">RubyXL</span><span class="ruby-operator">::</span><span class="ruby-constant">ColumnRange</span><span class="ruby-operator">::</span><span class="ruby-constant">DEFAULT_WIDTH</span> <span class="ruby-keyword">if</span> <span class="ruby-identifier">width</span>.<span class="ruby-identifier">nil?</span>
1975
1403
  (<span class="ruby-identifier">width</span> <span class="ruby-operator">-</span> (<span class="ruby-value">5.0</span> <span class="ruby-operator">/</span> <span class="ruby-constant">RubyXL</span><span class="ruby-operator">::</span><span class="ruby-constant">Font</span><span class="ruby-operator">::</span><span class="ruby-constant">MAX_DIGIT_WIDTH</span>)).<span class="ruby-identifier">round</span>
1976
1404
  <span class="ruby-keyword">end</span></pre>
1977
1405
  </div>
1978
-
1979
1406
  </div>
1980
1407
 
1981
-
1982
1408
 
1983
-
1984
1409
  </div>
1985
1410
 
1986
-
1987
1411
  <div id="method-i-get_column_width_raw" class="method-detail ">
1988
-
1989
1412
  <div class="method-heading">
1990
1413
  <span class="method-name">get_column_width_raw</span><span
1991
1414
  class="method-args">(column_index = 0)</span>
1992
-
1993
1415
  <span class="method-click-advice">click to toggle source</span>
1994
-
1995
1416
  </div>
1996
-
1997
1417
 
1998
1418
  <div class="method-description">
1999
-
2000
1419
  <p>Get raw column width value as stored in the file</p>
2001
-
2002
-
2003
1420
 
2004
-
2005
1421
  <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>
1422
+ <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/worksheet.rb, line 353</span>
2007
1423
  <span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">get_column_width_raw</span>(<span class="ruby-identifier">column_index</span> = <span class="ruby-value">0</span>)
2008
1424
  <span class="ruby-identifier">validate_workbook</span>
2009
1425
  <span class="ruby-identifier">validate_nonnegative</span>(<span class="ruby-identifier">column_index</span>)
@@ -2012,35 +1428,23 @@
2012
1428
  <span class="ruby-identifier">range</span> <span class="ruby-operator">&amp;&amp;</span> <span class="ruby-identifier">range</span>.<span class="ruby-identifier">width</span>
2013
1429
  <span class="ruby-keyword">end</span></pre>
2014
1430
  </div>
2015
-
2016
1431
  </div>
2017
1432
 
2018
-
2019
1433
 
2020
-
2021
1434
  </div>
2022
1435
 
2023
-
2024
1436
  <div id="method-i-get_row_alignment" class="method-detail ">
2025
-
2026
1437
  <div class="method-heading">
2027
1438
  <span class="method-name">get_row_alignment</span><span
2028
1439
  class="method-args">(row, is_horizontal)</span>
2029
-
2030
1440
  <span class="method-click-advice">click to toggle source</span>
2031
-
2032
1441
  </div>
2033
-
2034
1442
 
2035
1443
  <div class="method-description">
2036
1444
 
2037
-
2038
-
2039
-
2040
1445
 
2041
-
2042
1446
  <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>
1447
+ <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/worksheet.rb, line 300</span>
2044
1448
  <span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">get_row_alignment</span>(<span class="ruby-identifier">row</span>, <span class="ruby-identifier">is_horizontal</span>)
2045
1449
  <span class="ruby-identifier">validate_workbook</span>
2046
1450
 
@@ -2052,35 +1456,23 @@
2052
1456
  <span class="ruby-keyword">end</span>
2053
1457
  <span class="ruby-keyword">end</span></pre>
2054
1458
  </div>
2055
-
2056
1459
  </div>
2057
1460
 
2058
-
2059
1461
 
2060
-
2061
1462
  </div>
2062
1463
 
2063
-
2064
1464
  <div id="method-i-get_row_border" class="method-detail ">
2065
-
2066
1465
  <div class="method-heading">
2067
1466
  <span class="method-name">get_row_border</span><span
2068
1467
  class="method-args">(row, border_direction)</span>
2069
-
2070
1468
  <span class="method-click-advice">click to toggle source</span>
2071
-
2072
1469
  </div>
2073
-
2074
1470
 
2075
1471
  <div class="method-description">
2076
1472
 
2077
-
2078
-
2079
-
2080
1473
 
2081
-
2082
1474
  <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>
1475
+ <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/worksheet.rb, line 282</span>
2084
1476
  <span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">get_row_border</span>(<span class="ruby-identifier">row</span>, <span class="ruby-identifier">border_direction</span>)
2085
1477
  <span class="ruby-identifier">validate_workbook</span>
2086
1478
 
@@ -2088,35 +1480,23 @@
2088
1480
  <span class="ruby-identifier">border</span> <span class="ruby-operator">&amp;&amp;</span> <span class="ruby-identifier">border</span>.<span class="ruby-identifier">get_edge_style</span>(<span class="ruby-identifier">border_direction</span>)
2089
1481
  <span class="ruby-keyword">end</span></pre>
2090
1482
  </div>
2091
-
2092
1483
  </div>
2093
1484
 
2094
-
2095
1485
 
2096
-
2097
1486
  </div>
2098
1487
 
2099
-
2100
1488
  <div id="method-i-get_row_border_color" class="method-detail ">
2101
-
2102
1489
  <div class="method-heading">
2103
1490
  <span class="method-name">get_row_border_color</span><span
2104
1491
  class="method-args">(row, border_direction)</span>
2105
-
2106
1492
  <span class="method-click-advice">click to toggle source</span>
2107
-
2108
1493
  </div>
2109
-
2110
1494
 
2111
1495
  <div class="method-description">
2112
1496
 
2113
-
2114
-
2115
-
2116
1497
 
2117
-
2118
1498
  <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>
1499
+ <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/worksheet.rb, line 289</span>
2120
1500
  <span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">get_row_border_color</span>(<span class="ruby-identifier">row</span>, <span class="ruby-identifier">border_direction</span>)
2121
1501
  <span class="ruby-identifier">validate_workbook</span>
2122
1502
 
@@ -2124,169 +1504,109 @@
2124
1504
  <span class="ruby-identifier">border</span> <span class="ruby-operator">&amp;&amp;</span> <span class="ruby-identifier">border</span>.<span class="ruby-identifier">get_edge_color</span>(<span class="ruby-identifier">border_direction</span>)
2125
1505
  <span class="ruby-keyword">end</span></pre>
2126
1506
  </div>
2127
-
2128
1507
  </div>
2129
1508
 
2130
-
2131
1509
 
2132
-
2133
1510
  </div>
2134
1511
 
2135
-
2136
1512
  <div id="method-i-get_row_fill" class="method-detail ">
2137
-
2138
1513
  <div class="method-heading">
2139
1514
  <span class="method-name">get_row_fill</span><span
2140
1515
  class="method-args">(row = 0)</span>
2141
-
2142
1516
  <span class="method-click-advice">click to toggle source</span>
2143
-
2144
1517
  </div>
2145
-
2146
1518
 
2147
1519
  <div class="method-description">
2148
1520
 
2149
-
2150
-
2151
-
2152
1521
 
2153
-
2154
1522
  <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>
1523
+ <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/worksheet.rb, line 241</span>
2156
1524
  <span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">get_row_fill</span>(<span class="ruby-identifier">row</span> = <span class="ruby-value">0</span>)
2157
1525
  (<span class="ruby-identifier">row</span> = <span class="ruby-identifier">sheet_data</span>.<span class="ruby-identifier">rows</span>[<span class="ruby-identifier">row</span>]) <span class="ruby-operator">&amp;&amp;</span> <span class="ruby-identifier">row</span>.<span class="ruby-identifier">get_fill_color</span>
2158
1526
  <span class="ruby-keyword">end</span></pre>
2159
1527
  </div>
2160
-
2161
1528
  </div>
2162
1529
 
2163
-
2164
1530
 
2165
-
2166
1531
  </div>
2167
1532
 
2168
-
2169
1533
  <div id="method-i-get_row_font_color" class="method-detail ">
2170
-
2171
1534
  <div class="method-heading">
2172
1535
  <span class="method-name">get_row_font_color</span><span
2173
1536
  class="method-args">(row = 0)</span>
2174
-
2175
1537
  <span class="method-click-advice">click to toggle source</span>
2176
-
2177
1538
  </div>
2178
-
2179
1539
 
2180
1540
  <div class="method-description">
2181
1541
 
2182
-
2183
-
2184
-
2185
1542
 
2186
-
2187
1543
  <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>
1544
+ <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/worksheet.rb, line 253</span>
2189
1545
  <span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">get_row_font_color</span>(<span class="ruby-identifier">row</span> = <span class="ruby-value">0</span>)
2190
1546
  <span class="ruby-identifier">font</span> = <span class="ruby-identifier">row_font</span>(<span class="ruby-identifier">row</span>)
2191
1547
  <span class="ruby-identifier">color</span> = <span class="ruby-identifier">font</span> <span class="ruby-operator">&amp;&amp;</span> <span class="ruby-identifier">font</span>.<span class="ruby-identifier">color</span>
2192
1548
  <span class="ruby-identifier">color</span> <span class="ruby-operator">&amp;&amp;</span> (<span class="ruby-identifier">color</span>.<span class="ruby-identifier">rgb</span> <span class="ruby-operator">||</span> <span class="ruby-string">&#39;000000&#39;</span>)
2193
1549
  <span class="ruby-keyword">end</span></pre>
2194
1550
  </div>
2195
-
2196
1551
  </div>
2197
1552
 
2198
-
2199
1553
 
2200
-
2201
1554
  </div>
2202
1555
 
2203
-
2204
1556
  <div id="method-i-get_row_font_name" class="method-detail ">
2205
-
2206
1557
  <div class="method-heading">
2207
1558
  <span class="method-name">get_row_font_name</span><span
2208
1559
  class="method-args">(row = 0)</span>
2209
-
2210
1560
  <span class="method-click-advice">click to toggle source</span>
2211
-
2212
1561
  </div>
2213
-
2214
1562
 
2215
1563
  <div class="method-description">
2216
1564
 
2217
-
2218
-
2219
-
2220
1565
 
2221
-
2222
1566
  <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>
1567
+ <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/worksheet.rb, line 245</span>
2224
1568
  <span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">get_row_font_name</span>(<span class="ruby-identifier">row</span> = <span class="ruby-value">0</span>)
2225
1569
  (<span class="ruby-identifier">font</span> = <span class="ruby-identifier">row_font</span>(<span class="ruby-identifier">row</span>)) <span class="ruby-operator">&amp;&amp;</span> <span class="ruby-identifier">font</span>.<span class="ruby-identifier">get_name</span>
2226
1570
  <span class="ruby-keyword">end</span></pre>
2227
1571
  </div>
2228
-
2229
1572
  </div>
2230
1573
 
2231
-
2232
1574
 
2233
-
2234
1575
  </div>
2235
1576
 
2236
-
2237
1577
  <div id="method-i-get_row_font_size" class="method-detail ">
2238
-
2239
1578
  <div class="method-heading">
2240
1579
  <span class="method-name">get_row_font_size</span><span
2241
1580
  class="method-args">(row = 0)</span>
2242
-
2243
1581
  <span class="method-click-advice">click to toggle source</span>
2244
-
2245
1582
  </div>
2246
-
2247
1583
 
2248
1584
  <div class="method-description">
2249
1585
 
2250
-
2251
-
2252
-
2253
1586
 
2254
-
2255
1587
  <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>
1588
+ <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/worksheet.rb, line 249</span>
2257
1589
  <span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">get_row_font_size</span>(<span class="ruby-identifier">row</span> = <span class="ruby-value">0</span>)
2258
1590
  (<span class="ruby-identifier">font</span> = <span class="ruby-identifier">row_font</span>(<span class="ruby-identifier">row</span>)) <span class="ruby-operator">&amp;&amp;</span> <span class="ruby-identifier">font</span>.<span class="ruby-identifier">get_size</span>
2259
1591
  <span class="ruby-keyword">end</span></pre>
2260
1592
  </div>
2261
-
2262
1593
  </div>
2263
1594
 
2264
-
2265
1595
 
2266
-
2267
1596
  </div>
2268
1597
 
2269
-
2270
1598
  <div id="method-i-get_row_height" class="method-detail ">
2271
-
2272
1599
  <div class="method-heading">
2273
1600
  <span class="method-name">get_row_height</span><span
2274
1601
  class="method-args">(row = 0)</span>
2275
-
2276
1602
  <span class="method-click-advice">click to toggle source</span>
2277
-
2278
1603
  </div>
2279
-
2280
1604
 
2281
1605
  <div class="method-description">
2282
1606
 
2283
-
2284
-
2285
-
2286
1607
 
2287
-
2288
1608
  <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>
1609
+ <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/worksheet.rb, line 275</span>
2290
1610
  <span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">get_row_height</span>(<span class="ruby-identifier">row</span> = <span class="ruby-value">0</span>)
2291
1611
  <span class="ruby-identifier">validate_workbook</span>
2292
1612
  <span class="ruby-identifier">validate_nonnegative</span>(<span class="ruby-identifier">row</span>)
@@ -2294,67 +1614,43 @@
2294
1614
  <span class="ruby-identifier">row</span> <span class="ruby-operator">&amp;&amp;</span> <span class="ruby-identifier">row</span>.<span class="ruby-identifier">ht</span> <span class="ruby-operator">||</span> <span class="ruby-constant">RubyXL</span><span class="ruby-operator">::</span><span class="ruby-constant">Row</span><span class="ruby-operator">::</span><span class="ruby-constant">DEFAULT_HEIGHT</span>
2295
1615
  <span class="ruby-keyword">end</span></pre>
2296
1616
  </div>
2297
-
2298
1617
  </div>
2299
1618
 
2300
-
2301
1619
 
2302
-
2303
1620
  </div>
2304
1621
 
2305
-
2306
1622
  <div id="method-i-get_row_style" class="method-detail ">
2307
-
2308
1623
  <div class="method-heading">
2309
1624
  <span class="method-name">get_row_style</span><span
2310
1625
  class="method-args">(row_index)</span>
2311
-
2312
1626
  <span class="method-click-advice">click to toggle source</span>
2313
-
2314
1627
  </div>
2315
-
2316
1628
 
2317
1629
  <div class="method-description">
2318
1630
 
2319
-
2320
-
2321
-
2322
1631
 
2323
-
2324
1632
  <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>
1633
+ <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/worksheet.rb, line 236</span>
2326
1634
  <span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">get_row_style</span>(<span class="ruby-identifier">row_index</span>)
2327
1635
  <span class="ruby-identifier">row</span> = <span class="ruby-identifier">sheet_data</span>.<span class="ruby-identifier">rows</span>[<span class="ruby-identifier">row_index</span>]
2328
1636
  (<span class="ruby-identifier">row</span> <span class="ruby-operator">&amp;&amp;</span> <span class="ruby-identifier">row</span>.<span class="ruby-identifier">style_index</span>) <span class="ruby-operator">||</span> <span class="ruby-value">0</span>
2329
1637
  <span class="ruby-keyword">end</span></pre>
2330
1638
  </div>
2331
-
2332
1639
  </div>
2333
1640
 
2334
-
2335
1641
 
2336
-
2337
1642
  </div>
2338
1643
 
2339
-
2340
1644
  <div id="method-i-insert_cell" class="method-detail ">
2341
-
2342
1645
  <div class="method-heading">
2343
1646
  <span class="method-name">insert_cell</span><span
2344
1647
  class="method-args">(row = 0, col = 0, data = nil, formula = nil, shift = nil)</span>
2345
-
2346
1648
  <span class="method-click-advice">click to toggle source</span>
2347
-
2348
1649
  </div>
2349
-
2350
1650
 
2351
1651
  <div class="method-description">
2352
1652
 
2353
-
2354
-
2355
-
2356
1653
 
2357
-
2358
1654
  <div class="method-source-code" id="insert_cell-source">
2359
1655
  <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/worksheet.rb, line 12</span>
2360
1656
  <span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">insert_cell</span>(<span class="ruby-identifier">row</span> = <span class="ruby-value">0</span>, <span class="ruby-identifier">col</span> = <span class="ruby-value">0</span>, <span class="ruby-identifier">data</span> = <span class="ruby-keyword">nil</span>, <span class="ruby-identifier">formula</span> = <span class="ruby-keyword">nil</span>, <span class="ruby-identifier">shift</span> = <span class="ruby-keyword">nil</span>)
@@ -2383,35 +1679,23 @@
2383
1679
  <span class="ruby-keyword">return</span> <span class="ruby-identifier">add_cell</span>(<span class="ruby-identifier">row</span>, <span class="ruby-identifier">col</span>, <span class="ruby-identifier">data</span>, <span class="ruby-identifier">formula</span>)
2384
1680
  <span class="ruby-keyword">end</span></pre>
2385
1681
  </div>
2386
-
2387
1682
  </div>
2388
1683
 
2389
-
2390
1684
 
2391
-
2392
1685
  </div>
2393
1686
 
2394
-
2395
1687
  <div id="method-i-insert_column" class="method-detail ">
2396
-
2397
1688
  <div class="method-heading">
2398
1689
  <span class="method-name">insert_column</span><span
2399
1690
  class="method-args">(column_index = 0)</span>
2400
-
2401
1691
  <span class="method-click-advice">click to toggle source</span>
2402
-
2403
1692
  </div>
2404
-
2405
1693
 
2406
1694
  <div class="method-description">
2407
-
2408
1695
  <p>Inserts column at <code>column_index</code>, pushes everything right, takes styles from column to left NOTE: use of this method will break formulas which reference cells which are being “pushed right”</p>
2409
-
2410
-
2411
1696
 
2412
-
2413
1697
  <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>
1698
+ <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/worksheet.rb, line 159</span>
2415
1699
  <span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">insert_column</span>(<span class="ruby-identifier">column_index</span> = <span class="ruby-value">0</span>)
2416
1700
  <span class="ruby-identifier">validate_workbook</span>
2417
1701
  <span class="ruby-identifier">ensure_cell_exists</span>(<span class="ruby-value">0</span>, <span class="ruby-identifier">column_index</span>)
@@ -2438,36 +1722,38 @@
2438
1722
 
2439
1723
  <span class="ruby-identifier">cols</span>.<span class="ruby-identifier">insert_column</span>(<span class="ruby-identifier">column_index</span>)
2440
1724
 
1725
+ <span class="ruby-comment"># Update merged cells for all rows below</span>
1726
+ <span class="ruby-keyword">self</span>.<span class="ruby-identifier">merged_cells</span> <span class="ruby-operator">||=</span> <span class="ruby-constant">RubyXL</span><span class="ruby-operator">::</span><span class="ruby-constant">MergedCells</span>.<span class="ruby-identifier">new</span>
1727
+ <span class="ruby-identifier">merged_cells</span>.<span class="ruby-identifier">each</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">mc</span><span class="ruby-operator">|</span>
1728
+ <span class="ruby-keyword">next</span> <span class="ruby-keyword">if</span> <span class="ruby-identifier">mc</span>.<span class="ruby-identifier">ref</span>.<span class="ruby-identifier">col_range</span>.<span class="ruby-identifier">last</span> <span class="ruby-operator">&lt;</span> <span class="ruby-identifier">column_index</span>
1729
+
1730
+ <span class="ruby-identifier">in_merged_cell</span> = <span class="ruby-identifier">mc</span>.<span class="ruby-identifier">ref</span>.<span class="ruby-identifier">row_range</span>.<span class="ruby-identifier">first</span> <span class="ruby-operator">&lt;</span> <span class="ruby-identifier">column_index</span>
1731
+ <span class="ruby-identifier">mc</span>.<span class="ruby-identifier">ref</span> = <span class="ruby-constant">RubyXL</span><span class="ruby-operator">::</span><span class="ruby-constant">Reference</span>.<span class="ruby-identifier">new</span>(
1732
+ <span class="ruby-identifier">mc</span>.<span class="ruby-identifier">ref</span>.<span class="ruby-identifier">row_range</span>.<span class="ruby-identifier">first</span>,
1733
+ <span class="ruby-identifier">mc</span>.<span class="ruby-identifier">ref</span>.<span class="ruby-identifier">row_range</span>.<span class="ruby-identifier">last</span>,
1734
+ <span class="ruby-identifier">mc</span>.<span class="ruby-identifier">ref</span>.<span class="ruby-identifier">col_range</span>.<span class="ruby-identifier">first</span> <span class="ruby-operator">+</span> (<span class="ruby-identifier">in_merged_cell</span> <span class="ruby-operator">?</span> <span class="ruby-value">0</span> <span class="ruby-operator">:</span> <span class="ruby-value">1</span>),
1735
+ <span class="ruby-identifier">mc</span>.<span class="ruby-identifier">ref</span>.<span class="ruby-identifier">col_range</span>.<span class="ruby-identifier">last</span> <span class="ruby-operator">+</span> <span class="ruby-value">1</span>,
1736
+ )
1737
+ }
1738
+
2441
1739
  <span class="ruby-comment"># TODO: update column numbers</span>
2442
1740
  <span class="ruby-keyword">end</span></pre>
2443
1741
  </div>
2444
-
2445
1742
  </div>
2446
1743
 
2447
-
2448
1744
 
2449
-
2450
1745
  </div>
2451
1746
 
2452
-
2453
1747
  <div id="method-i-insert_row" class="method-detail ">
2454
-
2455
1748
  <div class="method-heading">
2456
1749
  <span class="method-name">insert_row</span><span
2457
1750
  class="method-args">(row_index = 0)</span>
2458
-
2459
1751
  <span class="method-click-advice">click to toggle source</span>
2460
-
2461
1752
  </div>
2462
-
2463
1753
 
2464
1754
  <div class="method-description">
2465
-
2466
1755
  <p>Inserts row at row_index, pushes down, copies style from the row above (that&#39;s what Excel 2013 does!) NOTE: use of this method will break formulas which reference cells which are being “pushed down”</p>
2467
-
2468
-
2469
1756
 
2470
-
2471
1757
  <div class="method-source-code" id="insert_row-source">
2472
1758
  <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/worksheet.rb, line 74</span>
2473
1759
  <span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">insert_row</span>(<span class="ruby-identifier">row_index</span> = <span class="ruby-value">0</span>)
@@ -2505,306 +1791,212 @@
2505
1791
  }
2506
1792
  }
2507
1793
 
1794
+ <span class="ruby-comment"># Update merged cells for all rows below</span>
1795
+ <span class="ruby-keyword">self</span>.<span class="ruby-identifier">merged_cells</span> <span class="ruby-operator">||=</span> <span class="ruby-constant">RubyXL</span><span class="ruby-operator">::</span><span class="ruby-constant">MergedCells</span>.<span class="ruby-identifier">new</span>
1796
+ <span class="ruby-identifier">merged_cells</span>.<span class="ruby-identifier">each</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">mc</span><span class="ruby-operator">|</span>
1797
+ <span class="ruby-keyword">next</span> <span class="ruby-keyword">if</span> <span class="ruby-identifier">mc</span>.<span class="ruby-identifier">ref</span>.<span class="ruby-identifier">row_range</span>.<span class="ruby-identifier">last</span> <span class="ruby-operator">&lt;</span> <span class="ruby-identifier">row_index</span>
1798
+
1799
+ <span class="ruby-identifier">in_merged_cell</span> = <span class="ruby-identifier">mc</span>.<span class="ruby-identifier">ref</span>.<span class="ruby-identifier">row_range</span>.<span class="ruby-identifier">first</span> <span class="ruby-operator">&lt;</span> <span class="ruby-identifier">row_index</span>
1800
+ <span class="ruby-identifier">mc</span>.<span class="ruby-identifier">ref</span> = <span class="ruby-constant">RubyXL</span><span class="ruby-operator">::</span><span class="ruby-constant">Reference</span>.<span class="ruby-identifier">new</span>(
1801
+ <span class="ruby-identifier">mc</span>.<span class="ruby-identifier">ref</span>.<span class="ruby-identifier">row_range</span>.<span class="ruby-identifier">first</span> <span class="ruby-operator">+</span> (<span class="ruby-identifier">in_merged_cell</span> <span class="ruby-operator">?</span> <span class="ruby-value">0</span> <span class="ruby-operator">:</span> <span class="ruby-value">1</span>),
1802
+ <span class="ruby-identifier">mc</span>.<span class="ruby-identifier">ref</span>.<span class="ruby-identifier">row_range</span>.<span class="ruby-identifier">last</span> <span class="ruby-operator">+</span> <span class="ruby-value">1</span>,
1803
+ <span class="ruby-identifier">mc</span>.<span class="ruby-identifier">ref</span>.<span class="ruby-identifier">col_range</span>.<span class="ruby-identifier">first</span>,
1804
+ <span class="ruby-identifier">mc</span>.<span class="ruby-identifier">ref</span>.<span class="ruby-identifier">col_range</span>.<span class="ruby-identifier">last</span>,
1805
+ )
1806
+ }
1807
+
2508
1808
  <span class="ruby-keyword">return</span> <span class="ruby-identifier">new_row</span>
2509
1809
  <span class="ruby-keyword">end</span></pre>
2510
1810
  </div>
2511
-
2512
1811
  </div>
2513
1812
 
2514
-
2515
1813
 
2516
-
2517
1814
  </div>
2518
1815
 
2519
-
2520
1816
  <div id="method-i-is_column_bolded" class="method-detail ">
2521
-
2522
1817
  <div class="method-heading">
2523
1818
  <span class="method-name">is_column_bolded</span><span
2524
1819
  class="method-args">(col = 0)</span>
2525
-
2526
1820
  <span class="method-click-advice">click to toggle source</span>
2527
-
2528
1821
  </div>
2529
-
2530
1822
 
2531
1823
  <div class="method-description">
2532
1824
 
2533
-
2534
-
2535
-
2536
1825
 
2537
-
2538
1826
  <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>
1827
+ <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/worksheet.rb, line 337</span>
2540
1828
  <span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">is_column_bolded</span>(<span class="ruby-identifier">col</span> = <span class="ruby-value">0</span>)
2541
1829
  <span class="ruby-identifier">font</span> = <span class="ruby-identifier">column_font</span>(<span class="ruby-identifier">col</span>)
2542
1830
  <span class="ruby-identifier">font</span> <span class="ruby-operator">&amp;&amp;</span> <span class="ruby-identifier">font</span>.<span class="ruby-identifier">is_bold</span>
2543
1831
  <span class="ruby-keyword">end</span></pre>
2544
1832
  </div>
2545
-
2546
1833
  </div>
2547
1834
 
2548
-
2549
1835
 
2550
-
2551
1836
  </div>
2552
1837
 
2553
-
2554
1838
  <div id="method-i-is_column_italicized" class="method-detail ">
2555
-
2556
1839
  <div class="method-heading">
2557
1840
  <span class="method-name">is_column_italicized</span><span
2558
1841
  class="method-args">(col = 0)</span>
2559
-
2560
1842
  <span class="method-click-advice">click to toggle source</span>
2561
-
2562
1843
  </div>
2563
-
2564
1844
 
2565
1845
  <div class="method-description">
2566
1846
 
2567
-
2568
-
2569
-
2570
1847
 
2571
-
2572
1848
  <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>
1849
+ <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/worksheet.rb, line 332</span>
2574
1850
  <span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">is_column_italicized</span>(<span class="ruby-identifier">col</span> = <span class="ruby-value">0</span>)
2575
1851
  <span class="ruby-identifier">font</span> = <span class="ruby-identifier">column_font</span>(<span class="ruby-identifier">col</span>)
2576
1852
  <span class="ruby-identifier">font</span> <span class="ruby-operator">&amp;&amp;</span> <span class="ruby-identifier">font</span>.<span class="ruby-identifier">is_italic</span>
2577
1853
  <span class="ruby-keyword">end</span></pre>
2578
1854
  </div>
2579
-
2580
1855
  </div>
2581
1856
 
2582
-
2583
1857
 
2584
-
2585
1858
  </div>
2586
1859
 
2587
-
2588
1860
  <div id="method-i-is_column_struckthrough" class="method-detail ">
2589
-
2590
1861
  <div class="method-heading">
2591
1862
  <span class="method-name">is_column_struckthrough</span><span
2592
1863
  class="method-args">(col = 0)</span>
2593
-
2594
1864
  <span class="method-click-advice">click to toggle source</span>
2595
-
2596
1865
  </div>
2597
-
2598
1866
 
2599
1867
  <div class="method-description">
2600
1868
 
2601
-
2602
-
2603
-
2604
1869
 
2605
-
2606
1870
  <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>
1871
+ <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/worksheet.rb, line 347</span>
2608
1872
  <span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">is_column_struckthrough</span>(<span class="ruby-identifier">col</span> = <span class="ruby-value">0</span>)
2609
1873
  <span class="ruby-identifier">font</span> = <span class="ruby-identifier">column_font</span>(<span class="ruby-identifier">col</span>)
2610
1874
  <span class="ruby-identifier">font</span> <span class="ruby-operator">&amp;&amp;</span> <span class="ruby-identifier">font</span>.<span class="ruby-identifier">is_strikethrough</span>
2611
1875
  <span class="ruby-keyword">end</span></pre>
2612
1876
  </div>
2613
-
2614
1877
  </div>
2615
1878
 
2616
-
2617
1879
 
2618
-
2619
1880
  </div>
2620
1881
 
2621
-
2622
1882
  <div id="method-i-is_column_underlined" class="method-detail ">
2623
-
2624
1883
  <div class="method-heading">
2625
1884
  <span class="method-name">is_column_underlined</span><span
2626
1885
  class="method-args">(col = 0)</span>
2627
-
2628
1886
  <span class="method-click-advice">click to toggle source</span>
2629
-
2630
1887
  </div>
2631
-
2632
1888
 
2633
1889
  <div class="method-description">
2634
1890
 
2635
-
2636
-
2637
-
2638
1891
 
2639
-
2640
1892
  <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>
1893
+ <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/worksheet.rb, line 342</span>
2642
1894
  <span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">is_column_underlined</span>(<span class="ruby-identifier">col</span> = <span class="ruby-value">0</span>)
2643
1895
  <span class="ruby-identifier">font</span> = <span class="ruby-identifier">column_font</span>(<span class="ruby-identifier">col</span>)
2644
1896
  <span class="ruby-identifier">font</span> <span class="ruby-operator">&amp;&amp;</span> <span class="ruby-identifier">font</span>.<span class="ruby-identifier">is_underlined</span>
2645
1897
  <span class="ruby-keyword">end</span></pre>
2646
1898
  </div>
2647
-
2648
1899
  </div>
2649
1900
 
2650
-
2651
1901
 
2652
-
2653
1902
  </div>
2654
1903
 
2655
-
2656
1904
  <div id="method-i-is_row_bolded" class="method-detail ">
2657
-
2658
1905
  <div class="method-heading">
2659
1906
  <span class="method-name">is_row_bolded</span><span
2660
1907
  class="method-args">(row = 0)</span>
2661
-
2662
1908
  <span class="method-click-advice">click to toggle source</span>
2663
-
2664
1909
  </div>
2665
-
2666
1910
 
2667
1911
  <div class="method-description">
2668
1912
 
2669
-
2670
-
2671
-
2672
1913
 
2673
-
2674
1914
  <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>
1915
+ <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/worksheet.rb, line 263</span>
2676
1916
  <span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">is_row_bolded</span>(<span class="ruby-identifier">row</span> = <span class="ruby-value">0</span>)
2677
1917
  (<span class="ruby-identifier">font</span> = <span class="ruby-identifier">row_font</span>(<span class="ruby-identifier">row</span>)) <span class="ruby-operator">&amp;&amp;</span> <span class="ruby-identifier">font</span>.<span class="ruby-identifier">is_bold</span>
2678
1918
  <span class="ruby-keyword">end</span></pre>
2679
1919
  </div>
2680
-
2681
1920
  </div>
2682
1921
 
2683
-
2684
1922
 
2685
-
2686
1923
  </div>
2687
1924
 
2688
-
2689
1925
  <div id="method-i-is_row_italicized" class="method-detail ">
2690
-
2691
1926
  <div class="method-heading">
2692
1927
  <span class="method-name">is_row_italicized</span><span
2693
1928
  class="method-args">(row = 0)</span>
2694
-
2695
1929
  <span class="method-click-advice">click to toggle source</span>
2696
-
2697
1930
  </div>
2698
-
2699
1931
 
2700
1932
  <div class="method-description">
2701
1933
 
2702
-
2703
-
2704
-
2705
1934
 
2706
-
2707
1935
  <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>
1936
+ <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/worksheet.rb, line 259</span>
2709
1937
  <span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">is_row_italicized</span>(<span class="ruby-identifier">row</span> = <span class="ruby-value">0</span>)
2710
1938
  (<span class="ruby-identifier">font</span> = <span class="ruby-identifier">row_font</span>(<span class="ruby-identifier">row</span>)) <span class="ruby-operator">&amp;&amp;</span> <span class="ruby-identifier">font</span>.<span class="ruby-identifier">is_italic</span>
2711
1939
  <span class="ruby-keyword">end</span></pre>
2712
1940
  </div>
2713
-
2714
1941
  </div>
2715
1942
 
2716
-
2717
1943
 
2718
-
2719
1944
  </div>
2720
1945
 
2721
-
2722
1946
  <div id="method-i-is_row_struckthrough" class="method-detail ">
2723
-
2724
1947
  <div class="method-heading">
2725
1948
  <span class="method-name">is_row_struckthrough</span><span
2726
1949
  class="method-args">(row = 0)</span>
2727
-
2728
1950
  <span class="method-click-advice">click to toggle source</span>
2729
-
2730
1951
  </div>
2731
-
2732
1952
 
2733
1953
  <div class="method-description">
2734
1954
 
2735
-
2736
-
2737
-
2738
1955
 
2739
-
2740
1956
  <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>
1957
+ <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/worksheet.rb, line 271</span>
2742
1958
  <span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">is_row_struckthrough</span>(<span class="ruby-identifier">row</span> = <span class="ruby-value">0</span>)
2743
1959
  (<span class="ruby-identifier">font</span> = <span class="ruby-identifier">row_font</span>(<span class="ruby-identifier">row</span>)) <span class="ruby-operator">&amp;&amp;</span> <span class="ruby-identifier">font</span>.<span class="ruby-identifier">is_strikethrough</span>
2744
1960
  <span class="ruby-keyword">end</span></pre>
2745
1961
  </div>
2746
-
2747
1962
  </div>
2748
1963
 
2749
-
2750
1964
 
2751
-
2752
1965
  </div>
2753
1966
 
2754
-
2755
1967
  <div id="method-i-is_row_underlined" class="method-detail ">
2756
-
2757
1968
  <div class="method-heading">
2758
1969
  <span class="method-name">is_row_underlined</span><span
2759
1970
  class="method-args">(row = 0)</span>
2760
-
2761
1971
  <span class="method-click-advice">click to toggle source</span>
2762
-
2763
1972
  </div>
2764
-
2765
1973
 
2766
1974
  <div class="method-description">
2767
1975
 
2768
-
2769
-
2770
-
2771
1976
 
2772
-
2773
1977
  <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>
1978
+ <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/worksheet.rb, line 267</span>
2775
1979
  <span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">is_row_underlined</span>(<span class="ruby-identifier">row</span> = <span class="ruby-value">0</span>)
2776
1980
  (<span class="ruby-identifier">font</span> = <span class="ruby-identifier">row_font</span>(<span class="ruby-identifier">row</span>)) <span class="ruby-operator">&amp;&amp;</span> <span class="ruby-identifier">font</span>.<span class="ruby-identifier">is_underlined</span>
2777
1981
  <span class="ruby-keyword">end</span></pre>
2778
1982
  </div>
2779
-
2780
1983
  </div>
2781
1984
 
2782
-
2783
1985
 
2784
-
2785
1986
  </div>
2786
1987
 
2787
-
2788
1988
  <div id="method-i-merge_cells" class="method-detail ">
2789
-
2790
1989
  <div class="method-heading">
2791
1990
  <span class="method-name">merge_cells</span><span
2792
1991
  class="method-args">(start_row, start_col, end_row, end_col)</span>
2793
-
2794
1992
  <span class="method-click-advice">click to toggle source</span>
2795
-
2796
1993
  </div>
2797
-
2798
1994
 
2799
1995
  <div class="method-description">
2800
-
2801
1996
  <p>Merges cells within a rectangular area</p>
2802
-
2803
-
2804
1997
 
2805
-
2806
1998
  <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>
1999
+ <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/worksheet.rb, line 688</span>
2808
2000
  <span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">merge_cells</span>(<span class="ruby-identifier">start_row</span>, <span class="ruby-identifier">start_col</span>, <span class="ruby-identifier">end_row</span>, <span class="ruby-identifier">end_col</span>)
2809
2001
  <span class="ruby-identifier">validate_workbook</span>
2810
2002
 
@@ -2813,57 +2005,41 @@
2813
2005
  <span class="ruby-identifier">merged_cells</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-constant">RubyXL</span><span class="ruby-operator">::</span><span class="ruby-constant">MergedCell</span>.<span class="ruby-identifier">new</span>(<span class="ruby-value">:ref</span> <span class="ruby-operator">=&gt;</span> <span class="ruby-constant">RubyXL</span><span class="ruby-operator">::</span><span class="ruby-constant">Reference</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">start_row</span>, <span class="ruby-identifier">end_row</span>, <span class="ruby-identifier">start_col</span>, <span class="ruby-identifier">end_col</span>))
2814
2006
  <span class="ruby-keyword">end</span></pre>
2815
2007
  </div>
2816
-
2817
2008
  </div>
2818
2009
 
2819
-
2820
2010
 
2821
-
2822
2011
  </div>
2823
2012
 
2824
-
2825
2013
  <div id="method-i-row_font" class="method-detail ">
2826
-
2827
2014
  <div class="method-heading">
2828
2015
  <span class="method-name">row_font</span><span
2829
2016
  class="method-args">(row)</span>
2830
-
2831
2017
  <span class="method-click-advice">click to toggle source</span>
2832
-
2833
2018
  </div>
2834
-
2835
2019
 
2836
2020
  <div class="method-description">
2837
2021
 
2838
-
2839
-
2840
-
2841
2022
 
2842
-
2843
2023
  <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>
2024
+ <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/worksheet.rb, line 296</span>
2845
2025
  <span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">row_font</span>(<span class="ruby-identifier">row</span>)
2846
2026
  (<span class="ruby-identifier">row</span> = <span class="ruby-identifier">sheet_data</span>.<span class="ruby-identifier">rows</span>[<span class="ruby-identifier">row</span>]) <span class="ruby-operator">&amp;&amp;</span> <span class="ruby-identifier">row</span>.<span class="ruby-identifier">get_font</span>
2847
2027
  <span class="ruby-keyword">end</span></pre>
2848
2028
  </div>
2849
-
2850
2029
  </div>
2851
2030
 
2852
-
2853
2031
 
2854
-
2855
2032
  </div>
2856
2033
 
2857
-
2858
2034
  </section>
2859
-
2035
+
2860
2036
  </section>
2861
2037
  </main>
2862
2038
 
2863
2039
 
2864
2040
  <footer id="validator-badges" role="contentinfo">
2865
2041
  <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.0.
2042
+ <p>Generated by <a href="https://ruby.github.io/rdoc/">RDoc</a> 6.3.0.
2867
2043
  <p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
2868
2044
  </footer>
2869
2045