rubyXL 3.4.5 → 3.4.18

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