rubyXL 3.3.14 → 3.3.15

Sign up to get free protection for your applications and to get access to all the features.
Files changed (368) hide show
  1. data/VERSION +1 -1
  2. data/lib/rubyXL/convenience_methods.rb +160 -4
  3. data/lib/rubyXL/objects/ooxml_object.rb +2 -1
  4. data/lib/rubyXL/objects/root.rb +1 -1
  5. data/lib/rubyXL/objects/storage.rb +2 -1
  6. data/lib/rubyXL/objects/worksheet.rb +5 -5
  7. data/lib/rubyXL/worksheet.rb +1 -160
  8. data/rdoc/README_rdoc.html +1 -1
  9. data/rdoc/RubyXL.html +1 -1
  10. data/rdoc/RubyXL/AExtension.html +1 -1
  11. data/rdoc/RubyXL/AExtensionStorageArea.html +1 -1
  12. data/rdoc/RubyXL/AdjustHandleList.html +1 -1
  13. data/rdoc/RubyXL/Alignment.html +1 -1
  14. data/rdoc/RubyXL/AlternateContent.html +1 -1
  15. data/rdoc/RubyXL/Authors.html +1 -1
  16. data/rdoc/RubyXL/AutoFilter.html +1 -1
  17. data/rdoc/RubyXL/AutoFilterColumn.html +1 -1
  18. data/rdoc/RubyXL/BinaryImageFile.html +1 -1
  19. data/rdoc/RubyXL/BodyProperties.html +1 -1
  20. data/rdoc/RubyXL/BooleanNode.html +1 -1
  21. data/rdoc/RubyXL/BooleanValue.html +1 -1
  22. data/rdoc/RubyXL/Border.html +1 -1
  23. data/rdoc/RubyXL/BorderEdge.html +1 -1
  24. data/rdoc/RubyXL/Borders.html +1 -1
  25. data/rdoc/RubyXL/Break.html +1 -1
  26. data/rdoc/RubyXL/BreakList.html +1 -1
  27. data/rdoc/RubyXL/CT_AdjPoint2D.html +1 -1
  28. data/rdoc/RubyXL/CT_AlphaBiLevelEffect.html +1 -1
  29. data/rdoc/RubyXL/CT_AlphaModulateEffect.html +1 -1
  30. data/rdoc/RubyXL/CT_AlphaModulateFixedEffect.html +1 -1
  31. data/rdoc/RubyXL/CT_AlphaOutsetEffect.html +1 -1
  32. data/rdoc/RubyXL/CT_AlphaReplaceEffect.html +1 -1
  33. data/rdoc/RubyXL/CT_Backdrop.html +1 -1
  34. data/rdoc/RubyXL/CT_Bevel.html +1 -1
  35. data/rdoc/RubyXL/CT_BiLevelEffect.html +1 -1
  36. data/rdoc/RubyXL/CT_BlendEffect.html +1 -1
  37. data/rdoc/RubyXL/CT_Blip.html +1 -1
  38. data/rdoc/RubyXL/CT_BlipFillProperties.html +1 -1
  39. data/rdoc/RubyXL/CT_BlurEffect.html +1 -1
  40. data/rdoc/RubyXL/CT_Camera.html +1 -1
  41. data/rdoc/RubyXL/CT_Color.html +1 -1
  42. data/rdoc/RubyXL/CT_ColorChangeEffect.html +1 -1
  43. data/rdoc/RubyXL/CT_ColorMapping.html +1 -1
  44. data/rdoc/RubyXL/CT_ColorScheme.html +1 -1
  45. data/rdoc/RubyXL/CT_ColorSchemeAndMapping.html +1 -1
  46. data/rdoc/RubyXL/CT_ConnectionSite.html +1 -1
  47. data/rdoc/RubyXL/CT_ConnectionSiteList.html +1 -1
  48. data/rdoc/RubyXL/CT_DashStop.html +1 -1
  49. data/rdoc/RubyXL/CT_DashStopList.html +1 -1
  50. data/rdoc/RubyXL/CT_DefaultShapeDefinition.html +1 -1
  51. data/rdoc/RubyXL/CT_DuotoneEffect.html +1 -1
  52. data/rdoc/RubyXL/CT_EffectContainer.html +1 -1
  53. data/rdoc/RubyXL/CT_EffectList.html +1 -1
  54. data/rdoc/RubyXL/CT_EffectReference.html +1 -1
  55. data/rdoc/RubyXL/CT_EffectStyleItem.html +1 -1
  56. data/rdoc/RubyXL/CT_EffectStyleList.html +1 -1
  57. data/rdoc/RubyXL/CT_EmbeddedWAVAudioFile.html +1 -1
  58. data/rdoc/RubyXL/CT_FillEffect.html +1 -1
  59. data/rdoc/RubyXL/CT_FillOverlayEffect.html +1 -1
  60. data/rdoc/RubyXL/CT_FillStyleList.html +1 -1
  61. data/rdoc/RubyXL/CT_FlatText.html +1 -1
  62. data/rdoc/RubyXL/CT_FontCollection.html +1 -1
  63. data/rdoc/RubyXL/CT_FontReference.html +1 -1
  64. data/rdoc/RubyXL/CT_GeomGuideList.html +1 -1
  65. data/rdoc/RubyXL/CT_GlowEffect.html +1 -1
  66. data/rdoc/RubyXL/CT_GradientFillProperties.html +1 -1
  67. data/rdoc/RubyXL/CT_GradientStop.html +1 -1
  68. data/rdoc/RubyXL/CT_GradientStopList.html +1 -1
  69. data/rdoc/RubyXL/CT_HSLEffect.html +1 -1
  70. data/rdoc/RubyXL/CT_HslColor.html +1 -1
  71. data/rdoc/RubyXL/CT_Hyperlink.html +1 -1
  72. data/rdoc/RubyXL/CT_InnerShadowEffect.html +1 -1
  73. data/rdoc/RubyXL/CT_LightRig.html +1 -1
  74. data/rdoc/RubyXL/CT_LineEndProperties.html +1 -1
  75. data/rdoc/RubyXL/CT_LineJoinMiterProperties.html +1 -1
  76. data/rdoc/RubyXL/CT_LineProperties.html +1 -1
  77. data/rdoc/RubyXL/CT_LineStyleList.html +1 -1
  78. data/rdoc/RubyXL/CT_LinearShadeProperties.html +1 -1
  79. data/rdoc/RubyXL/CT_LuminanceEffect.html +1 -1
  80. data/rdoc/RubyXL/CT_ObjectStyleDefaults.html +1 -1
  81. data/rdoc/RubyXL/CT_OuterShadowEffect.html +1 -1
  82. data/rdoc/RubyXL/CT_Path2D.html +1 -1
  83. data/rdoc/RubyXL/CT_Path2DArcTo.html +1 -1
  84. data/rdoc/RubyXL/CT_Path2DCubicBezierTo.html +1 -1
  85. data/rdoc/RubyXL/CT_Path2DList.html +1 -1
  86. data/rdoc/RubyXL/CT_Path2DQuadBezierTo.html +1 -1
  87. data/rdoc/RubyXL/CT_Path2DTo.html +1 -1
  88. data/rdoc/RubyXL/CT_PathShadeProperties.html +1 -1
  89. data/rdoc/RubyXL/CT_PatternFillProperties.html +1 -1
  90. data/rdoc/RubyXL/CT_Point3D.html +1 -1
  91. data/rdoc/RubyXL/CT_PolarAdjustHandle.html +1 -1
  92. data/rdoc/RubyXL/CT_PresetColor.html +1 -1
  93. data/rdoc/RubyXL/CT_PresetLineDashProperties.html +1 -1
  94. data/rdoc/RubyXL/CT_PresetShadowEffect.html +1 -1
  95. data/rdoc/RubyXL/CT_PresetTextShape.html +1 -1
  96. data/rdoc/RubyXL/CT_ReflectionEffect.html +1 -1
  97. data/rdoc/RubyXL/CT_RelativeOffsetEffect.html +1 -1
  98. data/rdoc/RubyXL/CT_RelativeRect.html +1 -1
  99. data/rdoc/RubyXL/CT_SRgbColor.html +1 -1
  100. data/rdoc/RubyXL/CT_ScRgbColor.html +1 -1
  101. data/rdoc/RubyXL/CT_Scene3D.html +1 -1
  102. data/rdoc/RubyXL/CT_SchemeColor.html +1 -1
  103. data/rdoc/RubyXL/CT_Shape3D.html +1 -1
  104. data/rdoc/RubyXL/CT_ShapeStyle.html +1 -1
  105. data/rdoc/RubyXL/CT_SoftEdgesEffect.html +1 -1
  106. data/rdoc/RubyXL/CT_SphereCoords.html +1 -1
  107. data/rdoc/RubyXL/CT_StretchInfoProperties.html +1 -1
  108. data/rdoc/RubyXL/CT_StyleMatrix.html +1 -1
  109. data/rdoc/RubyXL/CT_StyleMatrixReference.html +1 -1
  110. data/rdoc/RubyXL/CT_SupplementalFont.html +1 -1
  111. data/rdoc/RubyXL/CT_SystemColor.html +1 -1
  112. data/rdoc/RubyXL/CT_TextAutonumberBullet.html +1 -1
  113. data/rdoc/RubyXL/CT_TextBlipBullet.html +1 -1
  114. data/rdoc/RubyXL/CT_TextCharBullet.html +1 -1
  115. data/rdoc/RubyXL/CT_TextCharacterProperties.html +1 -1
  116. data/rdoc/RubyXL/CT_TextFont.html +1 -1
  117. data/rdoc/RubyXL/CT_TextListStyle.html +1 -1
  118. data/rdoc/RubyXL/CT_TextNormalAutofit.html +1 -1
  119. data/rdoc/RubyXL/CT_TextParagraphProperties.html +1 -1
  120. data/rdoc/RubyXL/CT_TextSpacing.html +1 -1
  121. data/rdoc/RubyXL/CT_TextTabStop.html +1 -1
  122. data/rdoc/RubyXL/CT_TextTabStopList.html +1 -1
  123. data/rdoc/RubyXL/CT_TileInfoProperties.html +1 -1
  124. data/rdoc/RubyXL/CT_TintEffect.html +1 -1
  125. data/rdoc/RubyXL/CT_Transform2D.html +1 -1
  126. data/rdoc/RubyXL/CT_TransformEffect.html +1 -1
  127. data/rdoc/RubyXL/CT_Vector3D.html +1 -1
  128. data/rdoc/RubyXL/CT_XYAdjustHandle.html +1 -1
  129. data/rdoc/RubyXL/CalculationChain.html +1 -1
  130. data/rdoc/RubyXL/CalculationChainCell.html +1 -1
  131. data/rdoc/RubyXL/CalculationProperties.html +1 -1
  132. data/rdoc/RubyXL/Cell.html +1 -1
  133. data/rdoc/RubyXL/CellConvenienceMethods.html +28 -28
  134. data/rdoc/RubyXL/CellExt.html +1 -1
  135. data/rdoc/RubyXL/CellSmartTag.html +1 -1
  136. data/rdoc/RubyXL/CellSmartTagProperty.html +1 -1
  137. data/rdoc/RubyXL/CellSmartTags.html +1 -1
  138. data/rdoc/RubyXL/CellStyle.html +1 -1
  139. data/rdoc/RubyXL/CellStyleXFs.html +1 -1
  140. data/rdoc/RubyXL/CellStyles.html +1 -1
  141. data/rdoc/RubyXL/CellValue.html +1 -1
  142. data/rdoc/RubyXL/CellWatch.html +1 -1
  143. data/rdoc/RubyXL/CellWatches.html +1 -1
  144. data/rdoc/RubyXL/CellXFs.html +1 -1
  145. data/rdoc/RubyXL/ChartColorsFile.html +1 -1
  146. data/rdoc/RubyXL/ChartFile.html +2 -2
  147. data/rdoc/RubyXL/ChartStyleFile.html +1 -1
  148. data/rdoc/RubyXL/ChartUserShapesFile.html +1 -1
  149. data/rdoc/RubyXL/Chartsheet.html +1 -1
  150. data/rdoc/RubyXL/ChartsheetPageSetup.html +1 -1
  151. data/rdoc/RubyXL/ChartsheetProperties.html +1 -1
  152. data/rdoc/RubyXL/ChartsheetProtection.html +1 -1
  153. data/rdoc/RubyXL/ChartsheetView.html +1 -1
  154. data/rdoc/RubyXL/ChartsheetViews.html +1 -1
  155. data/rdoc/RubyXL/Color.html +1 -1
  156. data/rdoc/RubyXL/ColorFilter.html +1 -1
  157. data/rdoc/RubyXL/ColorScale.html +1 -1
  158. data/rdoc/RubyXL/ColorSet.html +1 -1
  159. data/rdoc/RubyXL/Colors.html +1 -1
  160. data/rdoc/RubyXL/ColumnRange.html +1 -1
  161. data/rdoc/RubyXL/ColumnRanges.html +1 -1
  162. data/rdoc/RubyXL/Comment.html +1 -1
  163. data/rdoc/RubyXL/CommentList.html +1 -1
  164. data/rdoc/RubyXL/CommentsFile.html +1 -1
  165. data/rdoc/RubyXL/ConditionalFormatValue.html +1 -1
  166. data/rdoc/RubyXL/ConditionalFormatting.html +1 -1
  167. data/rdoc/RubyXL/ConditionalFormattingRule.html +1 -1
  168. data/rdoc/RubyXL/ContentTypeDefault.html +1 -1
  169. data/rdoc/RubyXL/ContentTypeOverride.html +1 -1
  170. data/rdoc/RubyXL/ContentTypes.html +1 -1
  171. data/rdoc/RubyXL/ControlPropertiesFile.html +1 -1
  172. data/rdoc/RubyXL/CorePropertiesFile.html +1 -1
  173. data/rdoc/RubyXL/CustomColor.html +1 -1
  174. data/rdoc/RubyXL/CustomColorList.html +1 -1
  175. data/rdoc/RubyXL/CustomFilter.html +1 -1
  176. data/rdoc/RubyXL/CustomFilters.html +1 -1
  177. data/rdoc/RubyXL/CustomGeometry.html +1 -1
  178. data/rdoc/RubyXL/CustomProperties.html +1 -1
  179. data/rdoc/RubyXL/CustomPropertiesFile.html +1 -1
  180. data/rdoc/RubyXL/CustomProperty.html +1 -1
  181. data/rdoc/RubyXL/CustomSheetView.html +1 -1
  182. data/rdoc/RubyXL/CustomSheetViews.html +1 -1
  183. data/rdoc/RubyXL/CustomWorkbookView.html +1 -1
  184. data/rdoc/RubyXL/CustomWorkbookViews.html +1 -1
  185. data/rdoc/RubyXL/CustomXMLFile.html +1 -1
  186. data/rdoc/RubyXL/DXF.html +1 -1
  187. data/rdoc/RubyXL/DXFs.html +1 -1
  188. data/rdoc/RubyXL/DataBar.html +1 -1
  189. data/rdoc/RubyXL/DataConsolidate.html +1 -1
  190. data/rdoc/RubyXL/DataConsolidationReference.html +1 -1
  191. data/rdoc/RubyXL/DataConsolidationReferences.html +1 -1
  192. data/rdoc/RubyXL/DataType.html +1 -1
  193. data/rdoc/RubyXL/DataValidation.html +1 -1
  194. data/rdoc/RubyXL/DataValidations.html +1 -1
  195. data/rdoc/RubyXL/DateGroupItem.html +1 -1
  196. data/rdoc/RubyXL/DefinedName.html +1 -1
  197. data/rdoc/RubyXL/DefinedNameExt.html +1 -1
  198. data/rdoc/RubyXL/DefinedNames.html +1 -1
  199. data/rdoc/RubyXL/DefinedNamesExt.html +1 -1
  200. data/rdoc/RubyXL/DocumentPropertiesFile.html +1 -1
  201. data/rdoc/RubyXL/DrawingFile.html +2 -2
  202. data/rdoc/RubyXL/DynamicFilter.html +1 -1
  203. data/rdoc/RubyXL/EmbeddedControl.html +1 -1
  204. data/rdoc/RubyXL/EmbeddedControls.html +1 -1
  205. data/rdoc/RubyXL/Extension.html +1 -1
  206. data/rdoc/RubyXL/ExtensionStorageArea.html +1 -1
  207. data/rdoc/RubyXL/Extents.html +1 -1
  208. data/rdoc/RubyXL/ExternalBook.html +1 -1
  209. data/rdoc/RubyXL/ExternalLinksFile.html +1 -1
  210. data/rdoc/RubyXL/ExternalReference.html +1 -1
  211. data/rdoc/RubyXL/ExternalReferences.html +1 -1
  212. data/rdoc/RubyXL/ExtraColorSchemeList.html +1 -1
  213. data/rdoc/RubyXL/FieldItem.html +1 -1
  214. data/rdoc/RubyXL/FileRecoveryProperties.html +1 -1
  215. data/rdoc/RubyXL/FileSharing.html +1 -1
  216. data/rdoc/RubyXL/FileVersion.html +1 -1
  217. data/rdoc/RubyXL/Fill.html +1 -1
  218. data/rdoc/RubyXL/Fills.html +1 -1
  219. data/rdoc/RubyXL/FilterContainer.html +1 -1
  220. data/rdoc/RubyXL/FloatNode.html +1 -1
  221. data/rdoc/RubyXL/FloatValue.html +1 -1
  222. data/rdoc/RubyXL/Font.html +1 -1
  223. data/rdoc/RubyXL/FontScheme.html +1 -1
  224. data/rdoc/RubyXL/Fonts.html +1 -1
  225. data/rdoc/RubyXL/Formula.html +1 -1
  226. data/rdoc/RubyXL/FunctionGroup.html +1 -1
  227. data/rdoc/RubyXL/FunctionGroups.html +1 -1
  228. data/rdoc/RubyXL/GenericStorageObject.html +3 -2
  229. data/rdoc/RubyXL/GradientFill.html +1 -1
  230. data/rdoc/RubyXL/HeaderFooterSettings.html +1 -1
  231. data/rdoc/RubyXL/Hyperlink.html +1 -1
  232. data/rdoc/RubyXL/HyperlinkRelFile.html +1 -1
  233. data/rdoc/RubyXL/Hyperlinks.html +1 -1
  234. data/rdoc/RubyXL/IconFilter.html +1 -1
  235. data/rdoc/RubyXL/IconSet.html +1 -1
  236. data/rdoc/RubyXL/IgnoredError.html +1 -1
  237. data/rdoc/RubyXL/IgnoredErrors.html +1 -1
  238. data/rdoc/RubyXL/IndexedColors.html +1 -1
  239. data/rdoc/RubyXL/InputCells.html +1 -1
  240. data/rdoc/RubyXL/IntegerNode.html +1 -1
  241. data/rdoc/RubyXL/IntegerValue.html +1 -1
  242. data/rdoc/RubyXL/LegacyCell.html +1 -1
  243. data/rdoc/RubyXL/LegacyWorksheet.html +1 -266
  244. data/rdoc/RubyXL/MRUColors.html +1 -1
  245. data/rdoc/RubyXL/MacrosFile.html +1 -1
  246. data/rdoc/RubyXL/MergedCell.html +1 -1
  247. data/rdoc/RubyXL/MergedCells.html +1 -1
  248. data/rdoc/RubyXL/NumFmt.html +1 -1
  249. data/rdoc/RubyXL/NumberFormat.html +1 -1
  250. data/rdoc/RubyXL/NumberFormats.html +1 -1
  251. data/rdoc/RubyXL/OLEObject.html +1 -1
  252. data/rdoc/RubyXL/OLEObjectFile.html +1 -1
  253. data/rdoc/RubyXL/OLEObjects.html +1 -1
  254. data/rdoc/RubyXL/OLESize.html +1 -1
  255. data/rdoc/RubyXL/OOXMLContainerObject.html +1 -1
  256. data/rdoc/RubyXL/OOXMLObject.html +1 -1
  257. data/rdoc/RubyXL/OOXMLObjectClassMethods.html +1 -1
  258. data/rdoc/RubyXL/OOXMLObjectInstanceMethods.html +1 -1
  259. data/rdoc/RubyXL/OOXMLRelationshipsFile.html +1 -1
  260. data/rdoc/RubyXL/OOXMLTopLevelObject.html +4 -3
  261. data/rdoc/RubyXL/Offset.html +1 -1
  262. data/rdoc/RubyXL/OutlineProperties.html +1 -1
  263. data/rdoc/RubyXL/PageMargins.html +1 -1
  264. data/rdoc/RubyXL/PageSetup.html +1 -1
  265. data/rdoc/RubyXL/PageSetupProperties.html +1 -1
  266. data/rdoc/RubyXL/Pane.html +1 -1
  267. data/rdoc/RubyXL/Parser.html +1 -1
  268. data/rdoc/RubyXL/PatternFill.html +1 -1
  269. data/rdoc/RubyXL/PhoneticProperties.html +1 -1
  270. data/rdoc/RubyXL/PhoneticRun.html +1 -1
  271. data/rdoc/RubyXL/PivotArea.html +1 -1
  272. data/rdoc/RubyXL/PivotCache.html +1 -1
  273. data/rdoc/RubyXL/PivotCacheDefinitionFile.html +1 -1
  274. data/rdoc/RubyXL/PivotCacheRecordsFile.html +1 -1
  275. data/rdoc/RubyXL/PivotCaches.html +1 -1
  276. data/rdoc/RubyXL/PivotReference.html +1 -1
  277. data/rdoc/RubyXL/PivotReferences.html +1 -1
  278. data/rdoc/RubyXL/PivotTableFile.html +1 -1
  279. data/rdoc/RubyXL/PivotTableSelection.html +1 -1
  280. data/rdoc/RubyXL/PresetGeometry.html +1 -1
  281. data/rdoc/RubyXL/PrintOptions.html +1 -1
  282. data/rdoc/RubyXL/PrinterSettingsFile.html +1 -1
  283. data/rdoc/RubyXL/ProtectedRange.html +1 -1
  284. data/rdoc/RubyXL/ProtectedRanges.html +1 -1
  285. data/rdoc/RubyXL/Protection.html +1 -1
  286. data/rdoc/RubyXL/RID.html +1 -1
  287. data/rdoc/RubyXL/RawOOXML.html +1 -1
  288. data/rdoc/RubyXL/Reference.html +1 -1
  289. data/rdoc/RubyXL/Relationship.html +1 -1
  290. data/rdoc/RubyXL/RelationshipSupport.html +1 -1
  291. data/rdoc/RubyXL/RelationshipSupport/ClassMehods.html +1 -1
  292. data/rdoc/RubyXL/RichText.html +1 -1
  293. data/rdoc/RubyXL/RichTextRun.html +1 -1
  294. data/rdoc/RubyXL/Row.html +1 -1
  295. data/rdoc/RubyXL/RowExt.html +1 -1
  296. data/rdoc/RubyXL/RunProperties.html +1 -1
  297. data/rdoc/RubyXL/Scenario.html +1 -1
  298. data/rdoc/RubyXL/Scenarios.html +1 -1
  299. data/rdoc/RubyXL/Selection.html +1 -1
  300. data/rdoc/RubyXL/ShapeGuide.html +1 -1
  301. data/rdoc/RubyXL/ShapeTextRectangle.html +1 -1
  302. data/rdoc/RubyXL/SharedStringsTable.html +1 -1
  303. data/rdoc/RubyXL/Sheet.html +1 -1
  304. data/rdoc/RubyXL/SheetCalculationProperties.html +1 -1
  305. data/rdoc/RubyXL/SheetData.html +1 -1
  306. data/rdoc/RubyXL/SheetDataExt.html +1 -1
  307. data/rdoc/RubyXL/SheetDataSet.html +1 -1
  308. data/rdoc/RubyXL/SheetName.html +1 -1
  309. data/rdoc/RubyXL/SheetNames.html +1 -1
  310. data/rdoc/RubyXL/Sheets.html +1 -1
  311. data/rdoc/RubyXL/SlicerCacheFile.html +1 -1
  312. data/rdoc/RubyXL/SlicerFile.html +1 -1
  313. data/rdoc/RubyXL/SmartTagProperties.html +1 -1
  314. data/rdoc/RubyXL/SmartTagType.html +1 -1
  315. data/rdoc/RubyXL/SmartTagTypes.html +1 -1
  316. data/rdoc/RubyXL/SmartTags.html +1 -1
  317. data/rdoc/RubyXL/SortCondition.html +1 -1
  318. data/rdoc/RubyXL/SortState.html +1 -1
  319. data/rdoc/RubyXL/Sqref.html +1 -1
  320. data/rdoc/RubyXL/Stop.html +1 -1
  321. data/rdoc/RubyXL/StringNode.html +1 -1
  322. data/rdoc/RubyXL/StringNodeW3C.html +1 -1
  323. data/rdoc/RubyXL/StringValue.html +1 -1
  324. data/rdoc/RubyXL/Stylesheet.html +1 -1
  325. data/rdoc/RubyXL/TableFile.html +1 -1
  326. data/rdoc/RubyXL/TableParts.html +1 -1
  327. data/rdoc/RubyXL/TableStyle.html +1 -1
  328. data/rdoc/RubyXL/TableStyles.html +1 -1
  329. data/rdoc/RubyXL/Text.html +1 -1
  330. data/rdoc/RubyXL/Theme.html +1 -1
  331. data/rdoc/RubyXL/ThemeElements.html +1 -1
  332. data/rdoc/RubyXL/ThumbnailFile.html +1 -1
  333. data/rdoc/RubyXL/Top10.html +1 -1
  334. data/rdoc/RubyXL/VMLDrawingFile.html +1 -1
  335. data/rdoc/RubyXL/Variant.html +1 -1
  336. data/rdoc/RubyXL/Vector.html +1 -1
  337. data/rdoc/RubyXL/VectorValue.html +1 -1
  338. data/rdoc/RubyXL/VisualProperties.html +1 -1
  339. data/rdoc/RubyXL/WebPublishObject.html +1 -1
  340. data/rdoc/RubyXL/WebPublishObjects.html +1 -1
  341. data/rdoc/RubyXL/WebPublishingItem.html +1 -1
  342. data/rdoc/RubyXL/WebPublishingItems.html +1 -1
  343. data/rdoc/RubyXL/WebPublishingProperties.html +1 -1
  344. data/rdoc/RubyXL/Workbook.html +1 -1
  345. data/rdoc/RubyXL/WorkbookConvenienceMethods.html +1 -1
  346. data/rdoc/RubyXL/WorkbookProperties.html +1 -1
  347. data/rdoc/RubyXL/WorkbookProtection.html +1 -1
  348. data/rdoc/RubyXL/WorkbookRoot.html +2 -2
  349. data/rdoc/RubyXL/WorkbookView.html +1 -1
  350. data/rdoc/RubyXL/WorkbookViews.html +1 -1
  351. data/rdoc/RubyXL/Worksheet.html +1 -1
  352. data/rdoc/RubyXL/WorksheetConvenienceMethods.html +591 -58
  353. data/rdoc/RubyXL/WorksheetDimensions.html +1 -1
  354. data/rdoc/RubyXL/WorksheetFormatProperties.html +1 -1
  355. data/rdoc/RubyXL/WorksheetProperties.html +1 -1
  356. data/rdoc/RubyXL/WorksheetProtection.html +1 -1
  357. data/rdoc/RubyXL/WorksheetView.html +1 -1
  358. data/rdoc/RubyXL/WorksheetViews.html +1 -1
  359. data/rdoc/RubyXL/XF.html +1 -1
  360. data/rdoc/created.rid +8 -8
  361. data/rdoc/index.html +2 -2
  362. data/rdoc/js/navigation.js.gz +0 -0
  363. data/rdoc/js/search_index.js +1 -1
  364. data/rdoc/js/search_index.js.gz +0 -0
  365. data/rdoc/js/searcher.js.gz +0 -0
  366. data/rdoc/table_of_contents.html +188 -153
  367. data/rubyXL.gemspec +2 -2
  368. metadata +3 -3
@@ -4,7 +4,7 @@
4
4
  <head>
5
5
  <meta charset="UTF-8">
6
6
 
7
- <title>class RubyXL::VMLDrawingFile - rubyXL 3.3.14</title>
7
+ <title>class RubyXL::VMLDrawingFile - rubyXL 3.3.15</title>
8
8
 
9
9
  <script type="text/javascript">
10
10
  var rdoc_rel_prefix = "../";
@@ -4,7 +4,7 @@
4
4
  <head>
5
5
  <meta charset="UTF-8">
6
6
 
7
- <title>class RubyXL::Variant - rubyXL 3.3.14</title>
7
+ <title>class RubyXL::Variant - rubyXL 3.3.15</title>
8
8
 
9
9
  <script type="text/javascript">
10
10
  var rdoc_rel_prefix = "../";
@@ -4,7 +4,7 @@
4
4
  <head>
5
5
  <meta charset="UTF-8">
6
6
 
7
- <title>class RubyXL::Vector - rubyXL 3.3.14</title>
7
+ <title>class RubyXL::Vector - rubyXL 3.3.15</title>
8
8
 
9
9
  <script type="text/javascript">
10
10
  var rdoc_rel_prefix = "../";
@@ -4,7 +4,7 @@
4
4
  <head>
5
5
  <meta charset="UTF-8">
6
6
 
7
- <title>class RubyXL::VectorValue - rubyXL 3.3.14</title>
7
+ <title>class RubyXL::VectorValue - rubyXL 3.3.15</title>
8
8
 
9
9
  <script type="text/javascript">
10
10
  var rdoc_rel_prefix = "../";
@@ -4,7 +4,7 @@
4
4
  <head>
5
5
  <meta charset="UTF-8">
6
6
 
7
- <title>class RubyXL::VisualProperties - rubyXL 3.3.14</title>
7
+ <title>class RubyXL::VisualProperties - rubyXL 3.3.15</title>
8
8
 
9
9
  <script type="text/javascript">
10
10
  var rdoc_rel_prefix = "../";
@@ -4,7 +4,7 @@
4
4
  <head>
5
5
  <meta charset="UTF-8">
6
6
 
7
- <title>class RubyXL::WebPublishObject - rubyXL 3.3.14</title>
7
+ <title>class RubyXL::WebPublishObject - rubyXL 3.3.15</title>
8
8
 
9
9
  <script type="text/javascript">
10
10
  var rdoc_rel_prefix = "../";
@@ -4,7 +4,7 @@
4
4
  <head>
5
5
  <meta charset="UTF-8">
6
6
 
7
- <title>class RubyXL::WebPublishObjects - rubyXL 3.3.14</title>
7
+ <title>class RubyXL::WebPublishObjects - rubyXL 3.3.15</title>
8
8
 
9
9
  <script type="text/javascript">
10
10
  var rdoc_rel_prefix = "../";
@@ -4,7 +4,7 @@
4
4
  <head>
5
5
  <meta charset="UTF-8">
6
6
 
7
- <title>class RubyXL::WebPublishingItem - rubyXL 3.3.14</title>
7
+ <title>class RubyXL::WebPublishingItem - rubyXL 3.3.15</title>
8
8
 
9
9
  <script type="text/javascript">
10
10
  var rdoc_rel_prefix = "../";
@@ -4,7 +4,7 @@
4
4
  <head>
5
5
  <meta charset="UTF-8">
6
6
 
7
- <title>class RubyXL::WebPublishingItems - rubyXL 3.3.14</title>
7
+ <title>class RubyXL::WebPublishingItems - rubyXL 3.3.15</title>
8
8
 
9
9
  <script type="text/javascript">
10
10
  var rdoc_rel_prefix = "../";
@@ -4,7 +4,7 @@
4
4
  <head>
5
5
  <meta charset="UTF-8">
6
6
 
7
- <title>class RubyXL::WebPublishingProperties - rubyXL 3.3.14</title>
7
+ <title>class RubyXL::WebPublishingProperties - rubyXL 3.3.15</title>
8
8
 
9
9
  <script type="text/javascript">
10
10
  var rdoc_rel_prefix = "../";
@@ -4,7 +4,7 @@
4
4
  <head>
5
5
  <meta charset="UTF-8">
6
6
 
7
- <title>class RubyXL::Workbook - rubyXL 3.3.14</title>
7
+ <title>class RubyXL::Workbook - rubyXL 3.3.15</title>
8
8
 
9
9
  <script type="text/javascript">
10
10
  var rdoc_rel_prefix = "../";
@@ -4,7 +4,7 @@
4
4
  <head>
5
5
  <meta charset="UTF-8">
6
6
 
7
- <title>module RubyXL::WorkbookConvenienceMethods - rubyXL 3.3.14</title>
7
+ <title>module RubyXL::WorkbookConvenienceMethods - rubyXL 3.3.15</title>
8
8
 
9
9
  <script type="text/javascript">
10
10
  var rdoc_rel_prefix = "../";
@@ -4,7 +4,7 @@
4
4
  <head>
5
5
  <meta charset="UTF-8">
6
6
 
7
- <title>class RubyXL::WorkbookProperties - rubyXL 3.3.14</title>
7
+ <title>class RubyXL::WorkbookProperties - rubyXL 3.3.15</title>
8
8
 
9
9
  <script type="text/javascript">
10
10
  var rdoc_rel_prefix = "../";
@@ -4,7 +4,7 @@
4
4
  <head>
5
5
  <meta charset="UTF-8">
6
6
 
7
- <title>class RubyXL::WorkbookProtection - rubyXL 3.3.14</title>
7
+ <title>class RubyXL::WorkbookProtection - rubyXL 3.3.15</title>
8
8
 
9
9
  <script type="text/javascript">
10
10
  var rdoc_rel_prefix = "../";
@@ -4,7 +4,7 @@
4
4
  <head>
5
5
  <meta charset="UTF-8">
6
6
 
7
- <title>class RubyXL::WorkbookRoot - rubyXL 3.3.14</title>
7
+ <title>class RubyXL::WorkbookRoot - rubyXL 3.3.15</title>
8
8
 
9
9
  <script type="text/javascript">
10
10
  var rdoc_rel_prefix = "../";
@@ -335,7 +335,7 @@
335
335
 
336
336
  <span class="ruby-keyword">self</span>.<span class="ruby-identifier">rels_hash</span>.<span class="ruby-identifier">keys</span>.<span class="ruby-identifier">sort_by</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-operator">::</span><span class="ruby-constant">SAVE_ORDER</span> }.<span class="ruby-identifier">each</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">klass</span><span class="ruby-operator">|</span>
337
337
  <span class="ruby-identifier">puts</span> <span class="ruby-node">&quot;&lt;-- DEBUG: saving related #{klass} files&quot;</span> <span class="ruby-keyword">if</span> <span class="ruby-identifier">@@debug</span>
338
- <span class="ruby-keyword">self</span>.<span class="ruby-identifier">rels_hash</span>[<span class="ruby-identifier">klass</span>].<span class="ruby-identifier">each</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">obj</span><span class="ruby-operator">|</span>
338
+ <span class="ruby-keyword">self</span>.<span class="ruby-identifier">rels_hash</span>[<span class="ruby-identifier">klass</span>].<span class="ruby-identifier">select!</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">obj</span><span class="ruby-operator">|</span>
339
339
  <span class="ruby-identifier">puts</span> <span class="ruby-node">&quot;&lt;-- DEBUG: &gt; #{obj.xlsx_path}&quot;</span> <span class="ruby-keyword">if</span> <span class="ruby-identifier">@@debug</span>
340
340
  <span class="ruby-identifier">obj</span>.<span class="ruby-identifier">add_to_zip</span>(<span class="ruby-identifier">zipstream</span>)
341
341
  }
@@ -4,7 +4,7 @@
4
4
  <head>
5
5
  <meta charset="UTF-8">
6
6
 
7
- <title>class RubyXL::WorkbookView - rubyXL 3.3.14</title>
7
+ <title>class RubyXL::WorkbookView - rubyXL 3.3.15</title>
8
8
 
9
9
  <script type="text/javascript">
10
10
  var rdoc_rel_prefix = "../";
@@ -4,7 +4,7 @@
4
4
  <head>
5
5
  <meta charset="UTF-8">
6
6
 
7
- <title>class RubyXL::WorkbookViews - rubyXL 3.3.14</title>
7
+ <title>class RubyXL::WorkbookViews - rubyXL 3.3.15</title>
8
8
 
9
9
  <script type="text/javascript">
10
10
  var rdoc_rel_prefix = "../";
@@ -4,7 +4,7 @@
4
4
  <head>
5
5
  <meta charset="UTF-8">
6
6
 
7
- <title>class RubyXL::Worksheet - rubyXL 3.3.14</title>
7
+ <title>class RubyXL::Worksheet - rubyXL 3.3.15</title>
8
8
 
9
9
  <script type="text/javascript">
10
10
  var rdoc_rel_prefix = "../";
@@ -4,7 +4,7 @@
4
4
  <head>
5
5
  <meta charset="UTF-8">
6
6
 
7
- <title>module RubyXL::WorksheetConvenienceMethods - rubyXL 3.3.14</title>
7
+ <title>module RubyXL::WorksheetConvenienceMethods - rubyXL 3.3.15</title>
8
8
 
9
9
  <script type="text/javascript">
10
10
  var rdoc_rel_prefix = "../";
@@ -69,6 +69,8 @@
69
69
 
70
70
  <li ><a href="#method-i-change_column_border">#change_column_border</a>
71
71
 
72
+ <li ><a href="#method-i-change_column_font">#change_column_font</a>
73
+
72
74
  <li ><a href="#method-i-change_column_font_color">#change_column_font_color</a>
73
75
 
74
76
  <li ><a href="#method-i-change_column_font_name">#change_column_font_name</a>
@@ -93,6 +95,8 @@
93
95
 
94
96
  <li ><a href="#method-i-change_row_fill">#change_row_fill</a>
95
97
 
98
+ <li ><a href="#method-i-change_row_font">#change_row_font</a>
99
+
96
100
  <li ><a href="#method-i-change_row_font_color">#change_row_font_color</a>
97
101
 
98
102
  <li ><a href="#method-i-change_row_font_name">#change_row_font_name</a>
@@ -111,10 +115,20 @@
111
115
 
112
116
  <li ><a href="#method-i-change_row_vertical_alignment">#change_row_vertical_alignment</a>
113
117
 
118
+ <li ><a href="#method-i-column_font">#column_font</a>
119
+
114
120
  <li ><a href="#method-i-delete_cell">#delete_cell</a>
115
121
 
122
+ <li ><a href="#method-i-delete_column">#delete_column</a>
123
+
124
+ <li ><a href="#method-i-delete_row">#delete_row</a>
125
+
116
126
  <li ><a href="#method-i-extract_data">#extract_data</a>
117
127
 
128
+ <li ><a href="#method-i-get_col_style">#get_col_style</a>
129
+
130
+ <li ><a href="#method-i-get_cols_style_index">#get_cols_style_index</a>
131
+
118
132
  <li ><a href="#method-i-get_column_alignment">#get_column_alignment</a>
119
133
 
120
134
  <li ><a href="#method-i-get_column_border">#get_column_border</a>
@@ -147,12 +161,18 @@
147
161
 
148
162
  <li ><a href="#method-i-get_row_horizontal_alignment">#get_row_horizontal_alignment</a>
149
163
 
164
+ <li ><a href="#method-i-get_row_style">#get_row_style</a>
165
+
150
166
  <li ><a href="#method-i-get_row_vertical_alignment">#get_row_vertical_alignment</a>
151
167
 
152
168
  <li ><a href="#method-i-get_table">#get_table</a>
153
169
 
154
170
  <li ><a href="#method-i-insert_cell">#insert_cell</a>
155
171
 
172
+ <li ><a href="#method-i-insert_column">#insert_column</a>
173
+
174
+ <li ><a href="#method-i-insert_row">#insert_row</a>
175
+
156
176
  <li ><a href="#method-i-is_column_bolded">#is_column_bolded</a>
157
177
 
158
178
  <li ><a href="#method-i-is_column_italicized">#is_column_italicized</a>
@@ -169,6 +189,8 @@
169
189
 
170
190
  <li ><a href="#method-i-is_row_underlined">#is_row_underlined</a>
171
191
 
192
+ <li ><a href="#method-i-row_font">#row_font</a>
193
+
172
194
  </ul>
173
195
  </div>
174
196
 
@@ -193,6 +215,50 @@
193
215
 
194
216
 
195
217
 
218
+ <section class="constants-list">
219
+ <header>
220
+ <h3>Constants</h3>
221
+ </header>
222
+ <dl>
223
+
224
+ <dt id="BOLD">BOLD
225
+
226
+ <dd>
227
+
228
+
229
+ <dt id="COLOR">COLOR
230
+
231
+ <dd>
232
+
233
+
234
+ <dt id="ITALICS">ITALICS
235
+
236
+ <dd>
237
+
238
+
239
+ <dt id="NAME">NAME
240
+
241
+ <dd>
242
+
243
+
244
+ <dt id="SIZE">SIZE
245
+
246
+ <dd>
247
+
248
+
249
+ <dt id="STRIKETHROUGH">STRIKETHROUGH
250
+
251
+ <dd>
252
+
253
+
254
+ <dt id="UNDERLINE">UNDERLINE
255
+
256
+ <dd>
257
+
258
+
259
+ </dl>
260
+ </section>
261
+
196
262
 
197
263
 
198
264
 
@@ -222,7 +288,7 @@
222
288
 
223
289
 
224
290
  <div class="method-source-code" id="change_column_alignment-source">
225
- <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 557</span>
291
+ <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 713</span>
226
292
  <span class="ruby-keyword">def</span> <span class="ruby-identifier">change_column_alignment</span>(<span class="ruby-identifier">column_index</span>, <span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>)
227
293
  <span class="ruby-identifier">validate_workbook</span>
228
294
  <span class="ruby-identifier">ensure_cell_exists</span>(<span class="ruby-value">0</span>, <span class="ruby-identifier">column_index</span>)
@@ -266,7 +332,7 @@
266
332
 
267
333
 
268
334
  <div class="method-source-code" id="change_column_bold-source">
269
- <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 503</span>
335
+ <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 659</span>
270
336
  <span class="ruby-keyword">def</span> <span class="ruby-identifier">change_column_bold</span>(<span class="ruby-identifier">column_index</span>, <span class="ruby-identifier">bolded</span> = <span class="ruby-keyword">false</span>)
271
337
  <span class="ruby-identifier">xf</span> = <span class="ruby-identifier">get_col_xf</span>(<span class="ruby-identifier">column_index</span>)
272
338
  <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>
@@ -302,7 +368,7 @@
302
368
 
303
369
 
304
370
  <div class="method-source-code" id="change_column_border-source">
305
- <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 532</span>
371
+ <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 688</span>
306
372
  <span class="ruby-keyword">def</span> <span class="ruby-identifier">change_column_border</span>(<span class="ruby-identifier">column_index</span>, <span class="ruby-identifier">direction</span>, <span class="ruby-identifier">weight</span>)
307
373
  <span class="ruby-identifier">validate_workbook</span>
308
374
  <span class="ruby-identifier">ensure_cell_exists</span>(<span class="ruby-value">0</span>, <span class="ruby-identifier">column_index</span>)
@@ -321,6 +387,49 @@
321
387
 
322
388
 
323
389
 
390
+ </div>
391
+
392
+
393
+ <div id="method-i-change_column_font" class="method-detail ">
394
+
395
+ <div class="method-heading">
396
+ <span class="method-name">change_column_font</span><span
397
+ class="method-args">(column_index, change_type, arg, font, xf)</span>
398
+
399
+ <span class="method-click-advice">click to toggle source</span>
400
+
401
+ </div>
402
+
403
+
404
+ <div class="method-description">
405
+
406
+ <p>Helper method to update the fonts and cell styles array main method to
407
+ change font, called from each separate font mutator method</p>
408
+
409
+
410
+
411
+
412
+ <div class="method-source-code" id="change_column_font-source">
413
+ <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 616</span>
414
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">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>)
415
+ <span class="ruby-identifier">validate_workbook</span>
416
+ <span class="ruby-identifier">ensure_cell_exists</span>(<span class="ruby-value">0</span>, <span class="ruby-identifier">column_index</span>)
417
+
418
+ <span class="ruby-identifier">xf</span> = <span class="ruby-identifier">workbook</span>.<span class="ruby-identifier">register_new_font</span>(<span class="ruby-identifier">font</span>, <span class="ruby-identifier">xf</span>)
419
+ <span class="ruby-identifier">cols</span>.<span class="ruby-identifier">get_range</span>(<span class="ruby-identifier">column_index</span>).<span class="ruby-identifier">style_index</span> = <span class="ruby-identifier">workbook</span>.<span class="ruby-identifier">register_new_xf</span>(<span class="ruby-identifier">xf</span>)
420
+
421
+ <span class="ruby-identifier">sheet_data</span>.<span class="ruby-identifier">rows</span>.<span class="ruby-identifier">each</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">row</span><span class="ruby-operator">|</span>
422
+ <span class="ruby-identifier">c</span> = <span class="ruby-identifier">row</span> <span class="ruby-operator">&amp;&amp;</span> <span class="ruby-identifier">row</span>[<span class="ruby-identifier">column_index</span>]
423
+ <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>
424
+ }
425
+ <span class="ruby-keyword">end</span></pre>
426
+ </div>
427
+
428
+ </div>
429
+
430
+
431
+
432
+
324
433
  </div>
325
434
 
326
435
 
@@ -343,7 +452,7 @@
343
452
 
344
453
 
345
454
  <div class="method-source-code" id="change_column_font_color-source">
346
- <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 487</span>
455
+ <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 643</span>
347
456
  <span class="ruby-keyword">def</span> <span class="ruby-identifier">change_column_font_color</span>(<span class="ruby-identifier">column_index</span>, <span class="ruby-identifier">font_color</span>=<span class="ruby-string">'000000'</span>)
348
457
  <span class="ruby-constant">Color</span>.<span class="ruby-identifier">validate_color</span>(<span class="ruby-identifier">font_color</span>)
349
458
 
@@ -381,7 +490,7 @@
381
490
 
382
491
 
383
492
  <div class="method-source-code" id="change_column_font_name-source">
384
- <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 473</span>
493
+ <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 629</span>
385
494
  <span class="ruby-keyword">def</span> <span class="ruby-identifier">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">'Verdana'</span>)
386
495
  <span class="ruby-identifier">xf</span> = <span class="ruby-identifier">get_col_xf</span>(<span class="ruby-identifier">column_index</span>)
387
496
  <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>
@@ -417,7 +526,7 @@
417
526
 
418
527
 
419
528
  <div class="method-source-code" id="change_column_font_size-source">
420
- <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 480</span>
529
+ <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 636</span>
421
530
  <span class="ruby-keyword">def</span> <span class="ruby-identifier">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>)
422
531
  <span class="ruby-identifier">xf</span> = <span class="ruby-identifier">get_col_xf</span>(<span class="ruby-identifier">column_index</span>)
423
532
  <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>
@@ -453,7 +562,7 @@
453
562
 
454
563
 
455
564
  <div class="method-source-code" id="change_column_horizontal_alignment-source">
456
- <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 524</span>
565
+ <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 680</span>
457
566
  <span class="ruby-keyword">def</span> <span class="ruby-identifier">change_column_horizontal_alignment</span>(<span class="ruby-identifier">column_index</span>, <span class="ruby-identifier">alignment</span> = <span class="ruby-string">'center'</span>)
458
567
  <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> }
459
568
  <span class="ruby-keyword">end</span></pre>
@@ -486,7 +595,7 @@
486
595
 
487
596
 
488
597
  <div class="method-source-code" id="change_column_italics-source">
489
- <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 496</span>
598
+ <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 652</span>
490
599
  <span class="ruby-keyword">def</span> <span class="ruby-identifier">change_column_italics</span>(<span class="ruby-identifier">column_index</span>, <span class="ruby-identifier">italicized</span> = <span class="ruby-keyword">false</span>)
491
600
  <span class="ruby-identifier">xf</span> = <span class="ruby-identifier">get_col_xf</span>(<span class="ruby-identifier">column_index</span>)
492
601
  <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>
@@ -522,7 +631,7 @@
522
631
 
523
632
 
524
633
  <div class="method-source-code" id="change_column_strikethrough-source">
525
- <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 517</span>
634
+ <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 673</span>
526
635
  <span class="ruby-keyword">def</span> <span class="ruby-identifier">change_column_strikethrough</span>(<span class="ruby-identifier">column_index</span>, <span class="ruby-identifier">struckthrough</span>=<span class="ruby-keyword">false</span>)
527
636
  <span class="ruby-identifier">xf</span> = <span class="ruby-identifier">get_col_xf</span>(<span class="ruby-identifier">column_index</span>)
528
637
  <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>
@@ -558,7 +667,7 @@
558
667
 
559
668
 
560
669
  <div class="method-source-code" id="change_column_underline-source">
561
- <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 510</span>
670
+ <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 666</span>
562
671
  <span class="ruby-keyword">def</span> <span class="ruby-identifier">change_column_underline</span>(<span class="ruby-identifier">column_index</span>, <span class="ruby-identifier">underlined</span> = <span class="ruby-keyword">false</span>)
563
672
  <span class="ruby-identifier">xf</span> = <span class="ruby-identifier">get_col_xf</span>(<span class="ruby-identifier">column_index</span>)
564
673
  <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>
@@ -594,7 +703,7 @@
594
703
 
595
704
 
596
705
  <div class="method-source-code" id="change_column_vertical_alignment-source">
597
- <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 528</span>
706
+ <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 684</span>
598
707
  <span class="ruby-keyword">def</span> <span class="ruby-identifier">change_column_vertical_alignment</span>(<span class="ruby-identifier">column_index</span>, <span class="ruby-identifier">alignment</span> = <span class="ruby-string">'center'</span>)
599
708
  <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> }
600
709
  <span class="ruby-keyword">end</span></pre>
@@ -627,7 +736,7 @@
627
736
 
628
737
 
629
738
  <div class="method-source-code" id="change_row_alignment-source">
630
- <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 544</span>
739
+ <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 700</span>
631
740
  <span class="ruby-keyword">def</span> <span class="ruby-identifier">change_row_alignment</span>(<span class="ruby-identifier">row</span>, <span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>)
632
741
  <span class="ruby-identifier">validate_workbook</span>
633
742
  <span class="ruby-identifier">validate_nonnegative</span>(<span class="ruby-identifier">row</span>)
@@ -669,7 +778,7 @@
669
778
 
670
779
 
671
780
  <div class="method-source-code" id="change_row_bold-source">
672
- <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 443</span>
781
+ <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 584</span>
673
782
  <span class="ruby-keyword">def</span> <span class="ruby-identifier">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>)
674
783
  <span class="ruby-identifier">ensure_cell_exists</span>(<span class="ruby-identifier">row</span>)
675
784
  <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>
@@ -705,7 +814,7 @@
705
814
 
706
815
 
707
816
  <div class="method-source-code" id="change_row_border-source">
708
- <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 394</span>
817
+ <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 522</span>
709
818
  <span class="ruby-keyword">def</span> <span class="ruby-identifier">change_row_border</span>(<span class="ruby-identifier">row</span>, <span class="ruby-identifier">direction</span>, <span class="ruby-identifier">weight</span>)
710
819
  <span class="ruby-identifier">validate_workbook</span>
711
820
  <span class="ruby-identifier">ensure_cell_exists</span>(<span class="ruby-identifier">row</span>)
@@ -745,7 +854,7 @@
745
854
 
746
855
 
747
856
  <div class="method-source-code" id="change_row_fill-source">
748
- <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 405</span>
857
+ <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 533</span>
749
858
  <span class="ruby-keyword">def</span> <span class="ruby-identifier">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">'ffffff'</span>)
750
859
  <span class="ruby-identifier">validate_workbook</span>
751
860
  <span class="ruby-identifier">ensure_cell_exists</span>(<span class="ruby-identifier">row_index</span>)
@@ -761,6 +870,49 @@
761
870
 
762
871
 
763
872
 
873
+ </div>
874
+
875
+
876
+ <div id="method-i-change_row_font" class="method-detail ">
877
+
878
+ <div class="method-heading">
879
+ <span class="method-name">change_row_font</span><span
880
+ class="method-args">(row_index, change_type, arg, font)</span>
881
+
882
+ <span class="method-click-advice">click to toggle source</span>
883
+
884
+ </div>
885
+
886
+
887
+ <div class="method-description">
888
+
889
+ <p>Helper method to update the row styles array change_type - <a
890
+ href="WorksheetConvenienceMethods.html#NAME">NAME</a> or <a
891
+ href="WorksheetConvenienceMethods.html#SIZE">SIZE</a> or <a
892
+ href="WorksheetConvenienceMethods.html#COLOR">COLOR</a> etc main method to
893
+ change font, called from each separate font mutator method</p>
894
+
895
+
896
+
897
+
898
+ <div class="method-source-code" id="change_row_font-source">
899
+ <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 545</span>
900
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">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>)
901
+ <span class="ruby-identifier">validate_workbook</span>
902
+ <span class="ruby-identifier">ensure_cell_exists</span>(<span class="ruby-identifier">row_index</span>)
903
+
904
+ <span class="ruby-identifier">xf</span> = <span class="ruby-identifier">workbook</span>.<span class="ruby-identifier">register_new_font</span>(<span class="ruby-identifier">font</span>, <span class="ruby-identifier">get_row_xf</span>(<span class="ruby-identifier">row_index</span>))
905
+ <span class="ruby-identifier">row</span> = <span class="ruby-identifier">sheet_data</span>[<span class="ruby-identifier">row_index</span>]
906
+ <span class="ruby-identifier">row</span>.<span class="ruby-identifier">style_index</span> = <span class="ruby-identifier">workbook</span>.<span class="ruby-identifier">register_new_xf</span>(<span class="ruby-identifier">xf</span>)
907
+ <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> }
908
+ <span class="ruby-keyword">end</span></pre>
909
+ </div>
910
+
911
+ </div>
912
+
913
+
914
+
915
+
764
916
  </div>
765
917
 
766
918
 
@@ -783,7 +935,7 @@
783
935
 
784
936
 
785
937
  <div class="method-source-code" id="change_row_font_color-source">
786
- <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 428</span>
938
+ <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 569</span>
787
939
  <span class="ruby-keyword">def</span> <span class="ruby-identifier">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">'000000'</span>)
788
940
  <span class="ruby-identifier">ensure_cell_exists</span>(<span class="ruby-identifier">row</span>)
789
941
  <span class="ruby-constant">Color</span>.<span class="ruby-identifier">validate_color</span>(<span class="ruby-identifier">font_color</span>)
@@ -820,7 +972,7 @@
820
972
 
821
973
 
822
974
  <div class="method-source-code" id="change_row_font_name-source">
823
- <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 414</span>
975
+ <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 555</span>
824
976
  <span class="ruby-keyword">def</span> <span class="ruby-identifier">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">'Verdana'</span>)
825
977
  <span class="ruby-identifier">ensure_cell_exists</span>(<span class="ruby-identifier">row</span>)
826
978
  <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>
@@ -856,7 +1008,7 @@
856
1008
 
857
1009
 
858
1010
  <div class="method-source-code" id="change_row_font_size-source">
859
- <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 421</span>
1011
+ <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 562</span>
860
1012
  <span class="ruby-keyword">def</span> <span class="ruby-identifier">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>)
861
1013
  <span class="ruby-identifier">ensure_cell_exists</span>(<span class="ruby-identifier">row</span>)
862
1014
  <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>
@@ -892,7 +1044,7 @@
892
1044
 
893
1045
 
894
1046
  <div class="method-source-code" id="change_row_height-source">
895
- <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 464</span>
1047
+ <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 605</span>
896
1048
  <span class="ruby-keyword">def</span> <span class="ruby-identifier">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>)
897
1049
  <span class="ruby-identifier">validate_workbook</span>
898
1050
  <span class="ruby-identifier">ensure_cell_exists</span>(<span class="ruby-identifier">row</span>)
@@ -930,7 +1082,7 @@
930
1082
 
931
1083
 
932
1084
  <div class="method-source-code" id="change_row_horizontal_alignment-source">
933
- <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 382</span>
1085
+ <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 510</span>
934
1086
  <span class="ruby-keyword">def</span> <span class="ruby-identifier">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">'center'</span>)
935
1087
  <span class="ruby-identifier">validate_workbook</span>
936
1088
  <span class="ruby-identifier">validate_nonnegative</span>(<span class="ruby-identifier">row</span>)
@@ -965,7 +1117,7 @@
965
1117
 
966
1118
 
967
1119
  <div class="method-source-code" id="change_row_italics-source">
968
- <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 436</span>
1120
+ <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 577</span>
969
1121
  <span class="ruby-keyword">def</span> <span class="ruby-identifier">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>)
970
1122
  <span class="ruby-identifier">ensure_cell_exists</span>(<span class="ruby-identifier">row</span>)
971
1123
  <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>
@@ -1001,7 +1153,7 @@
1001
1153
 
1002
1154
 
1003
1155
  <div class="method-source-code" id="change_row_strikethrough-source">
1004
- <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 457</span>
1156
+ <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 598</span>
1005
1157
  <span class="ruby-keyword">def</span> <span class="ruby-identifier">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>)
1006
1158
  <span class="ruby-identifier">ensure_cell_exists</span>(<span class="ruby-identifier">row</span>)
1007
1159
  <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>
@@ -1037,7 +1189,7 @@
1037
1189
 
1038
1190
 
1039
1191
  <div class="method-source-code" id="change_row_underline-source">
1040
- <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 450</span>
1192
+ <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 591</span>
1041
1193
  <span class="ruby-keyword">def</span> <span class="ruby-identifier">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>)
1042
1194
  <span class="ruby-identifier">ensure_cell_exists</span>(<span class="ruby-identifier">row</span>)
1043
1195
  <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>
@@ -1073,7 +1225,7 @@
1073
1225
 
1074
1226
 
1075
1227
  <div class="method-source-code" id="change_row_vertical_alignment-source">
1076
- <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 388</span>
1228
+ <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 516</span>
1077
1229
  <span class="ruby-keyword">def</span> <span class="ruby-identifier">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">'center'</span>)
1078
1230
  <span class="ruby-identifier">validate_workbook</span>
1079
1231
  <span class="ruby-identifier">validate_nonnegative</span>(<span class="ruby-identifier">row</span>)
@@ -1086,6 +1238,41 @@
1086
1238
 
1087
1239
 
1088
1240
 
1241
+ </div>
1242
+
1243
+
1244
+ <div id="method-i-column_font" class="method-detail ">
1245
+
1246
+ <div class="method-heading">
1247
+ <span class="method-name">column_font</span><span
1248
+ class="method-args">(col)</span>
1249
+
1250
+ <span class="method-click-advice">click to toggle source</span>
1251
+
1252
+ </div>
1253
+
1254
+
1255
+ <div class="method-description">
1256
+
1257
+
1258
+
1259
+
1260
+
1261
+
1262
+ <div class="method-source-code" id="column_font-source">
1263
+ <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 497</span>
1264
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">column_font</span>(<span class="ruby-identifier">col</span>)
1265
+ <span class="ruby-identifier">validate_workbook</span>
1266
+
1267
+ <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>]
1268
+ <span class="ruby-keyword">end</span></pre>
1269
+ </div>
1270
+
1271
+ </div>
1272
+
1273
+
1274
+
1275
+
1089
1276
  </div>
1090
1277
 
1091
1278
 
@@ -1110,7 +1297,7 @@ specified, method will shift column contents below the deleted cell upward</p>
1110
1297
 
1111
1298
 
1112
1299
  <div class="method-source-code" id="delete_cell-source">
1113
- <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 210</span>
1300
+ <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 217</span>
1114
1301
  <span class="ruby-keyword">def</span> <span class="ruby-identifier">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>)
1115
1302
  <span class="ruby-identifier">validate_workbook</span>
1116
1303
  <span class="ruby-identifier">validate_nonnegative</span>(<span class="ruby-identifier">row_index</span>)
@@ -1142,6 +1329,96 @@ specified, method will shift column contents below the deleted cell upward</p>
1142
1329
 
1143
1330
 
1144
1331
 
1332
+ </div>
1333
+
1334
+
1335
+ <div id="method-i-delete_column" class="method-detail ">
1336
+
1337
+ <div class="method-heading">
1338
+ <span class="method-name">delete_column</span><span
1339
+ class="method-args">(column_index = 0)</span>
1340
+
1341
+ <span class="method-click-advice">click to toggle source</span>
1342
+
1343
+ </div>
1344
+
1345
+
1346
+ <div class="method-description">
1347
+
1348
+
1349
+
1350
+
1351
+
1352
+
1353
+ <div class="method-source-code" id="delete_column-source">
1354
+ <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 323</span>
1355
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">delete_column</span>(<span class="ruby-identifier">column_index</span> = <span class="ruby-value">0</span>)
1356
+ <span class="ruby-identifier">validate_workbook</span>
1357
+ <span class="ruby-identifier">validate_nonnegative</span>(<span class="ruby-identifier">column_index</span>)
1358
+
1359
+ <span class="ruby-comment">#delete column</span>
1360
+ <span class="ruby-identifier">sheet_data</span>.<span class="ruby-identifier">rows</span>.<span class="ruby-identifier">each</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">row</span><span class="ruby-operator">|</span> <span class="ruby-identifier">row</span>.<span class="ruby-identifier">cells</span>.<span class="ruby-identifier">delete_at</span>(<span class="ruby-identifier">column_index</span>) }
1361
+
1362
+ <span class="ruby-comment"># Change column numbers for cells to the right of the deleted column</span>
1363
+ <span class="ruby-identifier">sheet_data</span>.<span class="ruby-identifier">rows</span>.<span class="ruby-identifier">each_with_index</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">row</span>, <span class="ruby-identifier">row_index</span><span class="ruby-operator">|</span>
1364
+ <span class="ruby-identifier">row</span>.<span class="ruby-identifier">cells</span>.<span class="ruby-identifier">each_with_index</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">c</span>, <span class="ruby-identifier">column_index</span><span class="ruby-operator">|</span>
1365
+ <span class="ruby-identifier">c</span>.<span class="ruby-identifier">column</span> = <span class="ruby-identifier">column_index</span> <span class="ruby-keyword">if</span> <span class="ruby-identifier">c</span>.<span class="ruby-identifier">is_a?</span>(<span class="ruby-constant">Cell</span>)
1366
+ }
1367
+ }
1368
+
1369
+ <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>) }
1370
+ <span class="ruby-keyword">end</span></pre>
1371
+ </div>
1372
+
1373
+ </div>
1374
+
1375
+
1376
+
1377
+
1378
+ </div>
1379
+
1380
+
1381
+ <div id="method-i-delete_row" class="method-detail ">
1382
+
1383
+ <div class="method-heading">
1384
+ <span class="method-name">delete_row</span><span
1385
+ class="method-args">(row_index=0)</span>
1386
+
1387
+ <span class="method-click-advice">click to toggle source</span>
1388
+
1389
+ </div>
1390
+
1391
+
1392
+ <div class="method-description">
1393
+
1394
+
1395
+
1396
+
1397
+
1398
+
1399
+ <div class="method-source-code" id="delete_row-source">
1400
+ <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 279</span>
1401
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">delete_row</span>(<span class="ruby-identifier">row_index</span>=<span class="ruby-value">0</span>)
1402
+ <span class="ruby-identifier">validate_workbook</span>
1403
+ <span class="ruby-identifier">validate_nonnegative</span>(<span class="ruby-identifier">row_index</span>)
1404
+
1405
+ <span class="ruby-identifier">deleted</span> = <span class="ruby-identifier">sheet_data</span>.<span class="ruby-identifier">rows</span>.<span class="ruby-identifier">delete_at</span>(<span class="ruby-identifier">row_index</span>)
1406
+
1407
+ <span class="ruby-comment"># Update row number of each cell</span>
1408
+ <span class="ruby-identifier">row_index</span>.<span class="ruby-identifier">upto</span>(<span class="ruby-identifier">sheet_data</span>.<span class="ruby-identifier">size</span> <span class="ruby-operator">-</span> <span class="ruby-value">1</span>) { <span class="ruby-operator">|</span><span class="ruby-identifier">index</span><span class="ruby-operator">|</span>
1409
+ <span class="ruby-identifier">row</span> = <span class="ruby-identifier">sheet_data</span>[<span class="ruby-identifier">index</span>]
1410
+ <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> }
1411
+ }
1412
+
1413
+ <span class="ruby-keyword">return</span> <span class="ruby-identifier">deleted</span>
1414
+ <span class="ruby-keyword">end</span></pre>
1415
+ </div>
1416
+
1417
+ </div>
1418
+
1419
+
1420
+
1421
+
1145
1422
  </div>
1146
1423
 
1147
1424
 
@@ -1165,7 +1442,7 @@ information)</p>
1165
1442
 
1166
1443
 
1167
1444
  <div class="method-source-code" id="extract_data-source">
1168
- <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 573</span>
1445
+ <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 729</span>
1169
1446
  <span class="ruby-keyword">def</span> <span class="ruby-identifier">extract_data</span>(<span class="ruby-identifier">args</span> = {})
1170
1447
  <span class="ruby-identifier">warn</span> <span class="ruby-node">&quot;[DEPRECATION] `#{__method__}` is deprecated. Please access data directly by iterating through .sheet_data.rows&quot;</span>
1171
1448
  <span class="ruby-identifier">sheet_data</span>.<span class="ruby-identifier">rows</span>.<span class="ruby-identifier">map</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">row</span><span class="ruby-operator">|</span>
@@ -1179,6 +1456,75 @@ information)</p>
1179
1456
 
1180
1457
 
1181
1458
 
1459
+ </div>
1460
+
1461
+
1462
+ <div id="method-i-get_col_style" class="method-detail ">
1463
+
1464
+ <div class="method-heading">
1465
+ <span class="method-name">get_col_style</span><span
1466
+ class="method-args">(column_index)</span>
1467
+
1468
+ <span class="method-click-advice">click to toggle source</span>
1469
+
1470
+ </div>
1471
+
1472
+
1473
+ <div class="method-description">
1474
+
1475
+ <p>Helper method to get the style index for a column</p>
1476
+
1477
+
1478
+
1479
+
1480
+ <div class="method-source-code" id="get_col_style-source">
1481
+ <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 477</span>
1482
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">get_col_style</span>(<span class="ruby-identifier">column_index</span>)
1483
+ <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>)
1484
+ (<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>
1485
+ <span class="ruby-keyword">end</span></pre>
1486
+ </div>
1487
+
1488
+ </div>
1489
+
1490
+
1491
+
1492
+
1493
+ </div>
1494
+
1495
+
1496
+ <div id="method-i-get_cols_style_index" class="method-detail ">
1497
+
1498
+ <div class="method-heading">
1499
+ <span class="method-name">get_cols_style_index</span><span
1500
+ class="method-args">(column_index)</span>
1501
+
1502
+ <span class="method-click-advice">click to toggle source</span>
1503
+
1504
+ </div>
1505
+
1506
+
1507
+ <div class="method-description">
1508
+
1509
+
1510
+
1511
+
1512
+
1513
+
1514
+ <div class="method-source-code" id="get_cols_style_index-source">
1515
+ <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 418</span>
1516
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">get_cols_style_index</span>(<span class="ruby-identifier">column_index</span>)
1517
+ <span class="ruby-identifier">validate_nonnegative</span>(<span class="ruby-identifier">column_index</span>)
1518
+ <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>)
1519
+ (<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>
1520
+ <span class="ruby-keyword">end</span></pre>
1521
+ </div>
1522
+
1523
+ </div>
1524
+
1525
+
1526
+
1527
+
1182
1528
  </div>
1183
1529
 
1184
1530
 
@@ -1201,10 +1547,9 @@ information)</p>
1201
1547
 
1202
1548
 
1203
1549
  <div class="method-source-code" id="get_column_alignment-source">
1204
- <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 374</span>
1550
+ <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 503</span>
1205
1551
  <span class="ruby-keyword">def</span> <span class="ruby-identifier">get_column_alignment</span>(<span class="ruby-identifier">col</span>, <span class="ruby-identifier">type</span>)
1206
1552
  <span class="ruby-identifier">validate_workbook</span>
1207
- <span class="ruby-identifier">validate_nonnegative</span>(<span class="ruby-identifier">col</span>)
1208
1553
 
1209
1554
  <span class="ruby-identifier">xf</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>)]
1210
1555
  <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>)
@@ -1238,10 +1583,9 @@ information)</p>
1238
1583
 
1239
1584
 
1240
1585
  <div class="method-source-code" id="get_column_border-source">
1241
- <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 365</span>
1586
+ <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 489</span>
1242
1587
  <span class="ruby-keyword">def</span> <span class="ruby-identifier">get_column_border</span>(<span class="ruby-identifier">col</span>, <span class="ruby-identifier">border_direction</span>)
1243
1588
  <span class="ruby-identifier">validate_workbook</span>
1244
- <span class="ruby-identifier">validate_nonnegative</span>(<span class="ruby-identifier">col</span>)
1245
1589
 
1246
1590
  <span class="ruby-identifier">xf</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>)]
1247
1591
  <span class="ruby-identifier">border</span> = <span class="ruby-ivar">@workbook</span>.<span class="ruby-identifier">borders</span>[<span class="ruby-identifier">xf</span>.<span class="ruby-identifier">border_id</span>]
@@ -1276,7 +1620,7 @@ information)</p>
1276
1620
 
1277
1621
 
1278
1622
  <div class="method-source-code" id="get_column_fill-source">
1279
- <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 358</span>
1623
+ <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 482</span>
1280
1624
  <span class="ruby-keyword">def</span> <span class="ruby-identifier">get_column_fill</span>(<span class="ruby-identifier">col</span>=<span class="ruby-value">0</span>)
1281
1625
  <span class="ruby-identifier">validate_workbook</span>
1282
1626
  <span class="ruby-identifier">validate_nonnegative</span>(<span class="ruby-identifier">col</span>)
@@ -1312,7 +1656,7 @@ information)</p>
1312
1656
 
1313
1657
 
1314
1658
  <div class="method-source-code" id="get_column_font_color-source">
1315
- <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 316</span>
1659
+ <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 434</span>
1316
1660
  <span class="ruby-keyword">def</span> <span class="ruby-identifier">get_column_font_color</span>(<span class="ruby-identifier">col</span> = <span class="ruby-value">0</span>)
1317
1661
  <span class="ruby-identifier">font</span> = <span class="ruby-identifier">column_font</span>(<span class="ruby-identifier">col</span>)
1318
1662
  <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">'000000'</span>)
@@ -1346,7 +1690,7 @@ information)</p>
1346
1690
 
1347
1691
 
1348
1692
  <div class="method-source-code" id="get_column_font_name-source">
1349
- <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 306</span>
1693
+ <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 424</span>
1350
1694
  <span class="ruby-keyword">def</span> <span class="ruby-identifier">get_column_font_name</span>(<span class="ruby-identifier">col</span> = <span class="ruby-value">0</span>)
1351
1695
  <span class="ruby-identifier">font</span> = <span class="ruby-identifier">column_font</span>(<span class="ruby-identifier">col</span>)
1352
1696
  <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>
@@ -1380,7 +1724,7 @@ information)</p>
1380
1724
 
1381
1725
 
1382
1726
  <div class="method-source-code" id="get_column_font_size-source">
1383
- <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 311</span>
1727
+ <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 429</span>
1384
1728
  <span class="ruby-keyword">def</span> <span class="ruby-identifier">get_column_font_size</span>(<span class="ruby-identifier">col</span> = <span class="ruby-value">0</span>)
1385
1729
  <span class="ruby-identifier">font</span> = <span class="ruby-identifier">column_font</span>(<span class="ruby-identifier">col</span>)
1386
1730
  <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>
@@ -1415,7 +1759,7 @@ href="http://msdn.microsoft.com/en-us/library/documentformat.openxml.spreadsheet
1415
1759
 
1416
1760
 
1417
1761
  <div class="method-source-code" id="get_column_width-source">
1418
- <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 352</span>
1762
+ <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 470</span>
1419
1763
  <span class="ruby-keyword">def</span> <span class="ruby-identifier">get_column_width</span>(<span class="ruby-identifier">column_index</span> = <span class="ruby-value">0</span>)
1420
1764
  <span class="ruby-identifier">width</span> = <span class="ruby-identifier">get_column_width_raw</span>(<span class="ruby-identifier">column_index</span>)
1421
1765
  <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>
@@ -1450,7 +1794,7 @@ href="http://msdn.microsoft.com/en-us/library/documentformat.openxml.spreadsheet
1450
1794
 
1451
1795
 
1452
1796
  <div class="method-source-code" id="get_column_width_raw-source">
1453
- <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 342</span>
1797
+ <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 460</span>
1454
1798
  <span class="ruby-keyword">def</span> <span class="ruby-identifier">get_column_width_raw</span>(<span class="ruby-identifier">column_index</span> = <span class="ruby-value">0</span>)
1455
1799
  <span class="ruby-identifier">validate_workbook</span>
1456
1800
  <span class="ruby-identifier">validate_nonnegative</span>(<span class="ruby-identifier">column_index</span>)
@@ -1487,10 +1831,9 @@ href="http://msdn.microsoft.com/en-us/library/documentformat.openxml.spreadsheet
1487
1831
 
1488
1832
 
1489
1833
  <div class="method-source-code" id="get_row_alignment-source">
1490
- <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 284</span>
1834
+ <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 397</span>
1491
1835
  <span class="ruby-keyword">def</span> <span class="ruby-identifier">get_row_alignment</span>(<span class="ruby-identifier">row</span>, <span class="ruby-identifier">is_horizontal</span>)
1492
1836
  <span class="ruby-identifier">validate_workbook</span>
1493
- <span class="ruby-identifier">validate_nonnegative</span>(<span class="ruby-identifier">row</span>)
1494
1837
 
1495
1838
  <span class="ruby-identifier">xf_obj</span> = <span class="ruby-identifier">get_row_xf</span>(<span class="ruby-identifier">row</span>)
1496
1839
  <span class="ruby-keyword">return</span> <span class="ruby-keyword">nil</span> <span class="ruby-keyword">if</span> <span class="ruby-identifier">xf_obj</span>.<span class="ruby-identifier">alignment</span>.<span class="ruby-identifier">nil?</span>
@@ -1528,10 +1871,9 @@ href="http://msdn.microsoft.com/en-us/library/documentformat.openxml.spreadsheet
1528
1871
 
1529
1872
 
1530
1873
  <div class="method-source-code" id="get_row_border-source">
1531
- <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 276</span>
1874
+ <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 386</span>
1532
1875
  <span class="ruby-keyword">def</span> <span class="ruby-identifier">get_row_border</span>(<span class="ruby-identifier">row</span>, <span class="ruby-identifier">border_direction</span>)
1533
1876
  <span class="ruby-identifier">validate_workbook</span>
1534
- <span class="ruby-identifier">validate_nonnegative</span>(<span class="ruby-identifier">row</span>)
1535
1877
 
1536
1878
  <span class="ruby-identifier">border</span> = <span class="ruby-ivar">@workbook</span>.<span class="ruby-identifier">borders</span>[<span class="ruby-identifier">get_row_xf</span>(<span class="ruby-identifier">row</span>).<span class="ruby-identifier">border_id</span>]
1537
1879
  <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>)
@@ -1565,7 +1907,7 @@ href="http://msdn.microsoft.com/en-us/library/documentformat.openxml.spreadsheet
1565
1907
 
1566
1908
 
1567
1909
  <div class="method-source-code" id="get_row_fill-source">
1568
- <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 235</span>
1910
+ <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 345</span>
1569
1911
  <span class="ruby-keyword">def</span> <span class="ruby-identifier">get_row_fill</span>(<span class="ruby-identifier">row</span> = <span class="ruby-value">0</span>)
1570
1912
  (<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>
1571
1913
  <span class="ruby-keyword">end</span></pre>
@@ -1598,7 +1940,7 @@ href="http://msdn.microsoft.com/en-us/library/documentformat.openxml.spreadsheet
1598
1940
 
1599
1941
 
1600
1942
  <div class="method-source-code" id="get_row_font_color-source">
1601
- <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 247</span>
1943
+ <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 357</span>
1602
1944
  <span class="ruby-keyword">def</span> <span class="ruby-identifier">get_row_font_color</span>(<span class="ruby-identifier">row</span> = <span class="ruby-value">0</span>)
1603
1945
  <span class="ruby-identifier">font</span> = <span class="ruby-identifier">row_font</span>(<span class="ruby-identifier">row</span>)
1604
1946
  <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>
@@ -1633,7 +1975,7 @@ href="http://msdn.microsoft.com/en-us/library/documentformat.openxml.spreadsheet
1633
1975
 
1634
1976
 
1635
1977
  <div class="method-source-code" id="get_row_font_name-source">
1636
- <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 239</span>
1978
+ <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 349</span>
1637
1979
  <span class="ruby-keyword">def</span> <span class="ruby-identifier">get_row_font_name</span>(<span class="ruby-identifier">row</span> = <span class="ruby-value">0</span>)
1638
1980
  (<span class="ruby-identifier">font</span> = <span class="ruby-identifier">row_font</span>(<span class="ruby-identifier">row</span>)) <span class="ruby-operator">&amp;&amp;</span> <span class="ruby-identifier">font</span>.<span class="ruby-identifier">get_name</span>
1639
1981
  <span class="ruby-keyword">end</span></pre>
@@ -1666,7 +2008,7 @@ href="http://msdn.microsoft.com/en-us/library/documentformat.openxml.spreadsheet
1666
2008
 
1667
2009
 
1668
2010
  <div class="method-source-code" id="get_row_font_size-source">
1669
- <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 243</span>
2011
+ <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 353</span>
1670
2012
  <span class="ruby-keyword">def</span> <span class="ruby-identifier">get_row_font_size</span>(<span class="ruby-identifier">row</span> = <span class="ruby-value">0</span>)
1671
2013
  (<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>
1672
2014
  <span class="ruby-keyword">end</span></pre>
@@ -1699,7 +2041,7 @@ href="http://msdn.microsoft.com/en-us/library/documentformat.openxml.spreadsheet
1699
2041
 
1700
2042
 
1701
2043
  <div class="method-source-code" id="get_row_height-source">
1702
- <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 269</span>
2044
+ <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 379</span>
1703
2045
  <span class="ruby-keyword">def</span> <span class="ruby-identifier">get_row_height</span>(<span class="ruby-identifier">row</span> = <span class="ruby-value">0</span>)
1704
2046
  <span class="ruby-identifier">validate_workbook</span>
1705
2047
  <span class="ruby-identifier">validate_nonnegative</span>(<span class="ruby-identifier">row</span>)
@@ -1735,7 +2077,7 @@ href="http://msdn.microsoft.com/en-us/library/documentformat.openxml.spreadsheet
1735
2077
 
1736
2078
 
1737
2079
  <div class="method-source-code" id="get_row_horizontal_alignment-source">
1738
- <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 296</span>
2080
+ <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 408</span>
1739
2081
  <span class="ruby-keyword">def</span> <span class="ruby-identifier">get_row_horizontal_alignment</span>(<span class="ruby-identifier">row</span> = <span class="ruby-value">0</span>)
1740
2082
  <span class="ruby-identifier">warn</span> <span class="ruby-node">&quot;[DEPRECATION] `#{__method__}` is deprecated. Please use `get_row_alignment` instead.&quot;</span>
1741
2083
  <span class="ruby-keyword">return</span> <span class="ruby-identifier">get_row_alignment</span>(<span class="ruby-identifier">row</span>, <span class="ruby-keyword">true</span>)
@@ -1747,6 +2089,40 @@ href="http://msdn.microsoft.com/en-us/library/documentformat.openxml.spreadsheet
1747
2089
 
1748
2090
 
1749
2091
 
2092
+ </div>
2093
+
2094
+
2095
+ <div id="method-i-get_row_style" class="method-detail ">
2096
+
2097
+ <div class="method-heading">
2098
+ <span class="method-name">get_row_style</span><span
2099
+ class="method-args">(row_index)</span>
2100
+
2101
+ <span class="method-click-advice">click to toggle source</span>
2102
+
2103
+ </div>
2104
+
2105
+
2106
+ <div class="method-description">
2107
+
2108
+
2109
+
2110
+
2111
+
2112
+
2113
+ <div class="method-source-code" id="get_row_style-source">
2114
+ <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 340</span>
2115
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">get_row_style</span>(<span class="ruby-identifier">row_index</span>)
2116
+ <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>]
2117
+ (<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>
2118
+ <span class="ruby-keyword">end</span></pre>
2119
+ </div>
2120
+
2121
+ </div>
2122
+
2123
+
2124
+
2125
+
1750
2126
  </div>
1751
2127
 
1752
2128
 
@@ -1769,7 +2145,7 @@ href="http://msdn.microsoft.com/en-us/library/documentformat.openxml.spreadsheet
1769
2145
 
1770
2146
 
1771
2147
  <div class="method-source-code" id="get_row_vertical_alignment-source">
1772
- <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 301</span>
2148
+ <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 413</span>
1773
2149
  <span class="ruby-keyword">def</span> <span class="ruby-identifier">get_row_vertical_alignment</span>(<span class="ruby-identifier">row</span> = <span class="ruby-value">0</span>)
1774
2150
  <span class="ruby-identifier">warn</span> <span class="ruby-node">&quot;[DEPRECATION] `#{__method__}` is deprecated. Please use `get_row_alignment` instead.&quot;</span>
1775
2151
  <span class="ruby-keyword">return</span> <span class="ruby-identifier">get_row_alignment</span>(<span class="ruby-identifier">row</span>, <span class="ruby-keyword">false</span>)
@@ -1803,7 +2179,7 @@ href="http://msdn.microsoft.com/en-us/library/documentformat.openxml.spreadsheet
1803
2179
 
1804
2180
 
1805
2181
  <div class="method-source-code" id="get_table-source">
1806
- <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 580</span>
2182
+ <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 736</span>
1807
2183
  <span class="ruby-keyword">def</span> <span class="ruby-identifier">get_table</span>(<span class="ruby-identifier">headers</span> = [], <span class="ruby-identifier">opts</span> = {})
1808
2184
  <span class="ruby-identifier">warn</span> <span class="ruby-node">&quot;[DEPRECATION] `#{__method__}` is deprecated. Please access data directly by iterating through .sheet_data.rows&quot;</span>
1809
2185
  <span class="ruby-identifier">validate_workbook</span>
@@ -1885,7 +2261,7 @@ href="http://msdn.microsoft.com/en-us/library/documentformat.openxml.spreadsheet
1885
2261
 
1886
2262
 
1887
2263
  <div class="method-source-code" id="insert_cell-source">
1888
- <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 187</span>
2264
+ <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 194</span>
1889
2265
  <span class="ruby-keyword">def</span> <span class="ruby-identifier">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>)
1890
2266
  <span class="ruby-identifier">validate_workbook</span>
1891
2267
  <span class="ruby-identifier">ensure_cell_exists</span>(<span class="ruby-identifier">row</span>, <span class="ruby-identifier">col</span>)
@@ -1912,6 +2288,130 @@ href="http://msdn.microsoft.com/en-us/library/documentformat.openxml.spreadsheet
1912
2288
 
1913
2289
 
1914
2290
 
2291
+ </div>
2292
+
2293
+
2294
+ <div id="method-i-insert_column" class="method-detail ">
2295
+
2296
+ <div class="method-heading">
2297
+ <span class="method-name">insert_column</span><span
2298
+ class="method-args">(column_index = 0)</span>
2299
+
2300
+ <span class="method-click-advice">click to toggle source</span>
2301
+
2302
+ </div>
2303
+
2304
+
2305
+ <div class="method-description">
2306
+
2307
+ <p>Inserts column at <code>column_index</code>, pushes everything right, takes
2308
+ styles from column to left NOTE: use of this method will break formulas
2309
+ which reference cells which are being “pushed right”</p>
2310
+
2311
+
2312
+
2313
+
2314
+ <div class="method-source-code" id="insert_column-source">
2315
+ <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 296</span>
2316
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">insert_column</span>(<span class="ruby-identifier">column_index</span> = <span class="ruby-value">0</span>)
2317
+ <span class="ruby-identifier">validate_workbook</span>
2318
+ <span class="ruby-identifier">ensure_cell_exists</span>(<span class="ruby-value">0</span>, <span class="ruby-identifier">column_index</span>)
2319
+
2320
+ <span class="ruby-identifier">old_range</span> = <span class="ruby-identifier">cols</span>.<span class="ruby-identifier">get_range</span>(<span class="ruby-identifier">column_index</span>)
2321
+
2322
+ <span class="ruby-comment">#go through each cell in column</span>
2323
+ <span class="ruby-identifier">sheet_data</span>.<span class="ruby-identifier">rows</span>.<span class="ruby-identifier">each_with_index</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">row</span>, <span class="ruby-identifier">row_index</span><span class="ruby-operator">|</span>
2324
+ <span class="ruby-identifier">old_cell</span> = <span class="ruby-identifier">row</span>[<span class="ruby-identifier">column_index</span>]
2325
+ <span class="ruby-identifier">c</span> = <span class="ruby-keyword">nil</span>
2326
+
2327
+ <span class="ruby-keyword">if</span> <span class="ruby-identifier">old_cell</span> <span class="ruby-operator">&amp;&amp;</span> <span class="ruby-identifier">old_cell</span>.<span class="ruby-identifier">style_index</span> <span class="ruby-operator">!=</span> <span class="ruby-value">0</span> <span class="ruby-operator">&amp;&amp;</span>
2328
+ <span class="ruby-identifier">old_range</span> <span class="ruby-operator">&amp;&amp;</span> <span class="ruby-identifier">old_range</span>.<span class="ruby-identifier">style_index</span> <span class="ruby-operator">!=</span> <span class="ruby-identifier">old_cell</span>.<span class="ruby-identifier">style_index</span> <span class="ruby-keyword">then</span>
2329
+
2330
+ <span class="ruby-identifier">c</span> = <span class="ruby-constant">RubyXL</span><span class="ruby-operator">::</span><span class="ruby-constant">Cell</span>.<span class="ruby-identifier">new</span>(<span class="ruby-value">:style_index</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">old_cell</span>.<span class="ruby-identifier">style_index</span>, <span class="ruby-value">:worksheet</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-keyword">self</span>,
2331
+ <span class="ruby-value">:row</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">row_index</span>, <span class="ruby-value">:column</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">column_index</span>,
2332
+ <span class="ruby-value">:datatype</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-constant">RubyXL</span><span class="ruby-operator">::</span><span class="ruby-constant">DataType</span><span class="ruby-operator">::</span><span class="ruby-constant">SHARED_STRING</span>)
2333
+ <span class="ruby-keyword">end</span>
2334
+
2335
+ <span class="ruby-identifier">row</span>.<span class="ruby-identifier">insert_cell_shift_right</span>(<span class="ruby-identifier">c</span>, <span class="ruby-identifier">column_index</span>)
2336
+ }
2337
+
2338
+ <span class="ruby-identifier">cols</span>.<span class="ruby-identifier">insert_column</span>(<span class="ruby-identifier">column_index</span>)
2339
+
2340
+ <span class="ruby-comment"># TODO: update column numbers</span>
2341
+ <span class="ruby-keyword">end</span></pre>
2342
+ </div>
2343
+
2344
+ </div>
2345
+
2346
+
2347
+
2348
+
2349
+ </div>
2350
+
2351
+
2352
+ <div id="method-i-insert_row" class="method-detail ">
2353
+
2354
+ <div class="method-heading">
2355
+ <span class="method-name">insert_row</span><span
2356
+ class="method-args">(row_index = 0)</span>
2357
+
2358
+ <span class="method-click-advice">click to toggle source</span>
2359
+
2360
+ </div>
2361
+
2362
+
2363
+ <div class="method-description">
2364
+
2365
+ <p>Inserts row at row_index, pushes down, copies style from the row above
2366
+ (that’s what Excel 2013 does!) NOTE: use of this method will break formulas
2367
+ which reference cells which are being “pushed down”</p>
2368
+
2369
+
2370
+
2371
+
2372
+ <div class="method-source-code" id="insert_row-source">
2373
+ <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 244</span>
2374
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">insert_row</span>(<span class="ruby-identifier">row_index</span> = <span class="ruby-value">0</span>)
2375
+ <span class="ruby-identifier">validate_workbook</span>
2376
+ <span class="ruby-identifier">ensure_cell_exists</span>(<span class="ruby-identifier">row_index</span>)
2377
+
2378
+ <span class="ruby-identifier">old_row</span> = <span class="ruby-identifier">new_cells</span> = <span class="ruby-keyword">nil</span>
2379
+
2380
+ <span class="ruby-keyword">if</span> <span class="ruby-identifier">row_index</span> <span class="ruby-operator">&gt;</span> <span class="ruby-value">0</span> <span class="ruby-keyword">then</span>
2381
+ <span class="ruby-identifier">old_row</span> = <span class="ruby-identifier">sheet_data</span>.<span class="ruby-identifier">rows</span>[<span class="ruby-identifier">row_index</span> <span class="ruby-operator">-</span> <span class="ruby-value">1</span>]
2382
+ <span class="ruby-keyword">if</span> <span class="ruby-identifier">old_row</span> <span class="ruby-keyword">then</span>
2383
+ <span class="ruby-identifier">new_cells</span> = <span class="ruby-identifier">old_row</span>.<span class="ruby-identifier">cells</span>.<span class="ruby-identifier">collect</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">c</span><span class="ruby-operator">|</span>
2384
+ <span class="ruby-keyword">if</span> <span class="ruby-identifier">c</span>.<span class="ruby-identifier">nil?</span> <span class="ruby-keyword">then</span> <span class="ruby-keyword">nil</span>
2385
+ <span class="ruby-keyword">else</span> <span class="ruby-identifier">nc</span> = <span class="ruby-constant">RubyXL</span><span class="ruby-operator">::</span><span class="ruby-constant">Cell</span>.<span class="ruby-identifier">new</span>(<span class="ruby-value">:style_index</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">c</span>.<span class="ruby-identifier">style_index</span>)
2386
+ <span class="ruby-identifier">nc</span>.<span class="ruby-identifier">worksheet</span> = <span class="ruby-keyword">self</span>
2387
+ <span class="ruby-identifier">nc</span>
2388
+ <span class="ruby-keyword">end</span>
2389
+ }
2390
+ <span class="ruby-keyword">end</span>
2391
+ <span class="ruby-keyword">end</span>
2392
+
2393
+ <span class="ruby-identifier">row0</span> = <span class="ruby-identifier">sheet_data</span>.<span class="ruby-identifier">rows</span>[<span class="ruby-value">0</span>]
2394
+ <span class="ruby-identifier">new_cells</span> <span class="ruby-operator">||=</span> <span class="ruby-constant">Array</span>.<span class="ruby-identifier">new</span>((<span class="ruby-identifier">row0</span> <span class="ruby-operator">&amp;&amp;</span> <span class="ruby-identifier">row0</span>.<span class="ruby-identifier">cells</span>.<span class="ruby-identifier">size</span>) <span class="ruby-operator">||</span> <span class="ruby-value">0</span>)
2395
+
2396
+ <span class="ruby-identifier">sheet_data</span>.<span class="ruby-identifier">rows</span>.<span class="ruby-identifier">insert</span>(<span class="ruby-identifier">row_index</span>, <span class="ruby-keyword">nil</span>)
2397
+ <span class="ruby-identifier">new_row</span> = <span class="ruby-identifier">add_row</span>(<span class="ruby-identifier">row_index</span>, <span class="ruby-value">:cells</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">new_cells</span>, <span class="ruby-value">:style_index</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">old_row</span> <span class="ruby-operator">&amp;&amp;</span> <span class="ruby-identifier">old_row</span>.<span class="ruby-identifier">style_index</span>)
2398
+
2399
+ <span class="ruby-comment"># Update row values for all rows below</span>
2400
+ <span class="ruby-identifier">row_index</span>.<span class="ruby-identifier">upto</span>(<span class="ruby-identifier">sheet_data</span>.<span class="ruby-identifier">rows</span>.<span class="ruby-identifier">size</span> <span class="ruby-operator">-</span> <span class="ruby-value">1</span>) { <span class="ruby-operator">|</span><span class="ruby-identifier">i</span><span class="ruby-operator">|</span>
2401
+ <span class="ruby-identifier">row</span> = <span class="ruby-identifier">sheet_data</span>.<span class="ruby-identifier">rows</span>[<span class="ruby-identifier">i</span>]
2402
+ <span class="ruby-keyword">next</span> <span class="ruby-keyword">if</span> <span class="ruby-identifier">row</span>.<span class="ruby-identifier">nil?</span>
2403
+ <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-identifier">i</span> <span class="ruby-keyword">unless</span> <span class="ruby-identifier">c</span>.<span class="ruby-identifier">nil?</span> }
2404
+ }
2405
+
2406
+ <span class="ruby-keyword">return</span> <span class="ruby-identifier">new_row</span>
2407
+ <span class="ruby-keyword">end</span></pre>
2408
+ </div>
2409
+
2410
+ </div>
2411
+
2412
+
2413
+
2414
+
1915
2415
  </div>
1916
2416
 
1917
2417
 
@@ -1934,7 +2434,7 @@ href="http://msdn.microsoft.com/en-us/library/documentformat.openxml.spreadsheet
1934
2434
 
1935
2435
 
1936
2436
  <div class="method-source-code" id="is_column_bolded-source">
1937
- <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 326</span>
2437
+ <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 444</span>
1938
2438
  <span class="ruby-keyword">def</span> <span class="ruby-identifier">is_column_bolded</span>(<span class="ruby-identifier">col</span> = <span class="ruby-value">0</span>)
1939
2439
  <span class="ruby-identifier">font</span> = <span class="ruby-identifier">column_font</span>(<span class="ruby-identifier">col</span>)
1940
2440
  <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>
@@ -1968,7 +2468,7 @@ href="http://msdn.microsoft.com/en-us/library/documentformat.openxml.spreadsheet
1968
2468
 
1969
2469
 
1970
2470
  <div class="method-source-code" id="is_column_italicized-source">
1971
- <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 321</span>
2471
+ <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 439</span>
1972
2472
  <span class="ruby-keyword">def</span> <span class="ruby-identifier">is_column_italicized</span>(<span class="ruby-identifier">col</span> = <span class="ruby-value">0</span>)
1973
2473
  <span class="ruby-identifier">font</span> = <span class="ruby-identifier">column_font</span>(<span class="ruby-identifier">col</span>)
1974
2474
  <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>
@@ -2002,7 +2502,7 @@ href="http://msdn.microsoft.com/en-us/library/documentformat.openxml.spreadsheet
2002
2502
 
2003
2503
 
2004
2504
  <div class="method-source-code" id="is_column_struckthrough-source">
2005
- <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 336</span>
2505
+ <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 454</span>
2006
2506
  <span class="ruby-keyword">def</span> <span class="ruby-identifier">is_column_struckthrough</span>(<span class="ruby-identifier">col</span> = <span class="ruby-value">0</span>)
2007
2507
  <span class="ruby-identifier">font</span> = <span class="ruby-identifier">column_font</span>(<span class="ruby-identifier">col</span>)
2008
2508
  <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>
@@ -2036,7 +2536,7 @@ href="http://msdn.microsoft.com/en-us/library/documentformat.openxml.spreadsheet
2036
2536
 
2037
2537
 
2038
2538
  <div class="method-source-code" id="is_column_underlined-source">
2039
- <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 331</span>
2539
+ <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 449</span>
2040
2540
  <span class="ruby-keyword">def</span> <span class="ruby-identifier">is_column_underlined</span>(<span class="ruby-identifier">col</span> = <span class="ruby-value">0</span>)
2041
2541
  <span class="ruby-identifier">font</span> = <span class="ruby-identifier">column_font</span>(<span class="ruby-identifier">col</span>)
2042
2542
  <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>
@@ -2070,7 +2570,7 @@ href="http://msdn.microsoft.com/en-us/library/documentformat.openxml.spreadsheet
2070
2570
 
2071
2571
 
2072
2572
  <div class="method-source-code" id="is_row_bolded-source">
2073
- <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 257</span>
2573
+ <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 367</span>
2074
2574
  <span class="ruby-keyword">def</span> <span class="ruby-identifier">is_row_bolded</span>(<span class="ruby-identifier">row</span> = <span class="ruby-value">0</span>)
2075
2575
  (<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>
2076
2576
  <span class="ruby-keyword">end</span></pre>
@@ -2103,7 +2603,7 @@ href="http://msdn.microsoft.com/en-us/library/documentformat.openxml.spreadsheet
2103
2603
 
2104
2604
 
2105
2605
  <div class="method-source-code" id="is_row_italicized-source">
2106
- <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 253</span>
2606
+ <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 363</span>
2107
2607
  <span class="ruby-keyword">def</span> <span class="ruby-identifier">is_row_italicized</span>(<span class="ruby-identifier">row</span> = <span class="ruby-value">0</span>)
2108
2608
  (<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>
2109
2609
  <span class="ruby-keyword">end</span></pre>
@@ -2136,7 +2636,7 @@ href="http://msdn.microsoft.com/en-us/library/documentformat.openxml.spreadsheet
2136
2636
 
2137
2637
 
2138
2638
  <div class="method-source-code" id="is_row_struckthrough-source">
2139
- <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 265</span>
2639
+ <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 375</span>
2140
2640
  <span class="ruby-keyword">def</span> <span class="ruby-identifier">is_row_struckthrough</span>(<span class="ruby-identifier">row</span> = <span class="ruby-value">0</span>)
2141
2641
  (<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>
2142
2642
  <span class="ruby-keyword">end</span></pre>
@@ -2169,7 +2669,7 @@ href="http://msdn.microsoft.com/en-us/library/documentformat.openxml.spreadsheet
2169
2669
 
2170
2670
 
2171
2671
  <div class="method-source-code" id="is_row_underlined-source">
2172
- <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 261</span>
2672
+ <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 371</span>
2173
2673
  <span class="ruby-keyword">def</span> <span class="ruby-identifier">is_row_underlined</span>(<span class="ruby-identifier">row</span> = <span class="ruby-value">0</span>)
2174
2674
  (<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>
2175
2675
  <span class="ruby-keyword">end</span></pre>
@@ -2180,6 +2680,39 @@ href="http://msdn.microsoft.com/en-us/library/documentformat.openxml.spreadsheet
2180
2680
 
2181
2681
 
2182
2682
 
2683
+ </div>
2684
+
2685
+
2686
+ <div id="method-i-row_font" class="method-detail ">
2687
+
2688
+ <div class="method-heading">
2689
+ <span class="method-name">row_font</span><span
2690
+ class="method-args">(row)</span>
2691
+
2692
+ <span class="method-click-advice">click to toggle source</span>
2693
+
2694
+ </div>
2695
+
2696
+
2697
+ <div class="method-description">
2698
+
2699
+
2700
+
2701
+
2702
+
2703
+
2704
+ <div class="method-source-code" id="row_font-source">
2705
+ <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 393</span>
2706
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">row_font</span>(<span class="ruby-identifier">row</span>)
2707
+ (<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>
2708
+ <span class="ruby-keyword">end</span></pre>
2709
+ </div>
2710
+
2711
+ </div>
2712
+
2713
+
2714
+
2715
+
2183
2716
  </div>
2184
2717
 
2185
2718