rubyXL 3.4.16 → 3.4.21

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