rubyXL 3.3.21 → 3.3.22

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (369) hide show
  1. checksums.yaml +4 -4
  2. data/README.rdoc +7 -0
  3. data/VERSION +1 -1
  4. data/lib/rubyXL/convenience_methods.rb +63 -0
  5. data/lib/rubyXL/objects/border.rb +29 -1
  6. data/lib/rubyXL/objects/comments.rb +2 -2
  7. data/lib/rubyXL/objects/font.rb +4 -4
  8. data/rdoc/README_rdoc.html +8 -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 +86 -4
  23. data/rdoc/RubyXL/BorderEdge.html +87 -1
  24. data/rdoc/RubyXL/Borders.html +2 -2
  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 +101 -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 +1 -1
  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 +1 -1
  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 +5 -5
  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 +1 -1
  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 -1
  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 +1 -1
  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 +45 -1
  346. data/rdoc/RubyXL/WorkbookProperties.html +1 -1
  347. data/rdoc/RubyXL/WorkbookProtection.html +1 -1
  348. data/rdoc/RubyXL/WorkbookRoot.html +1 -1
  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 +229 -65
  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 +27 -27
  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 +57 -2
  367. data/rubyXL.gemspec +37 -37
  368. data/spec/lib/cell_spec.rb +41 -0
  369. metadata +3 -3
@@ -4,7 +4,7 @@
4
4
  <head>
5
5
  <meta charset="UTF-8">
6
6
 
7
- <title>class RubyXL::SmartTagTypes - rubyXL 3.3.21</title>
7
+ <title>class RubyXL::SmartTagTypes - rubyXL 3.3.22</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::SmartTags - rubyXL 3.3.21</title>
7
+ <title>class RubyXL::SmartTags - rubyXL 3.3.22</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::SortCondition - rubyXL 3.3.21</title>
7
+ <title>class RubyXL::SortCondition - rubyXL 3.3.22</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::SortState - rubyXL 3.3.21</title>
7
+ <title>class RubyXL::SortState - rubyXL 3.3.22</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::Sqref - rubyXL 3.3.21</title>
7
+ <title>class RubyXL::Sqref - rubyXL 3.3.22</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::Stop - rubyXL 3.3.21</title>
7
+ <title>class RubyXL::Stop - rubyXL 3.3.22</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::StringNode - rubyXL 3.3.21</title>
7
+ <title>class RubyXL::StringNode - rubyXL 3.3.22</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::StringNodeW3C - rubyXL 3.3.21</title>
7
+ <title>class RubyXL::StringNodeW3C - rubyXL 3.3.22</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::StringValue - rubyXL 3.3.21</title>
7
+ <title>class RubyXL::StringValue - rubyXL 3.3.22</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::Stylesheet - rubyXL 3.3.21</title>
7
+ <title>class RubyXL::Stylesheet - rubyXL 3.3.22</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::TableFile - rubyXL 3.3.21</title>
7
+ <title>class RubyXL::TableFile - rubyXL 3.3.22</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::TableParts - rubyXL 3.3.21</title>
7
+ <title>class RubyXL::TableParts - rubyXL 3.3.22</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::TableStyle - rubyXL 3.3.21</title>
7
+ <title>class RubyXL::TableStyle - rubyXL 3.3.22</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::TableStyles - rubyXL 3.3.21</title>
7
+ <title>class RubyXL::TableStyles - rubyXL 3.3.22</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::Text - rubyXL 3.3.21</title>
7
+ <title>class RubyXL::Text - rubyXL 3.3.22</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::Theme - rubyXL 3.3.21</title>
7
+ <title>class RubyXL::Theme - rubyXL 3.3.22</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::ThemeElements - rubyXL 3.3.21</title>
7
+ <title>class RubyXL::ThemeElements - rubyXL 3.3.22</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::ThumbnailFile - rubyXL 3.3.21</title>
7
+ <title>class RubyXL::ThumbnailFile - rubyXL 3.3.22</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::Top10 - rubyXL 3.3.21</title>
7
+ <title>class RubyXL::Top10 - rubyXL 3.3.22</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::VMLDrawingFile - rubyXL 3.3.21</title>
7
+ <title>class RubyXL::VMLDrawingFile - rubyXL 3.3.22</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.21</title>
7
+ <title>class RubyXL::Variant - rubyXL 3.3.22</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.21</title>
7
+ <title>class RubyXL::Vector - rubyXL 3.3.22</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.21</title>
7
+ <title>class RubyXL::VectorValue - rubyXL 3.3.22</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.21</title>
7
+ <title>class RubyXL::VisualProperties - rubyXL 3.3.22</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.21</title>
7
+ <title>class RubyXL::WebPublishObject - rubyXL 3.3.22</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.21</title>
7
+ <title>class RubyXL::WebPublishObjects - rubyXL 3.3.22</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.21</title>
7
+ <title>class RubyXL::WebPublishingItem - rubyXL 3.3.22</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.21</title>
7
+ <title>class RubyXL::WebPublishingItems - rubyXL 3.3.22</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.21</title>
7
+ <title>class RubyXL::WebPublishingProperties - rubyXL 3.3.22</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.21</title>
7
+ <title>class RubyXL::Workbook - rubyXL 3.3.22</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.21</title>
7
+ <title>module RubyXL::WorkbookConvenienceMethods - rubyXL 3.3.22</title>
8
8
 
9
9
  <script type="text/javascript">
10
10
  var rdoc_rel_prefix = "../";
@@ -115,6 +115,8 @@
115
115
 
116
116
  <li ><a href="#method-i-modify_border">#modify_border</a>
117
117
 
118
+ <li ><a href="#method-i-modify_border_color">#modify_border_color</a>
119
+
118
120
  <li ><a href="#method-i-modify_fill">#modify_fill</a>
119
121
 
120
122
  <li ><a href="#method-i-register_new_fill">#register_new_fill</a>
@@ -1062,6 +1064,48 @@
1062
1064
 
1063
1065
 
1064
1066
 
1067
+ </div>
1068
+
1069
+
1070
+ <div id="method-i-modify_border_color" class="method-detail ">
1071
+
1072
+ <div class="method-heading">
1073
+ <span class="method-name">modify_border_color</span><span
1074
+ class="method-args">(style_index, direction, color)</span>
1075
+
1076
+ <span class="method-click-advice">click to toggle source</span>
1077
+
1078
+ </div>
1079
+
1080
+
1081
+ <div class="method-description">
1082
+
1083
+
1084
+
1085
+
1086
+
1087
+
1088
+ <div class="method-source-code" id="modify_border_color-source">
1089
+ <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 181</span>
1090
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">modify_border_color</span>(<span class="ruby-identifier">style_index</span>, <span class="ruby-identifier">direction</span>, <span class="ruby-identifier">color</span>)
1091
+ <span class="ruby-identifier">xf</span> = <span class="ruby-identifier">cell_xfs</span>[<span class="ruby-identifier">style_index</span> <span class="ruby-operator">||</span> <span class="ruby-value">0</span>].<span class="ruby-identifier">dup</span>
1092
+ <span class="ruby-identifier">new_border</span> = <span class="ruby-identifier">borders</span>[<span class="ruby-identifier">xf</span>.<span class="ruby-identifier">border_id</span> <span class="ruby-operator">||</span> <span class="ruby-value">0</span>].<span class="ruby-identifier">dup</span>
1093
+ <span class="ruby-identifier">new_border</span>.<span class="ruby-identifier">set_edge_color</span>(<span class="ruby-identifier">direction</span>, <span class="ruby-identifier">color</span>)
1094
+
1095
+ <span class="ruby-identifier">xf</span>.<span class="ruby-identifier">border_id</span> = <span class="ruby-identifier">borders</span>.<span class="ruby-identifier">find_index</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">x</span><span class="ruby-operator">|</span> <span class="ruby-identifier">x</span> <span class="ruby-operator">==</span> <span class="ruby-identifier">new_border</span> } <span class="ruby-comment"># Reuse existing border, if it exists</span>
1096
+ <span class="ruby-identifier">xf</span>.<span class="ruby-identifier">border_id</span> <span class="ruby-operator">||=</span> <span class="ruby-identifier">borders</span>.<span class="ruby-identifier">size</span> <span class="ruby-comment"># If this border has never existed before, add it to collection.</span>
1097
+ <span class="ruby-identifier">borders</span>[<span class="ruby-identifier">xf</span>.<span class="ruby-identifier">border_id</span>] = <span class="ruby-identifier">new_border</span>
1098
+ <span class="ruby-identifier">xf</span>.<span class="ruby-identifier">apply_border</span> = <span class="ruby-keyword">true</span>
1099
+
1100
+ <span class="ruby-identifier">register_new_xf</span>(<span class="ruby-identifier">xf</span>)
1101
+ <span class="ruby-keyword">end</span></pre>
1102
+ </div>
1103
+
1104
+ </div>
1105
+
1106
+
1107
+
1108
+
1065
1109
  </div>
1066
1110
 
1067
1111
 
@@ -4,7 +4,7 @@
4
4
  <head>
5
5
  <meta charset="UTF-8">
6
6
 
7
- <title>class RubyXL::WorkbookProperties - rubyXL 3.3.21</title>
7
+ <title>class RubyXL::WorkbookProperties - rubyXL 3.3.22</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.21</title>
7
+ <title>class RubyXL::WorkbookProtection - rubyXL 3.3.22</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.21</title>
7
+ <title>class RubyXL::WorkbookRoot - rubyXL 3.3.22</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::WorkbookView - rubyXL 3.3.21</title>
7
+ <title>class RubyXL::WorkbookView - rubyXL 3.3.22</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.21</title>
7
+ <title>class RubyXL::WorkbookViews - rubyXL 3.3.22</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.21</title>
7
+ <title>class RubyXL::Worksheet - rubyXL 3.3.22</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.21</title>
7
+ <title>module RubyXL::WorksheetConvenienceMethods - rubyXL 3.3.22</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_border_color">#change_column_border_color</a>
73
+
72
74
  <li ><a href="#method-i-change_column_fill">#change_column_fill</a>
73
75
 
74
76
  <li ><a href="#method-i-change_column_font">#change_column_font</a>
@@ -99,6 +101,8 @@
99
101
 
100
102
  <li ><a href="#method-i-change_row_border">#change_row_border</a>
101
103
 
104
+ <li ><a href="#method-i-change_row_border_color">#change_row_border_color</a>
105
+
102
106
  <li ><a href="#method-i-change_row_fill">#change_row_fill</a>
103
107
 
104
108
  <li ><a href="#method-i-change_row_font">#change_row_font</a>
@@ -137,6 +141,8 @@
137
141
 
138
142
  <li ><a href="#method-i-get_column_border">#get_column_border</a>
139
143
 
144
+ <li ><a href="#method-i-get_column_border_color">#get_column_border_color</a>
145
+
140
146
  <li ><a href="#method-i-get_column_fill">#get_column_fill</a>
141
147
 
142
148
  <li ><a href="#method-i-get_column_font_color">#get_column_font_color</a>
@@ -153,6 +159,8 @@
153
159
 
154
160
  <li ><a href="#method-i-get_row_border">#get_row_border</a>
155
161
 
162
+ <li ><a href="#method-i-get_row_border_color">#get_row_border_color</a>
163
+
156
164
  <li ><a href="#method-i-get_row_fill">#get_row_fill</a>
157
165
 
158
166
  <li ><a href="#method-i-get_row_font_color">#get_row_font_color</a>
@@ -288,7 +296,7 @@
288
296
 
289
297
 
290
298
  <div class="method-source-code" id="change_column_alignment-source">
291
- <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 733</span>
299
+ <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 785</span>
292
300
  <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>)
293
301
  <span class="ruby-identifier">validate_workbook</span>
294
302
  <span class="ruby-identifier">ensure_cell_exists</span>(<span class="ruby-value">0</span>, <span class="ruby-identifier">column_index</span>)
@@ -332,7 +340,7 @@
332
340
 
333
341
 
334
342
  <div class="method-source-code" id="change_column_bold-source">
335
- <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 679</span>
343
+ <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 718</span>
336
344
  <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>)
337
345
  <span class="ruby-identifier">xf</span> = <span class="ruby-identifier">get_col_xf</span>(<span class="ruby-identifier">column_index</span>)
338
346
  <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>
@@ -368,7 +376,7 @@
368
376
 
369
377
 
370
378
  <div class="method-source-code" id="change_column_border-source">
371
- <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 708</span>
379
+ <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 747</span>
372
380
  <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>)
373
381
  <span class="ruby-identifier">validate_workbook</span>
374
382
  <span class="ruby-identifier">ensure_cell_exists</span>(<span class="ruby-value">0</span>, <span class="ruby-identifier">column_index</span>)
@@ -387,6 +395,48 @@
387
395
 
388
396
 
389
397
 
398
+ </div>
399
+
400
+
401
+ <div id="method-i-change_column_border_color" class="method-detail ">
402
+
403
+ <div class="method-heading">
404
+ <span class="method-name">change_column_border_color</span><span
405
+ class="method-args">(column_index, direction, color)</span>
406
+
407
+ <span class="method-click-advice">click to toggle source</span>
408
+
409
+ </div>
410
+
411
+
412
+ <div class="method-description">
413
+
414
+
415
+
416
+
417
+
418
+
419
+ <div class="method-source-code" id="change_column_border_color-source">
420
+ <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 759</span>
421
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">change_column_border_color</span>(<span class="ruby-identifier">column_index</span>, <span class="ruby-identifier">direction</span>, <span class="ruby-identifier">color</span>)
422
+ <span class="ruby-identifier">validate_workbook</span>
423
+ <span class="ruby-identifier">ensure_cell_exists</span>(<span class="ruby-value">0</span>, <span class="ruby-identifier">column_index</span>)
424
+ <span class="ruby-constant">Color</span>.<span class="ruby-identifier">validate_color</span>(<span class="ruby-identifier">color</span>)
425
+
426
+ <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-ivar">@workbook</span>.<span class="ruby-identifier">modify_border_color</span>(<span class="ruby-identifier">get_col_style</span>(<span class="ruby-identifier">column_index</span>), <span class="ruby-identifier">direction</span>, <span class="ruby-identifier">color</span>)
427
+
428
+ <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>
429
+ <span class="ruby-identifier">c</span> = <span class="ruby-identifier">row</span>.<span class="ruby-identifier">cells</span>[<span class="ruby-identifier">column_index</span>]
430
+ <span class="ruby-identifier">c</span>.<span class="ruby-identifier">change_border_color</span>(<span class="ruby-identifier">direction</span>, <span class="ruby-identifier">color</span>) <span class="ruby-keyword">unless</span> <span class="ruby-identifier">c</span>.<span class="ruby-identifier">nil?</span>
431
+ }
432
+ <span class="ruby-keyword">end</span></pre>
433
+ </div>
434
+
435
+ </div>
436
+
437
+
438
+
439
+
390
440
  </div>
391
441
 
392
442
 
@@ -409,7 +459,7 @@
409
459
 
410
460
 
411
461
  <div class="method-source-code" id="change_column_fill-source">
412
- <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 496</span>
462
+ <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 515</span>
413
463
  <span class="ruby-keyword">def</span> <span class="ruby-identifier">change_column_fill</span>(<span class="ruby-identifier">column_index</span>, <span class="ruby-identifier">color_code</span> = <span class="ruby-string">&#39;ffffff&#39;</span>)
414
464
  <span class="ruby-identifier">validate_workbook</span>
415
465
  <span class="ruby-constant">RubyXL</span><span class="ruby-operator">::</span><span class="ruby-constant">Color</span>.<span class="ruby-identifier">validate_color</span>(<span class="ruby-identifier">color_code</span>)
@@ -452,7 +502,7 @@ change font, called from each separate font mutator method</p>
452
502
 
453
503
 
454
504
  <div class="method-source-code" id="change_column_font-source">
455
- <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 636</span>
505
+ <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 675</span>
456
506
  <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>)
457
507
  <span class="ruby-identifier">validate_workbook</span>
458
508
  <span class="ruby-identifier">ensure_cell_exists</span>(<span class="ruby-value">0</span>, <span class="ruby-identifier">column_index</span>)
@@ -494,7 +544,7 @@ change font, called from each separate font mutator method</p>
494
544
 
495
545
 
496
546
  <div class="method-source-code" id="change_column_font_color-source">
497
- <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 663</span>
547
+ <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 702</span>
498
548
  <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">&#39;000000&#39;</span>)
499
549
  <span class="ruby-constant">Color</span>.<span class="ruby-identifier">validate_color</span>(<span class="ruby-identifier">font_color</span>)
500
550
 
@@ -532,7 +582,7 @@ change font, called from each separate font mutator method</p>
532
582
 
533
583
 
534
584
  <div class="method-source-code" id="change_column_font_name-source">
535
- <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 649</span>
585
+ <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 688</span>
536
586
  <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">&#39;Verdana&#39;</span>)
537
587
  <span class="ruby-identifier">xf</span> = <span class="ruby-identifier">get_col_xf</span>(<span class="ruby-identifier">column_index</span>)
538
588
  <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>
@@ -568,7 +618,7 @@ change font, called from each separate font mutator method</p>
568
618
 
569
619
 
570
620
  <div class="method-source-code" id="change_column_font_size-source">
571
- <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 656</span>
621
+ <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 695</span>
572
622
  <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>)
573
623
  <span class="ruby-identifier">xf</span> = <span class="ruby-identifier">get_col_xf</span>(<span class="ruby-identifier">column_index</span>)
574
624
  <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>
@@ -604,7 +654,7 @@ change font, called from each separate font mutator method</p>
604
654
 
605
655
 
606
656
  <div class="method-source-code" id="change_column_horizontal_alignment-source">
607
- <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 700</span>
657
+ <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 739</span>
608
658
  <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">&#39;center&#39;</span>)
609
659
  <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> }
610
660
  <span class="ruby-keyword">end</span></pre>
@@ -637,7 +687,7 @@ change font, called from each separate font mutator method</p>
637
687
 
638
688
 
639
689
  <div class="method-source-code" id="change_column_italics-source">
640
- <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 672</span>
690
+ <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 711</span>
641
691
  <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>)
642
692
  <span class="ruby-identifier">xf</span> = <span class="ruby-identifier">get_col_xf</span>(<span class="ruby-identifier">column_index</span>)
643
693
  <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>
@@ -673,7 +723,7 @@ change font, called from each separate font mutator method</p>
673
723
 
674
724
 
675
725
  <div class="method-source-code" id="change_column_strikethrough-source">
676
- <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 693</span>
726
+ <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 732</span>
677
727
  <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>)
678
728
  <span class="ruby-identifier">xf</span> = <span class="ruby-identifier">get_col_xf</span>(<span class="ruby-identifier">column_index</span>)
679
729
  <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>
@@ -709,7 +759,7 @@ change font, called from each separate font mutator method</p>
709
759
 
710
760
 
711
761
  <div class="method-source-code" id="change_column_underline-source">
712
- <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 686</span>
762
+ <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 725</span>
713
763
  <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>)
714
764
  <span class="ruby-identifier">xf</span> = <span class="ruby-identifier">get_col_xf</span>(<span class="ruby-identifier">column_index</span>)
715
765
  <span class="ruby-identifier">font</span> = <span class="ruby-ivar">@workbook</span>.<span class="ruby-identifier">fonts</span>[<span class="ruby-identifier">xf</span>.<span class="ruby-identifier">font_id</span>].<span class="ruby-identifier">dup</span>
@@ -745,7 +795,7 @@ change font, called from each separate font mutator method</p>
745
795
 
746
796
 
747
797
  <div class="method-source-code" id="change_column_vertical_alignment-source">
748
- <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 704</span>
798
+ <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 743</span>
749
799
  <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">&#39;center&#39;</span>)
750
800
  <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> }
751
801
  <span class="ruby-keyword">end</span></pre>
@@ -779,7 +829,7 @@ href="http://msdn.microsoft.com/en-us/library/documentformat.openxml.spreadsheet
779
829
 
780
830
 
781
831
  <div class="method-source-code" id="change_column_width-source">
782
- <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 479</span>
832
+ <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 498</span>
783
833
  <span class="ruby-keyword">def</span> <span class="ruby-identifier">change_column_width</span>(<span class="ruby-identifier">column_index</span>, <span class="ruby-identifier">width_in_chars</span> = <span class="ruby-constant">RubyXL</span><span class="ruby-operator">::</span><span class="ruby-constant">ColumnRange</span><span class="ruby-operator">::</span><span class="ruby-constant">DEFAULT_WIDTH</span>)
784
834
  <span class="ruby-identifier">change_column_width_raw</span>(<span class="ruby-identifier">column_index</span>, ((<span class="ruby-identifier">width_in_chars</span> <span class="ruby-operator">+</span> (<span class="ruby-value">5.0</span> <span class="ruby-operator">/</span> <span class="ruby-constant">RubyXL</span><span class="ruby-operator">::</span><span class="ruby-constant">Font</span><span class="ruby-operator">::</span><span class="ruby-constant">MAX_DIGIT_WIDTH</span>)) <span class="ruby-operator">*</span> <span class="ruby-value">256</span>).<span class="ruby-identifier">to_i</span> <span class="ruby-operator">/</span> <span class="ruby-value">256.0</span>)
785
835
  <span class="ruby-keyword">end</span></pre>
@@ -812,7 +862,7 @@ href="http://msdn.microsoft.com/en-us/library/documentformat.openxml.spreadsheet
812
862
 
813
863
 
814
864
  <div class="method-source-code" id="change_column_width_raw-source">
815
- <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 469</span>
865
+ <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 488</span>
816
866
  <span class="ruby-keyword">def</span> <span class="ruby-identifier">change_column_width_raw</span>(<span class="ruby-identifier">column_index</span>, <span class="ruby-identifier">width</span>)
817
867
  <span class="ruby-identifier">validate_workbook</span>
818
868
  <span class="ruby-identifier">ensure_cell_exists</span>(<span class="ruby-value">0</span>, <span class="ruby-identifier">column_index</span>)
@@ -849,7 +899,7 @@ href="http://msdn.microsoft.com/en-us/library/documentformat.openxml.spreadsheet
849
899
 
850
900
 
851
901
  <div class="method-source-code" id="change_row_alignment-source">
852
- <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 720</span>
902
+ <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 772</span>
853
903
  <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>)
854
904
  <span class="ruby-identifier">validate_workbook</span>
855
905
  <span class="ruby-identifier">validate_nonnegative</span>(<span class="ruby-identifier">row</span>)
@@ -891,7 +941,7 @@ href="http://msdn.microsoft.com/en-us/library/documentformat.openxml.spreadsheet
891
941
 
892
942
 
893
943
  <div class="method-source-code" id="change_row_bold-source">
894
- <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 604</span>
944
+ <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 643</span>
895
945
  <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>)
896
946
  <span class="ruby-identifier">ensure_cell_exists</span>(<span class="ruby-identifier">row</span>)
897
947
  <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>
@@ -927,7 +977,7 @@ href="http://msdn.microsoft.com/en-us/library/documentformat.openxml.spreadsheet
927
977
 
928
978
 
929
979
  <div class="method-source-code" id="change_row_border-source">
930
- <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 542</span>
980
+ <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 569</span>
931
981
  <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>)
932
982
  <span class="ruby-identifier">validate_workbook</span>
933
983
  <span class="ruby-identifier">ensure_cell_exists</span>(<span class="ruby-identifier">row</span>)
@@ -945,6 +995,47 @@ href="http://msdn.microsoft.com/en-us/library/documentformat.openxml.spreadsheet
945
995
 
946
996
 
947
997
 
998
+ </div>
999
+
1000
+
1001
+ <div id="method-i-change_row_border_color" class="method-detail ">
1002
+
1003
+ <div class="method-heading">
1004
+ <span class="method-name">change_row_border_color</span><span
1005
+ class="method-args">(row, direction, color = '000000')</span>
1006
+
1007
+ <span class="method-click-advice">click to toggle source</span>
1008
+
1009
+ </div>
1010
+
1011
+
1012
+ <div class="method-description">
1013
+
1014
+
1015
+
1016
+
1017
+
1018
+
1019
+ <div class="method-source-code" id="change_row_border_color-source">
1020
+ <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 580</span>
1021
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">change_row_border_color</span>(<span class="ruby-identifier">row</span>, <span class="ruby-identifier">direction</span>, <span class="ruby-identifier">color</span> = <span class="ruby-string">&#39;000000&#39;</span>)
1022
+ <span class="ruby-identifier">validate_workbook</span>
1023
+ <span class="ruby-identifier">ensure_cell_exists</span>(<span class="ruby-identifier">row</span>)
1024
+ <span class="ruby-constant">Color</span>.<span class="ruby-identifier">validate_color</span>(<span class="ruby-identifier">color</span>)
1025
+
1026
+ <span class="ruby-identifier">sheet_data</span>.<span class="ruby-identifier">rows</span>[<span class="ruby-identifier">row</span>].<span class="ruby-identifier">style_index</span> = <span class="ruby-ivar">@workbook</span>.<span class="ruby-identifier">modify_border_color</span>(<span class="ruby-identifier">get_row_style</span>(<span class="ruby-identifier">row</span>), <span class="ruby-identifier">direction</span>, <span class="ruby-identifier">color</span>)
1027
+
1028
+ <span class="ruby-identifier">sheet_data</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>
1029
+ <span class="ruby-identifier">c</span>.<span class="ruby-identifier">change_border_color</span>(<span class="ruby-identifier">direction</span>, <span class="ruby-identifier">color</span>) <span class="ruby-keyword">unless</span> <span class="ruby-identifier">c</span>.<span class="ruby-identifier">nil?</span>
1030
+ }
1031
+ <span class="ruby-keyword">end</span></pre>
1032
+ </div>
1033
+
1034
+ </div>
1035
+
1036
+
1037
+
1038
+
948
1039
  </div>
949
1040
 
950
1041
 
@@ -967,7 +1058,7 @@ href="http://msdn.microsoft.com/en-us/library/documentformat.openxml.spreadsheet
967
1058
 
968
1059
 
969
1060
  <div class="method-source-code" id="change_row_fill-source">
970
- <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 553</span>
1061
+ <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 592</span>
971
1062
  <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">&#39;ffffff&#39;</span>)
972
1063
  <span class="ruby-identifier">validate_workbook</span>
973
1064
  <span class="ruby-identifier">ensure_cell_exists</span>(<span class="ruby-identifier">row_index</span>)
@@ -1009,7 +1100,7 @@ change font, called from each separate font mutator method</p>
1009
1100
 
1010
1101
 
1011
1102
  <div class="method-source-code" id="change_row_font-source">
1012
- <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 565</span>
1103
+ <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 604</span>
1013
1104
  <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>)
1014
1105
  <span class="ruby-identifier">validate_workbook</span>
1015
1106
  <span class="ruby-identifier">ensure_cell_exists</span>(<span class="ruby-identifier">row_index</span>)
@@ -1048,7 +1139,7 @@ change font, called from each separate font mutator method</p>
1048
1139
 
1049
1140
 
1050
1141
  <div class="method-source-code" id="change_row_font_color-source">
1051
- <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 589</span>
1142
+ <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 628</span>
1052
1143
  <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">&#39;000000&#39;</span>)
1053
1144
  <span class="ruby-identifier">ensure_cell_exists</span>(<span class="ruby-identifier">row</span>)
1054
1145
  <span class="ruby-constant">Color</span>.<span class="ruby-identifier">validate_color</span>(<span class="ruby-identifier">font_color</span>)
@@ -1085,7 +1176,7 @@ change font, called from each separate font mutator method</p>
1085
1176
 
1086
1177
 
1087
1178
  <div class="method-source-code" id="change_row_font_name-source">
1088
- <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 575</span>
1179
+ <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 614</span>
1089
1180
  <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">&#39;Verdana&#39;</span>)
1090
1181
  <span class="ruby-identifier">ensure_cell_exists</span>(<span class="ruby-identifier">row</span>)
1091
1182
  <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>
@@ -1121,7 +1212,7 @@ change font, called from each separate font mutator method</p>
1121
1212
 
1122
1213
 
1123
1214
  <div class="method-source-code" id="change_row_font_size-source">
1124
- <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 582</span>
1215
+ <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 621</span>
1125
1216
  <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>)
1126
1217
  <span class="ruby-identifier">ensure_cell_exists</span>(<span class="ruby-identifier">row</span>)
1127
1218
  <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>
@@ -1157,7 +1248,7 @@ change font, called from each separate font mutator method</p>
1157
1248
 
1158
1249
 
1159
1250
  <div class="method-source-code" id="change_row_height-source">
1160
- <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 625</span>
1251
+ <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 664</span>
1161
1252
  <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>)
1162
1253
  <span class="ruby-identifier">validate_workbook</span>
1163
1254
  <span class="ruby-identifier">ensure_cell_exists</span>(<span class="ruby-identifier">row</span>)
@@ -1195,7 +1286,7 @@ change font, called from each separate font mutator method</p>
1195
1286
 
1196
1287
 
1197
1288
  <div class="method-source-code" id="change_row_horizontal_alignment-source">
1198
- <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 530</span>
1289
+ <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 557</span>
1199
1290
  <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">&#39;center&#39;</span>)
1200
1291
  <span class="ruby-identifier">validate_workbook</span>
1201
1292
  <span class="ruby-identifier">validate_nonnegative</span>(<span class="ruby-identifier">row</span>)
@@ -1230,7 +1321,7 @@ change font, called from each separate font mutator method</p>
1230
1321
 
1231
1322
 
1232
1323
  <div class="method-source-code" id="change_row_italics-source">
1233
- <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 597</span>
1324
+ <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 636</span>
1234
1325
  <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>)
1235
1326
  <span class="ruby-identifier">ensure_cell_exists</span>(<span class="ruby-identifier">row</span>)
1236
1327
  <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>
@@ -1266,7 +1357,7 @@ change font, called from each separate font mutator method</p>
1266
1357
 
1267
1358
 
1268
1359
  <div class="method-source-code" id="change_row_strikethrough-source">
1269
- <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 618</span>
1360
+ <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 657</span>
1270
1361
  <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>)
1271
1362
  <span class="ruby-identifier">ensure_cell_exists</span>(<span class="ruby-identifier">row</span>)
1272
1363
  <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>
@@ -1302,7 +1393,7 @@ change font, called from each separate font mutator method</p>
1302
1393
 
1303
1394
 
1304
1395
  <div class="method-source-code" id="change_row_underline-source">
1305
- <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 611</span>
1396
+ <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 650</span>
1306
1397
  <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>)
1307
1398
  <span class="ruby-identifier">ensure_cell_exists</span>(<span class="ruby-identifier">row</span>)
1308
1399
  <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>
@@ -1338,7 +1429,7 @@ change font, called from each separate font mutator method</p>
1338
1429
 
1339
1430
 
1340
1431
  <div class="method-source-code" id="change_row_vertical_alignment-source">
1341
- <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 536</span>
1432
+ <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 563</span>
1342
1433
  <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">&#39;center&#39;</span>)
1343
1434
  <span class="ruby-identifier">validate_workbook</span>
1344
1435
  <span class="ruby-identifier">validate_nonnegative</span>(<span class="ruby-identifier">row</span>)
@@ -1373,7 +1464,7 @@ change font, called from each separate font mutator method</p>
1373
1464
 
1374
1465
 
1375
1466
  <div class="method-source-code" id="column_font-source">
1376
- <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 517</span>
1467
+ <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 544</span>
1377
1468
  <span class="ruby-keyword">def</span> <span class="ruby-identifier">column_font</span>(<span class="ruby-identifier">col</span>)
1378
1469
  <span class="ruby-identifier">validate_workbook</span>
1379
1470
 
@@ -1410,7 +1501,7 @@ specified, method will shift column contents below the deleted cell upward</p>
1410
1501
 
1411
1502
 
1412
1503
  <div class="method-source-code" id="delete_cell-source">
1413
- <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 216</span>
1504
+ <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 228</span>
1414
1505
  <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>)
1415
1506
  <span class="ruby-identifier">validate_workbook</span>
1416
1507
  <span class="ruby-identifier">validate_nonnegative</span>(<span class="ruby-identifier">row_index</span>)
@@ -1464,7 +1555,7 @@ specified, method will shift column contents below the deleted cell upward</p>
1464
1555
 
1465
1556
 
1466
1557
  <div class="method-source-code" id="delete_column-source">
1467
- <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 325</span>
1558
+ <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 337</span>
1468
1559
  <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>)
1469
1560
  <span class="ruby-identifier">validate_workbook</span>
1470
1561
  <span class="ruby-identifier">validate_nonnegative</span>(<span class="ruby-identifier">column_index</span>)
@@ -1510,7 +1601,7 @@ specified, method will shift column contents below the deleted cell upward</p>
1510
1601
 
1511
1602
 
1512
1603
  <div class="method-source-code" id="delete_row-source">
1513
- <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 281</span>
1604
+ <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 293</span>
1514
1605
  <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>)
1515
1606
  <span class="ruby-identifier">validate_workbook</span>
1516
1607
  <span class="ruby-identifier">validate_nonnegative</span>(<span class="ruby-identifier">row_index</span>)
@@ -1554,7 +1645,7 @@ specified, method will shift column contents below the deleted cell upward</p>
1554
1645
 
1555
1646
 
1556
1647
  <div class="method-source-code" id="get_col_style-source">
1557
- <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 484</span>
1648
+ <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 503</span>
1558
1649
  <span class="ruby-keyword">def</span> <span class="ruby-identifier">get_col_style</span>(<span class="ruby-identifier">column_index</span>)
1559
1650
  <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>)
1560
1651
  (<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>
@@ -1588,7 +1679,7 @@ specified, method will shift column contents below the deleted cell upward</p>
1588
1679
 
1589
1680
 
1590
1681
  <div class="method-source-code" id="get_cols_style_index-source">
1591
- <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 410</span>
1682
+ <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 429</span>
1592
1683
  <span class="ruby-keyword">def</span> <span class="ruby-identifier">get_cols_style_index</span>(<span class="ruby-identifier">column_index</span>)
1593
1684
  <span class="ruby-identifier">validate_nonnegative</span>(<span class="ruby-identifier">column_index</span>)
1594
1685
  <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>)
@@ -1623,7 +1714,7 @@ specified, method will shift column contents below the deleted cell upward</p>
1623
1714
 
1624
1715
 
1625
1716
  <div class="method-source-code" id="get_column_alignment-source">
1626
- <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 523</span>
1717
+ <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 550</span>
1627
1718
  <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>)
1628
1719
  <span class="ruby-identifier">validate_workbook</span>
1629
1720
 
@@ -1659,7 +1750,7 @@ specified, method will shift column contents below the deleted cell upward</p>
1659
1750
 
1660
1751
 
1661
1752
  <div class="method-source-code" id="get_column_border-source">
1662
- <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 509</span>
1753
+ <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 528</span>
1663
1754
  <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>)
1664
1755
  <span class="ruby-identifier">validate_workbook</span>
1665
1756
 
@@ -1674,6 +1765,43 @@ specified, method will shift column contents below the deleted cell upward</p>
1674
1765
 
1675
1766
 
1676
1767
 
1768
+ </div>
1769
+
1770
+
1771
+ <div id="method-i-get_column_border_color" class="method-detail ">
1772
+
1773
+ <div class="method-heading">
1774
+ <span class="method-name">get_column_border_color</span><span
1775
+ class="method-args">(col, border_direction)</span>
1776
+
1777
+ <span class="method-click-advice">click to toggle source</span>
1778
+
1779
+ </div>
1780
+
1781
+
1782
+ <div class="method-description">
1783
+
1784
+
1785
+
1786
+
1787
+
1788
+
1789
+ <div class="method-source-code" id="get_column_border_color-source">
1790
+ <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 536</span>
1791
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">get_column_border_color</span>(<span class="ruby-identifier">col</span>, <span class="ruby-identifier">border_direction</span>)
1792
+ <span class="ruby-identifier">validate_workbook</span>
1793
+
1794
+ <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>)]
1795
+ <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>]
1796
+ <span class="ruby-identifier">border</span> <span class="ruby-operator">&amp;&amp;</span> <span class="ruby-identifier">border</span>.<span class="ruby-identifier">get_edge_color</span>(<span class="ruby-identifier">border_direction</span>)
1797
+ <span class="ruby-keyword">end</span></pre>
1798
+ </div>
1799
+
1800
+ </div>
1801
+
1802
+
1803
+
1804
+
1677
1805
  </div>
1678
1806
 
1679
1807
 
@@ -1696,7 +1824,7 @@ specified, method will shift column contents below the deleted cell upward</p>
1696
1824
 
1697
1825
 
1698
1826
  <div class="method-source-code" id="get_column_fill-source">
1699
- <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 489</span>
1827
+ <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 508</span>
1700
1828
  <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>)
1701
1829
  <span class="ruby-identifier">validate_workbook</span>
1702
1830
  <span class="ruby-identifier">validate_nonnegative</span>(<span class="ruby-identifier">col</span>)
@@ -1732,7 +1860,7 @@ specified, method will shift column contents below the deleted cell upward</p>
1732
1860
 
1733
1861
 
1734
1862
  <div class="method-source-code" id="get_column_font_color-source">
1735
- <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 426</span>
1863
+ <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 445</span>
1736
1864
  <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>)
1737
1865
  <span class="ruby-identifier">font</span> = <span class="ruby-identifier">column_font</span>(<span class="ruby-identifier">col</span>)
1738
1866
  <span class="ruby-identifier">font</span> <span class="ruby-operator">&amp;&amp;</span> (<span class="ruby-identifier">font</span>.<span class="ruby-identifier">get_rgb_color</span> <span class="ruby-operator">||</span> <span class="ruby-string">&#39;000000&#39;</span>)
@@ -1766,7 +1894,7 @@ specified, method will shift column contents below the deleted cell upward</p>
1766
1894
 
1767
1895
 
1768
1896
  <div class="method-source-code" id="get_column_font_name-source">
1769
- <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 416</span>
1897
+ <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 435</span>
1770
1898
  <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>)
1771
1899
  <span class="ruby-identifier">font</span> = <span class="ruby-identifier">column_font</span>(<span class="ruby-identifier">col</span>)
1772
1900
  <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>
@@ -1800,7 +1928,7 @@ specified, method will shift column contents below the deleted cell upward</p>
1800
1928
 
1801
1929
 
1802
1930
  <div class="method-source-code" id="get_column_font_size-source">
1803
- <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 421</span>
1931
+ <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 440</span>
1804
1932
  <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>)
1805
1933
  <span class="ruby-identifier">font</span> = <span class="ruby-identifier">column_font</span>(<span class="ruby-identifier">col</span>)
1806
1934
  <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>
@@ -1835,7 +1963,7 @@ href="http://msdn.microsoft.com/en-us/library/documentformat.openxml.spreadsheet
1835
1963
 
1836
1964
 
1837
1965
  <div class="method-source-code" id="get_column_width-source">
1838
- <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 462</span>
1966
+ <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 481</span>
1839
1967
  <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>)
1840
1968
  <span class="ruby-identifier">width</span> = <span class="ruby-identifier">get_column_width_raw</span>(<span class="ruby-identifier">column_index</span>)
1841
1969
  <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>
@@ -1870,7 +1998,7 @@ href="http://msdn.microsoft.com/en-us/library/documentformat.openxml.spreadsheet
1870
1998
 
1871
1999
 
1872
2000
  <div class="method-source-code" id="get_column_width_raw-source">
1873
- <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 452</span>
2001
+ <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 471</span>
1874
2002
  <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>)
1875
2003
  <span class="ruby-identifier">validate_workbook</span>
1876
2004
  <span class="ruby-identifier">validate_nonnegative</span>(<span class="ruby-identifier">column_index</span>)
@@ -1907,7 +2035,7 @@ href="http://msdn.microsoft.com/en-us/library/documentformat.openxml.spreadsheet
1907
2035
 
1908
2036
 
1909
2037
  <div class="method-source-code" id="get_row_alignment-source">
1910
- <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 399</span>
2038
+ <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 418</span>
1911
2039
  <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>)
1912
2040
  <span class="ruby-identifier">validate_workbook</span>
1913
2041
 
@@ -1947,7 +2075,7 @@ href="http://msdn.microsoft.com/en-us/library/documentformat.openxml.spreadsheet
1947
2075
 
1948
2076
 
1949
2077
  <div class="method-source-code" id="get_row_border-source">
1950
- <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 388</span>
2078
+ <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 400</span>
1951
2079
  <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>)
1952
2080
  <span class="ruby-identifier">validate_workbook</span>
1953
2081
 
@@ -1961,6 +2089,42 @@ href="http://msdn.microsoft.com/en-us/library/documentformat.openxml.spreadsheet
1961
2089
 
1962
2090
 
1963
2091
 
2092
+ </div>
2093
+
2094
+
2095
+ <div id="method-i-get_row_border_color" class="method-detail ">
2096
+
2097
+ <div class="method-heading">
2098
+ <span class="method-name">get_row_border_color</span><span
2099
+ class="method-args">(row, border_direction)</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_border_color-source">
2114
+ <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 407</span>
2115
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">get_row_border_color</span>(<span class="ruby-identifier">row</span>, <span class="ruby-identifier">border_direction</span>)
2116
+ <span class="ruby-identifier">validate_workbook</span>
2117
+
2118
+ <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>]
2119
+ <span class="ruby-identifier">border</span> <span class="ruby-operator">&amp;&amp;</span> <span class="ruby-identifier">border</span>.<span class="ruby-identifier">get_edge_color</span>(<span class="ruby-identifier">border_direction</span>)
2120
+ <span class="ruby-keyword">end</span></pre>
2121
+ </div>
2122
+
2123
+ </div>
2124
+
2125
+
2126
+
2127
+
1964
2128
  </div>
1965
2129
 
1966
2130
 
@@ -1983,7 +2147,7 @@ href="http://msdn.microsoft.com/en-us/library/documentformat.openxml.spreadsheet
1983
2147
 
1984
2148
 
1985
2149
  <div class="method-source-code" id="get_row_fill-source">
1986
- <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 347</span>
2150
+ <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 359</span>
1987
2151
  <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>)
1988
2152
  (<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>
1989
2153
  <span class="ruby-keyword">end</span></pre>
@@ -2016,7 +2180,7 @@ href="http://msdn.microsoft.com/en-us/library/documentformat.openxml.spreadsheet
2016
2180
 
2017
2181
 
2018
2182
  <div class="method-source-code" id="get_row_font_color-source">
2019
- <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 359</span>
2183
+ <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 371</span>
2020
2184
  <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>)
2021
2185
  <span class="ruby-identifier">font</span> = <span class="ruby-identifier">row_font</span>(<span class="ruby-identifier">row</span>)
2022
2186
  <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>
@@ -2051,7 +2215,7 @@ href="http://msdn.microsoft.com/en-us/library/documentformat.openxml.spreadsheet
2051
2215
 
2052
2216
 
2053
2217
  <div class="method-source-code" id="get_row_font_name-source">
2054
- <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 351</span>
2218
+ <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 363</span>
2055
2219
  <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>)
2056
2220
  (<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>
2057
2221
  <span class="ruby-keyword">end</span></pre>
@@ -2084,7 +2248,7 @@ href="http://msdn.microsoft.com/en-us/library/documentformat.openxml.spreadsheet
2084
2248
 
2085
2249
 
2086
2250
  <div class="method-source-code" id="get_row_font_size-source">
2087
- <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 355</span>
2251
+ <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 367</span>
2088
2252
  <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>)
2089
2253
  (<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>
2090
2254
  <span class="ruby-keyword">end</span></pre>
@@ -2117,7 +2281,7 @@ href="http://msdn.microsoft.com/en-us/library/documentformat.openxml.spreadsheet
2117
2281
 
2118
2282
 
2119
2283
  <div class="method-source-code" id="get_row_height-source">
2120
- <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 381</span>
2284
+ <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 393</span>
2121
2285
  <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>)
2122
2286
  <span class="ruby-identifier">validate_workbook</span>
2123
2287
  <span class="ruby-identifier">validate_nonnegative</span>(<span class="ruby-identifier">row</span>)
@@ -2153,7 +2317,7 @@ href="http://msdn.microsoft.com/en-us/library/documentformat.openxml.spreadsheet
2153
2317
 
2154
2318
 
2155
2319
  <div class="method-source-code" id="get_row_style-source">
2156
- <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 342</span>
2320
+ <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 354</span>
2157
2321
  <span class="ruby-keyword">def</span> <span class="ruby-identifier">get_row_style</span>(<span class="ruby-identifier">row_index</span>)
2158
2322
  <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>]
2159
2323
  (<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>
@@ -2187,7 +2351,7 @@ href="http://msdn.microsoft.com/en-us/library/documentformat.openxml.spreadsheet
2187
2351
 
2188
2352
 
2189
2353
  <div class="method-source-code" id="insert_cell-source">
2190
- <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 193</span>
2354
+ <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 205</span>
2191
2355
  <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>)
2192
2356
  <span class="ruby-identifier">validate_workbook</span>
2193
2357
  <span class="ruby-identifier">ensure_cell_exists</span>(<span class="ruby-identifier">row</span>, <span class="ruby-identifier">col</span>)
@@ -2238,7 +2402,7 @@ which reference cells which are being “pushed right”</p>
2238
2402
 
2239
2403
 
2240
2404
  <div class="method-source-code" id="insert_column-source">
2241
- <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 298</span>
2405
+ <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 310</span>
2242
2406
  <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>)
2243
2407
  <span class="ruby-identifier">validate_workbook</span>
2244
2408
  <span class="ruby-identifier">ensure_cell_exists</span>(<span class="ruby-value">0</span>, <span class="ruby-identifier">column_index</span>)
@@ -2296,7 +2460,7 @@ formulas which reference cells which are being “pushed down”</p>
2296
2460
 
2297
2461
 
2298
2462
  <div class="method-source-code" id="insert_row-source">
2299
- <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 243</span>
2463
+ <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 255</span>
2300
2464
  <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>)
2301
2465
  <span class="ruby-identifier">validate_workbook</span>
2302
2466
  <span class="ruby-identifier">ensure_cell_exists</span>(<span class="ruby-identifier">row_index</span>)
@@ -2363,7 +2527,7 @@ formulas which reference cells which are being “pushed down”</p>
2363
2527
 
2364
2528
 
2365
2529
  <div class="method-source-code" id="is_column_bolded-source">
2366
- <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 436</span>
2530
+ <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 455</span>
2367
2531
  <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>)
2368
2532
  <span class="ruby-identifier">font</span> = <span class="ruby-identifier">column_font</span>(<span class="ruby-identifier">col</span>)
2369
2533
  <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>
@@ -2397,7 +2561,7 @@ formulas which reference cells which are being “pushed down”</p>
2397
2561
 
2398
2562
 
2399
2563
  <div class="method-source-code" id="is_column_italicized-source">
2400
- <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 431</span>
2564
+ <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 450</span>
2401
2565
  <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>)
2402
2566
  <span class="ruby-identifier">font</span> = <span class="ruby-identifier">column_font</span>(<span class="ruby-identifier">col</span>)
2403
2567
  <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>
@@ -2431,7 +2595,7 @@ formulas which reference cells which are being “pushed down”</p>
2431
2595
 
2432
2596
 
2433
2597
  <div class="method-source-code" id="is_column_struckthrough-source">
2434
- <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 446</span>
2598
+ <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 465</span>
2435
2599
  <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>)
2436
2600
  <span class="ruby-identifier">font</span> = <span class="ruby-identifier">column_font</span>(<span class="ruby-identifier">col</span>)
2437
2601
  <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>
@@ -2465,7 +2629,7 @@ formulas which reference cells which are being “pushed down”</p>
2465
2629
 
2466
2630
 
2467
2631
  <div class="method-source-code" id="is_column_underlined-source">
2468
- <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 441</span>
2632
+ <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 460</span>
2469
2633
  <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>)
2470
2634
  <span class="ruby-identifier">font</span> = <span class="ruby-identifier">column_font</span>(<span class="ruby-identifier">col</span>)
2471
2635
  <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>
@@ -2499,7 +2663,7 @@ formulas which reference cells which are being “pushed down”</p>
2499
2663
 
2500
2664
 
2501
2665
  <div class="method-source-code" id="is_row_bolded-source">
2502
- <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 369</span>
2666
+ <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 381</span>
2503
2667
  <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>)
2504
2668
  (<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>
2505
2669
  <span class="ruby-keyword">end</span></pre>
@@ -2532,7 +2696,7 @@ formulas which reference cells which are being “pushed down”</p>
2532
2696
 
2533
2697
 
2534
2698
  <div class="method-source-code" id="is_row_italicized-source">
2535
- <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 365</span>
2699
+ <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 377</span>
2536
2700
  <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>)
2537
2701
  (<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>
2538
2702
  <span class="ruby-keyword">end</span></pre>
@@ -2565,7 +2729,7 @@ formulas which reference cells which are being “pushed down”</p>
2565
2729
 
2566
2730
 
2567
2731
  <div class="method-source-code" id="is_row_struckthrough-source">
2568
- <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 377</span>
2732
+ <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 389</span>
2569
2733
  <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>)
2570
2734
  (<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>
2571
2735
  <span class="ruby-keyword">end</span></pre>
@@ -2598,7 +2762,7 @@ formulas which reference cells which are being “pushed down”</p>
2598
2762
 
2599
2763
 
2600
2764
  <div class="method-source-code" id="is_row_underlined-source">
2601
- <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 373</span>
2765
+ <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 385</span>
2602
2766
  <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>)
2603
2767
  (<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>
2604
2768
  <span class="ruby-keyword">end</span></pre>
@@ -2631,7 +2795,7 @@ formulas which reference cells which are being “pushed down”</p>
2631
2795
 
2632
2796
 
2633
2797
  <div class="method-source-code" id="merge_cells-source">
2634
- <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 749</span>
2798
+ <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 801</span>
2635
2799
  <span class="ruby-keyword">def</span> <span class="ruby-identifier">merge_cells</span>(<span class="ruby-identifier">start_row</span>, <span class="ruby-identifier">start_col</span>, <span class="ruby-identifier">end_row</span>, <span class="ruby-identifier">end_col</span>)
2636
2800
  <span class="ruby-identifier">validate_workbook</span>
2637
2801
 
@@ -2668,7 +2832,7 @@ formulas which reference cells which are being “pushed down”</p>
2668
2832
 
2669
2833
 
2670
2834
  <div class="method-source-code" id="row_font-source">
2671
- <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 395</span>
2835
+ <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 414</span>
2672
2836
  <span class="ruby-keyword">def</span> <span class="ruby-identifier">row_font</span>(<span class="ruby-identifier">row</span>)
2673
2837
  (<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>
2674
2838
  <span class="ruby-keyword">end</span></pre>