rubyXL 2.1.1 → 2.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (234) hide show
  1. data/VERSION +1 -1
  2. data/lib/rubyXL.rb +1 -0
  3. data/lib/rubyXL/objects/border.rb +3 -4
  4. data/lib/rubyXL/objects/calculation_chain.rb +1 -1
  5. data/lib/rubyXL/objects/cell_style.rb +3 -4
  6. data/lib/rubyXL/objects/chartsheet.rb +78 -0
  7. data/lib/rubyXL/objects/container_nodes.rb +2 -3
  8. data/lib/rubyXL/objects/data_validation.rb +5 -10
  9. data/lib/rubyXL/objects/document_properties.rb +1 -1
  10. data/lib/rubyXL/objects/fill.rb +3 -6
  11. data/lib/rubyXL/objects/filters.rb +120 -0
  12. data/lib/rubyXL/objects/formula.rb +2 -2
  13. data/lib/rubyXL/objects/ooxml_object.rb +116 -56
  14. data/lib/rubyXL/objects/relationships.rb +5 -1
  15. data/lib/rubyXL/objects/shared_strings.rb +1 -1
  16. data/lib/rubyXL/objects/sheet_common.rb +50 -0
  17. data/lib/rubyXL/objects/sheet_data.rb +6 -1
  18. data/lib/rubyXL/objects/simple_types.rb +78 -0
  19. data/lib/rubyXL/objects/stylesheet.rb +15 -3
  20. data/lib/rubyXL/objects/text.rb +4 -5
  21. data/lib/rubyXL/objects/workbook.rb +151 -26
  22. data/lib/rubyXL/objects/worksheet.rb +329 -107
  23. data/lib/rubyXL/parser.rb +12 -11
  24. data/lib/rubyXL/workbook.rb +3 -2
  25. data/rdoc/README_rdoc.html +404 -0
  26. data/rdoc/RubyXL.html +337 -0
  27. data/rdoc/RubyXL/AExtensionStorageArea.html +105 -0
  28. data/rdoc/RubyXL/Alignment.html +108 -0
  29. data/rdoc/RubyXL/AlternateContent.html +105 -0
  30. data/rdoc/RubyXL/AutoFilter.html +105 -0
  31. data/rdoc/RubyXL/AutoFilterColumn.html +105 -0
  32. data/rdoc/RubyXL/BooleanNode.html +105 -0
  33. data/rdoc/RubyXL/BooleanValue.html +105 -0
  34. data/rdoc/RubyXL/Border.html +105 -0
  35. data/rdoc/RubyXL/BorderContainer.html +105 -0
  36. data/rdoc/RubyXL/BorderEdge.html +156 -0
  37. data/rdoc/RubyXL/Break.html +105 -0
  38. data/rdoc/RubyXL/BreakList.html +105 -0
  39. data/rdoc/RubyXL/CalculationChain.html +159 -0
  40. data/rdoc/RubyXL/CalculationChainCell.html +108 -0
  41. data/rdoc/RubyXL/CalculationProperties.html +105 -0
  42. data/rdoc/RubyXL/Cell.html +428 -0
  43. data/rdoc/RubyXL/CellSmartTag.html +105 -0
  44. data/rdoc/RubyXL/CellSmartTagContainer.html +105 -0
  45. data/rdoc/RubyXL/CellSmartTagProperty.html +105 -0
  46. data/rdoc/RubyXL/CellStyle.html +108 -0
  47. data/rdoc/RubyXL/CellStyleContainer.html +105 -0
  48. data/rdoc/RubyXL/CellStyleXFContainer.html +105 -0
  49. data/rdoc/RubyXL/CellValue.html +108 -0
  50. data/rdoc/RubyXL/CellWatch.html +105 -0
  51. data/rdoc/RubyXL/CellWatchContainer.html +105 -0
  52. data/rdoc/RubyXL/CellXFContainer.html +105 -0
  53. data/rdoc/RubyXL/Chartsheet.html +105 -0
  54. data/rdoc/RubyXL/ChartsheetPageSetup.html +105 -0
  55. data/rdoc/RubyXL/ChartsheetProperties.html +108 -0
  56. data/rdoc/RubyXL/ChartsheetProtection.html +108 -0
  57. data/rdoc/RubyXL/ChartsheetView.html +105 -0
  58. data/rdoc/RubyXL/ChartsheetViewContainer.html +105 -0
  59. data/rdoc/RubyXL/Color.html +163 -0
  60. data/rdoc/RubyXL/ColorFilter.html +105 -0
  61. data/rdoc/RubyXL/ColorScale.html +105 -0
  62. data/rdoc/RubyXL/ColorScheme.html +105 -0
  63. data/rdoc/RubyXL/ColorSet.html +105 -0
  64. data/rdoc/RubyXL/Colors.html +105 -0
  65. data/rdoc/RubyXL/ColumnRange.html +233 -0
  66. data/rdoc/RubyXL/ColumnRanges.html +275 -0
  67. data/rdoc/RubyXL/ConditionalFormatValue.html +105 -0
  68. data/rdoc/RubyXL/ConditionalFormatting.html +105 -0
  69. data/rdoc/RubyXL/ConditionalFormattingRule.html +105 -0
  70. data/rdoc/RubyXL/CustomFilter.html +105 -0
  71. data/rdoc/RubyXL/CustomFilterContainer.html +105 -0
  72. data/rdoc/RubyXL/CustomProperty.html +105 -0
  73. data/rdoc/RubyXL/CustomPropertyContainer.html +105 -0
  74. data/rdoc/RubyXL/CustomSheetView.html +105 -0
  75. data/rdoc/RubyXL/CustomSheetViews.html +105 -0
  76. data/rdoc/RubyXL/CustomWorkbookView.html +105 -0
  77. data/rdoc/RubyXL/CustomWorkbookViewContainer.html +105 -0
  78. data/rdoc/RubyXL/DXF.html +105 -0
  79. data/rdoc/RubyXL/DXFs.html +105 -0
  80. data/rdoc/RubyXL/DataBar.html +105 -0
  81. data/rdoc/RubyXL/DataConsolidate.html +105 -0
  82. data/rdoc/RubyXL/DataConsolidationReference.html +105 -0
  83. data/rdoc/RubyXL/DataConsolidationReferences.html +105 -0
  84. data/rdoc/RubyXL/DataValidation.html +108 -0
  85. data/rdoc/RubyXL/DataValidations.html +105 -0
  86. data/rdoc/RubyXL/DateGroupItem.html +108 -0
  87. data/rdoc/RubyXL/DefinedName.html +105 -0
  88. data/rdoc/RubyXL/DefinedNames.html +105 -0
  89. data/rdoc/RubyXL/DocumentProperties.html +271 -0
  90. data/rdoc/RubyXL/DynamicFilter.html +105 -0
  91. data/rdoc/RubyXL/EmbeddedControl.html +105 -0
  92. data/rdoc/RubyXL/EmbeddedControlContainer.html +105 -0
  93. data/rdoc/RubyXL/Extension.html +228 -0
  94. data/rdoc/RubyXL/ExtensionStorageArea.html +108 -0
  95. data/rdoc/RubyXL/ExternalReference.html +105 -0
  96. data/rdoc/RubyXL/ExternalReferences.html +105 -0
  97. data/rdoc/RubyXL/FieldItem.html +105 -0
  98. data/rdoc/RubyXL/FileRecoveryProperties.html +105 -0
  99. data/rdoc/RubyXL/FileSharing.html +108 -0
  100. data/rdoc/RubyXL/FileVersion.html +108 -0
  101. data/rdoc/RubyXL/Fill.html +105 -0
  102. data/rdoc/RubyXL/FillContainer.html +105 -0
  103. data/rdoc/RubyXL/FilterContainer.html +105 -0
  104. data/rdoc/RubyXL/FloatNode.html +105 -0
  105. data/rdoc/RubyXL/FloatValue.html +105 -0
  106. data/rdoc/RubyXL/Font.html +655 -0
  107. data/rdoc/RubyXL/FontContainer.html +105 -0
  108. data/rdoc/RubyXL/FontScheme.html +105 -0
  109. data/rdoc/RubyXL/FormatScheme.html +105 -0
  110. data/rdoc/RubyXL/Formula.html +108 -0
  111. data/rdoc/RubyXL/FunctionGroup.html +105 -0
  112. data/rdoc/RubyXL/FunctionGroupContainer.html +105 -0
  113. data/rdoc/RubyXL/GenericStorage.html +344 -0
  114. data/rdoc/RubyXL/GradientFill.html +105 -0
  115. data/rdoc/RubyXL/HeaderFooterSettings.html +105 -0
  116. data/rdoc/RubyXL/Hyperlink.html +105 -0
  117. data/rdoc/RubyXL/HyperlinkContainer.html +105 -0
  118. data/rdoc/RubyXL/IconFilter.html +105 -0
  119. data/rdoc/RubyXL/IconSet.html +105 -0
  120. data/rdoc/RubyXL/IgnoredError.html +105 -0
  121. data/rdoc/RubyXL/IgnoredErrorContainer.html +105 -0
  122. data/rdoc/RubyXL/IndexedColorContainer.html +105 -0
  123. data/rdoc/RubyXL/InputCells.html +105 -0
  124. data/rdoc/RubyXL/IntegerNode.html +105 -0
  125. data/rdoc/RubyXL/IntegerValue.html +105 -0
  126. data/rdoc/RubyXL/LegacyCell.html +1498 -0
  127. data/rdoc/RubyXL/LegacyWorkbook.html +1283 -0
  128. data/rdoc/RubyXL/LegacyWorksheet.html +3291 -0
  129. data/rdoc/RubyXL/MRUColorContainer.html +105 -0
  130. data/rdoc/RubyXL/MergedCell.html +105 -0
  131. data/rdoc/RubyXL/MergedCells.html +105 -0
  132. data/rdoc/RubyXL/NumFmt.html +105 -0
  133. data/rdoc/RubyXL/NumberFormat.html +160 -0
  134. data/rdoc/RubyXL/NumberFormatContainer.html +173 -0
  135. data/rdoc/RubyXL/OLEObject.html +105 -0
  136. data/rdoc/RubyXL/OLEObjects.html +105 -0
  137. data/rdoc/RubyXL/OLESize.html +105 -0
  138. data/rdoc/RubyXL/OOXMLObject.html +862 -0
  139. data/rdoc/RubyXL/OOXMLTopLevelObject.html +105 -0
  140. data/rdoc/RubyXL/OutlineProperties.html +108 -0
  141. data/rdoc/RubyXL/PageMargins.html +105 -0
  142. data/rdoc/RubyXL/PageSetup.html +105 -0
  143. data/rdoc/RubyXL/PageSetupProperties.html +108 -0
  144. data/rdoc/RubyXL/Pane.html +105 -0
  145. data/rdoc/RubyXL/Parser.html +348 -0
  146. data/rdoc/RubyXL/PatternFill.html +105 -0
  147. data/rdoc/RubyXL/PhoneticProperties.html +105 -0
  148. data/rdoc/RubyXL/PhoneticRun.html +105 -0
  149. data/rdoc/RubyXL/PivotArea.html +105 -0
  150. data/rdoc/RubyXL/PivotCache.html +105 -0
  151. data/rdoc/RubyXL/PivotCaches.html +105 -0
  152. data/rdoc/RubyXL/PivotReference.html +105 -0
  153. data/rdoc/RubyXL/PivotReferenceContainer.html +105 -0
  154. data/rdoc/RubyXL/PivotTableSelection.html +105 -0
  155. data/rdoc/RubyXL/PrintOptions.html +105 -0
  156. data/rdoc/RubyXL/ProtectedRange.html +105 -0
  157. data/rdoc/RubyXL/ProtectedRanges.html +105 -0
  158. data/rdoc/RubyXL/Protection.html +105 -0
  159. data/rdoc/RubyXL/RID.html +105 -0
  160. data/rdoc/RubyXL/RawOOXML.html +225 -0
  161. data/rdoc/RubyXL/Reference.html +642 -0
  162. data/rdoc/RubyXL/Relationship.html +105 -0
  163. data/rdoc/RubyXL/RichText.html +105 -0
  164. data/rdoc/RubyXL/RichTextRun.html +105 -0
  165. data/rdoc/RubyXL/Row.html +105 -0
  166. data/rdoc/RubyXL/RunProperties.html +108 -0
  167. data/rdoc/RubyXL/Scenario.html +105 -0
  168. data/rdoc/RubyXL/ScenarioContainer.html +105 -0
  169. data/rdoc/RubyXL/Selection.html +105 -0
  170. data/rdoc/RubyXL/SharedStringsTable.html +397 -0
  171. data/rdoc/RubyXL/Sheet.html +105 -0
  172. data/rdoc/RubyXL/SheetCalculationProperties.html +105 -0
  173. data/rdoc/RubyXL/SheetData.html +105 -0
  174. data/rdoc/RubyXL/Sheets.html +105 -0
  175. data/rdoc/RubyXL/SmartTagContainer.html +105 -0
  176. data/rdoc/RubyXL/SmartTagProperties.html +105 -0
  177. data/rdoc/RubyXL/SmartTagType.html +105 -0
  178. data/rdoc/RubyXL/SmartTagTypeContainer.html +105 -0
  179. data/rdoc/RubyXL/SortCondition.html +105 -0
  180. data/rdoc/RubyXL/SortState.html +105 -0
  181. data/rdoc/RubyXL/Sqref.html +199 -0
  182. data/rdoc/RubyXL/Stop.html +108 -0
  183. data/rdoc/RubyXL/StringNode.html +105 -0
  184. data/rdoc/RubyXL/StringValue.html +105 -0
  185. data/rdoc/RubyXL/Stylesheet.html +105 -0
  186. data/rdoc/RubyXL/TableParts.html +105 -0
  187. data/rdoc/RubyXL/TableStyle.html +105 -0
  188. data/rdoc/RubyXL/TableStyles.html +105 -0
  189. data/rdoc/RubyXL/Text.html +195 -0
  190. data/rdoc/RubyXL/Theme.html +105 -0
  191. data/rdoc/RubyXL/ThemeElements.html +105 -0
  192. data/rdoc/RubyXL/Top10.html +105 -0
  193. data/rdoc/RubyXL/Variant.html +108 -0
  194. data/rdoc/RubyXL/Vector.html +105 -0
  195. data/rdoc/RubyXL/VectorValue.html +105 -0
  196. data/rdoc/RubyXL/WebPublishObject.html +105 -0
  197. data/rdoc/RubyXL/WebPublishObjectContainer.html +105 -0
  198. data/rdoc/RubyXL/WebPublishingItem.html +108 -0
  199. data/rdoc/RubyXL/WebPublishingItemContainer.html +105 -0
  200. data/rdoc/RubyXL/WebPublishingProperties.html +105 -0
  201. data/rdoc/RubyXL/Workbook.html +105 -0
  202. data/rdoc/RubyXL/WorkbookProperties.html +108 -0
  203. data/rdoc/RubyXL/WorkbookProtection.html +105 -0
  204. data/rdoc/RubyXL/WorkbookRelationships.html +316 -0
  205. data/rdoc/RubyXL/WorkbookView.html +105 -0
  206. data/rdoc/RubyXL/WorkbookViews.html +105 -0
  207. data/rdoc/RubyXL/Worksheet.html +105 -0
  208. data/rdoc/RubyXL/WorksheetDimensions.html +105 -0
  209. data/rdoc/RubyXL/WorksheetFormatProperties.html +105 -0
  210. data/rdoc/RubyXL/WorksheetProperties.html +108 -0
  211. data/rdoc/RubyXL/WorksheetProtection.html +105 -0
  212. data/rdoc/RubyXL/WorksheetView.html +105 -0
  213. data/rdoc/RubyXL/WorksheetViews.html +105 -0
  214. data/rdoc/RubyXL/Writer.html +98 -0
  215. data/rdoc/RubyXL/Writer/ContentTypesWriter.html +289 -0
  216. data/rdoc/RubyXL/Writer/CoreWriter.html +210 -0
  217. data/rdoc/RubyXL/Writer/GenericWriter.html +348 -0
  218. data/rdoc/RubyXL/Writer/RootRelsWriter.html +193 -0
  219. data/rdoc/RubyXL/Writer/StylesWriter.html +191 -0
  220. data/rdoc/RubyXL/Writer/ThemeWriter.html +511 -0
  221. data/rdoc/RubyXL/Writer/WorkbookWriter.html +249 -0
  222. data/rdoc/RubyXL/Writer/WorksheetWriter.html +236 -0
  223. data/rdoc/RubyXL/XF.html +105 -0
  224. data/rdoc/created.rid +24 -21
  225. data/rdoc/index.html +216 -0
  226. data/rdoc/js/search_index.js +1 -1
  227. data/rdoc/table_of_contents.html +1496 -0
  228. data/rubyXL.gemspec +211 -4
  229. data/spec/lib/parser_spec.rb +18 -6
  230. data/test/input/.gitkeep +0 -0
  231. data/test/output/.gitkeep +0 -0
  232. data/test/test_parse_write.rb +15 -0
  233. metadata +211 -4
  234. data/lib/rubyXL/objects/sheet_view.rb +0 -71
@@ -0,0 +1,105 @@
1
+ <!DOCTYPE html>
2
+
3
+ <html>
4
+ <head>
5
+ <meta charset="UTF-8">
6
+
7
+ <title>class RubyXL::IntegerValue - rubyXL 2.1.3</title>
8
+
9
+ <link href="../fonts.css" rel="stylesheet">
10
+ <link href="../rdoc.css" rel="stylesheet">
11
+
12
+ <script type="text/javascript">
13
+ var rdoc_rel_prefix = "../";
14
+ </script>
15
+
16
+ <script src="../js/jquery.js"></script>
17
+ <script src="../js/navigation.js"></script>
18
+ <script src="../js/search_index.js"></script>
19
+ <script src="../js/search.js"></script>
20
+ <script src="../js/searcher.js"></script>
21
+ <script src="../js/darkfish.js"></script>
22
+
23
+
24
+ <body id="top" role="document" class="class">
25
+ <nav role="navigation">
26
+ <div id="project-navigation">
27
+ <div id="home-section" role="region" title="Quick navigation" class="nav-section">
28
+ <h2>
29
+ <a href="../index.html" rel="home">Home</a>
30
+ </h2>
31
+
32
+ <div id="table-of-contents-navigation">
33
+ <a href="../table_of_contents.html#pages">Pages</a>
34
+ <a href="../table_of_contents.html#classes">Classes</a>
35
+ <a href="../table_of_contents.html#methods">Methods</a>
36
+ </div>
37
+ </div>
38
+
39
+ <div id="search-section" role="search" class="project-section initially-hidden">
40
+ <form action="#" method="get" accept-charset="utf-8">
41
+ <div id="search-field-wrapper">
42
+ <input id="search-field" role="combobox" aria-label="Search"
43
+ aria-autocomplete="list" aria-controls="search-results"
44
+ type="text" name="search" placeholder="Search" spellcheck="false"
45
+ title="Type to search, Up and Down to navigate, Enter to load">
46
+ </div>
47
+
48
+ <ul id="search-results" aria-label="Search Results"
49
+ aria-busy="false" aria-expanded="false"
50
+ aria-atomic="false" class="initially-hidden"></ul>
51
+ </form>
52
+ </div>
53
+
54
+ </div>
55
+
56
+
57
+
58
+ <div id="class-metadata">
59
+
60
+ <div id="parent-class-section" class="nav-section">
61
+ <h3>Parent</h3>
62
+
63
+
64
+ <p class="link">OOXMLObject
65
+
66
+ </div>
67
+
68
+
69
+
70
+
71
+ </div>
72
+ </nav>
73
+
74
+ <main role="main" aria-labelledby="class-RubyXL::IntegerValue">
75
+ <h1 id="class-RubyXL::IntegerValue" class="class">
76
+ class RubyXL::IntegerValue
77
+ </h1>
78
+
79
+ <section class="description">
80
+
81
+ </section>
82
+
83
+
84
+
85
+
86
+ <section id="5Buntitled-5D" class="documentation-section">
87
+
88
+
89
+
90
+
91
+
92
+
93
+
94
+
95
+
96
+ </section>
97
+ </main>
98
+
99
+
100
+ <footer id="validator-badges" role="contentinfo">
101
+ <p><a href="http://validator.w3.org/check/referer">Validate</a>
102
+ <p>Generated by <a href="http://rdoc.rubyforge.org">RDoc</a> 4.1.1.
103
+ <p>Based on <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
104
+ </footer>
105
+
@@ -0,0 +1,1498 @@
1
+ <!DOCTYPE html>
2
+
3
+ <html>
4
+ <head>
5
+ <meta charset="UTF-8">
6
+
7
+ <title>module RubyXL::LegacyCell - rubyXL 2.1.3</title>
8
+
9
+ <link href="../fonts.css" rel="stylesheet">
10
+ <link href="../rdoc.css" rel="stylesheet">
11
+
12
+ <script type="text/javascript">
13
+ var rdoc_rel_prefix = "../";
14
+ </script>
15
+
16
+ <script src="../js/jquery.js"></script>
17
+ <script src="../js/navigation.js"></script>
18
+ <script src="../js/search_index.js"></script>
19
+ <script src="../js/search.js"></script>
20
+ <script src="../js/searcher.js"></script>
21
+ <script src="../js/darkfish.js"></script>
22
+
23
+
24
+ <body id="top" role="document" class="module">
25
+ <nav role="navigation">
26
+ <div id="project-navigation">
27
+ <div id="home-section" role="region" title="Quick navigation" class="nav-section">
28
+ <h2>
29
+ <a href="../index.html" rel="home">Home</a>
30
+ </h2>
31
+
32
+ <div id="table-of-contents-navigation">
33
+ <a href="../table_of_contents.html#pages">Pages</a>
34
+ <a href="../table_of_contents.html#classes">Classes</a>
35
+ <a href="../table_of_contents.html#methods">Methods</a>
36
+ </div>
37
+ </div>
38
+
39
+ <div id="search-section" role="search" class="project-section initially-hidden">
40
+ <form action="#" method="get" accept-charset="utf-8">
41
+ <div id="search-field-wrapper">
42
+ <input id="search-field" role="combobox" aria-label="Search"
43
+ aria-autocomplete="list" aria-controls="search-results"
44
+ type="text" name="search" placeholder="Search" spellcheck="false"
45
+ title="Type to search, Up and Down to navigate, Enter to load">
46
+ </div>
47
+
48
+ <ul id="search-results" aria-label="Search Results"
49
+ aria-busy="false" aria-expanded="false"
50
+ aria-atomic="false" class="initially-hidden"></ul>
51
+ </form>
52
+ </div>
53
+
54
+ </div>
55
+
56
+
57
+
58
+ <div id="class-metadata">
59
+
60
+
61
+
62
+
63
+ <!-- Method Quickref -->
64
+ <div id="method-list-section" class="nav-section">
65
+ <h3>Methods</h3>
66
+
67
+ <ul class="link-list" role="directory">
68
+
69
+ <li ><a href="#method-i-border_bottom">#border_bottom</a>
70
+
71
+ <li ><a href="#method-i-border_diagonal">#border_diagonal</a>
72
+
73
+ <li ><a href="#method-i-border_left">#border_left</a>
74
+
75
+ <li ><a href="#method-i-border_right">#border_right</a>
76
+
77
+ <li ><a href="#method-i-border_top">#border_top</a>
78
+
79
+ <li ><a href="#method-i-change_border_bottom">#change_border_bottom</a>
80
+
81
+ <li ><a href="#method-i-change_border_diagonal">#change_border_diagonal</a>
82
+
83
+ <li ><a href="#method-i-change_border_left">#change_border_left</a>
84
+
85
+ <li ><a href="#method-i-change_border_right">#change_border_right</a>
86
+
87
+ <li ><a href="#method-i-change_border_top">#change_border_top</a>
88
+
89
+ <li ><a href="#method-i-change_contents">#change_contents</a>
90
+
91
+ <li ><a href="#method-i-change_fill">#change_fill</a>
92
+
93
+ <li ><a href="#method-i-change_font_bold">#change_font_bold</a>
94
+
95
+ <li ><a href="#method-i-change_font_color">#change_font_color</a>
96
+
97
+ <li ><a href="#method-i-change_font_italics">#change_font_italics</a>
98
+
99
+ <li ><a href="#method-i-change_font_name">#change_font_name</a>
100
+
101
+ <li ><a href="#method-i-change_font_size">#change_font_size</a>
102
+
103
+ <li ><a href="#method-i-change_font_strikethrough">#change_font_strikethrough</a>
104
+
105
+ <li ><a href="#method-i-change_font_underline">#change_font_underline</a>
106
+
107
+ <li ><a href="#method-i-change_horizontal_alignment">#change_horizontal_alignment</a>
108
+
109
+ <li ><a href="#method-i-change_text_wrap">#change_text_wrap</a>
110
+
111
+ <li ><a href="#method-i-change_vertical_alignment">#change_vertical_alignment</a>
112
+
113
+ <li ><a href="#method-i-fill_color">#fill_color</a>
114
+
115
+ <li ><a href="#method-i-font_color">#font_color</a>
116
+
117
+ <li ><a href="#method-i-font_name">#font_name</a>
118
+
119
+ <li ><a href="#method-i-font_size">#font_size</a>
120
+
121
+ <li ><a href="#method-i-horizontal_alignment">#horizontal_alignment</a>
122
+
123
+ <li ><a href="#method-i-inspect">#inspect</a>
124
+
125
+ <li ><a href="#method-i-is_bolded">#is_bolded</a>
126
+
127
+ <li ><a href="#method-i-is_date-3F">#is_date?</a>
128
+
129
+ <li ><a href="#method-i-is_italicized">#is_italicized</a>
130
+
131
+ <li ><a href="#method-i-is_struckthrough">#is_struckthrough</a>
132
+
133
+ <li ><a href="#method-i-is_underlined">#is_underlined</a>
134
+
135
+ <li ><a href="#method-i-text_wrap">#text_wrap</a>
136
+
137
+ <li ><a href="#method-i-vertical_alignment">#vertical_alignment</a>
138
+
139
+ <li ><a href="#method-i-workbook">#workbook</a>
140
+
141
+ </ul>
142
+ </div>
143
+
144
+ </div>
145
+ </nav>
146
+
147
+ <main role="main" aria-labelledby="module-RubyXL::LegacyCell">
148
+ <h1 id="module-RubyXL::LegacyCell" class="module">
149
+ module RubyXL::LegacyCell
150
+ </h1>
151
+
152
+ <section class="description">
153
+
154
+ </section>
155
+
156
+
157
+
158
+
159
+ <section id="5Buntitled-5D" class="documentation-section">
160
+
161
+
162
+
163
+
164
+
165
+ <section class="constants-list">
166
+ <header>
167
+ <h3>Constants</h3>
168
+ </header>
169
+ <dl>
170
+
171
+ <dt id="ERROR">ERROR
172
+
173
+ <dd>
174
+
175
+
176
+ <dt id="RAW_STRING">RAW_STRING
177
+
178
+ <dd>
179
+
180
+
181
+ <dt id="SHARED_STRING">SHARED_STRING
182
+
183
+ <dd>
184
+
185
+
186
+ </dl>
187
+ </section>
188
+
189
+
190
+
191
+ <section class="attribute-method-details" class="method-section">
192
+ <header>
193
+ <h3>Attributes</h3>
194
+ </header>
195
+
196
+
197
+ <div id="attribute-i-formula" class="method-detail">
198
+ <div class="method-heading attribute-method-heading">
199
+ <span class="method-name">formula</span><span
200
+ class="attribute-access-type">[RW]</span>
201
+ </div>
202
+
203
+ <div class="method-description">
204
+
205
+
206
+
207
+ </div>
208
+ </div>
209
+
210
+ <div id="attribute-i-worksheet" class="method-detail">
211
+ <div class="method-heading attribute-method-heading">
212
+ <span class="method-name">worksheet</span><span
213
+ class="attribute-access-type">[RW]</span>
214
+ </div>
215
+
216
+ <div class="method-description">
217
+
218
+
219
+
220
+ </div>
221
+ </div>
222
+
223
+ </section>
224
+
225
+
226
+
227
+ <section id="public-instance-5Buntitled-5D-method-details" class="method-section">
228
+ <header>
229
+ <h3>Public Instance Methods</h3>
230
+ </header>
231
+
232
+
233
+ <div id="method-i-border_bottom" class="method-detail ">
234
+
235
+ <div class="method-heading">
236
+ <span class="method-name">border_bottom</span><span
237
+ class="method-args">()</span>
238
+
239
+ <span class="method-click-advice">click to toggle source</span>
240
+
241
+ </div>
242
+
243
+
244
+ <div class="method-description">
245
+
246
+ <p>returns cell’s bottom border</p>
247
+
248
+
249
+
250
+
251
+ <div class="method-source-code" id="border_bottom-source">
252
+ <pre><span class="ruby-comment"># File lib/rubyXL/cell.rb, line 237</span>
253
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">border_bottom</span>()
254
+ <span class="ruby-keyword">return</span> <span class="ruby-identifier">get_border</span>(<span class="ruby-value">:bottom</span>)
255
+ <span class="ruby-keyword">end</span></pre>
256
+ </div>
257
+
258
+ </div>
259
+
260
+
261
+
262
+
263
+ </div>
264
+
265
+
266
+ <div id="method-i-border_diagonal" class="method-detail ">
267
+
268
+ <div class="method-heading">
269
+ <span class="method-name">border_diagonal</span><span
270
+ class="method-args">()</span>
271
+
272
+ <span class="method-click-advice">click to toggle source</span>
273
+
274
+ </div>
275
+
276
+
277
+ <div class="method-description">
278
+
279
+ <p>returns cell’s diagonal border</p>
280
+
281
+
282
+
283
+
284
+ <div class="method-source-code" id="border_diagonal-source">
285
+ <pre><span class="ruby-comment"># File lib/rubyXL/cell.rb, line 242</span>
286
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">border_diagonal</span>()
287
+ <span class="ruby-keyword">return</span> <span class="ruby-identifier">get_border</span>(<span class="ruby-value">:diagonal</span>)
288
+ <span class="ruby-keyword">end</span></pre>
289
+ </div>
290
+
291
+ </div>
292
+
293
+
294
+
295
+
296
+ </div>
297
+
298
+
299
+ <div id="method-i-border_left" class="method-detail ">
300
+
301
+ <div class="method-heading">
302
+ <span class="method-name">border_left</span><span
303
+ class="method-args">()</span>
304
+
305
+ <span class="method-click-advice">click to toggle source</span>
306
+
307
+ </div>
308
+
309
+
310
+ <div class="method-description">
311
+
312
+ <p>returns cell’s left border</p>
313
+
314
+
315
+
316
+
317
+ <div class="method-source-code" id="border_left-source">
318
+ <pre><span class="ruby-comment"># File lib/rubyXL/cell.rb, line 227</span>
319
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">border_left</span>()
320
+ <span class="ruby-keyword">return</span> <span class="ruby-identifier">get_border</span>(<span class="ruby-value">:left</span>)
321
+ <span class="ruby-keyword">end</span></pre>
322
+ </div>
323
+
324
+ </div>
325
+
326
+
327
+
328
+
329
+ </div>
330
+
331
+
332
+ <div id="method-i-border_right" class="method-detail ">
333
+
334
+ <div class="method-heading">
335
+ <span class="method-name">border_right</span><span
336
+ class="method-args">()</span>
337
+
338
+ <span class="method-click-advice">click to toggle source</span>
339
+
340
+ </div>
341
+
342
+
343
+ <div class="method-description">
344
+
345
+ <p>returns cell’s right border</p>
346
+
347
+
348
+
349
+
350
+ <div class="method-source-code" id="border_right-source">
351
+ <pre><span class="ruby-comment"># File lib/rubyXL/cell.rb, line 232</span>
352
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">border_right</span>()
353
+ <span class="ruby-keyword">return</span> <span class="ruby-identifier">get_border</span>(<span class="ruby-value">:right</span>)
354
+ <span class="ruby-keyword">end</span></pre>
355
+ </div>
356
+
357
+ </div>
358
+
359
+
360
+
361
+
362
+ </div>
363
+
364
+
365
+ <div id="method-i-border_top" class="method-detail ">
366
+
367
+ <div class="method-heading">
368
+ <span class="method-name">border_top</span><span
369
+ class="method-args">()</span>
370
+
371
+ <span class="method-click-advice">click to toggle source</span>
372
+
373
+ </div>
374
+
375
+
376
+ <div class="method-description">
377
+
378
+ <p>returns cell’s top border</p>
379
+
380
+
381
+
382
+
383
+ <div class="method-source-code" id="border_top-source">
384
+ <pre><span class="ruby-comment"># File lib/rubyXL/cell.rb, line 222</span>
385
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">border_top</span>()
386
+ <span class="ruby-keyword">return</span> <span class="ruby-identifier">get_border</span>(<span class="ruby-value">:top</span>)
387
+ <span class="ruby-keyword">end</span></pre>
388
+ </div>
389
+
390
+ </div>
391
+
392
+
393
+
394
+
395
+ </div>
396
+
397
+
398
+ <div id="method-i-change_border_bottom" class="method-detail ">
399
+
400
+ <div class="method-heading">
401
+ <span class="method-name">change_border_bottom</span><span
402
+ class="method-args">(weight='thin')</span>
403
+
404
+ <span class="method-click-advice">click to toggle source</span>
405
+
406
+ </div>
407
+
408
+
409
+ <div class="method-description">
410
+
411
+ <p>changes bottom border of cell</p>
412
+
413
+
414
+
415
+
416
+ <div class="method-source-code" id="change_border_bottom-source">
417
+ <pre><span class="ruby-comment"># File lib/rubyXL/cell.rb, line 131</span>
418
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">change_border_bottom</span>(<span class="ruby-identifier">weight</span>=<span class="ruby-string">'thin'</span>)
419
+ <span class="ruby-identifier">change_border</span>(<span class="ruby-value">:bottom</span>, <span class="ruby-identifier">weight</span>)
420
+ <span class="ruby-keyword">end</span></pre>
421
+ </div>
422
+
423
+ </div>
424
+
425
+
426
+
427
+
428
+ </div>
429
+
430
+
431
+ <div id="method-i-change_border_diagonal" class="method-detail ">
432
+
433
+ <div class="method-heading">
434
+ <span class="method-name">change_border_diagonal</span><span
435
+ class="method-args">(weight='thin')</span>
436
+
437
+ <span class="method-click-advice">click to toggle source</span>
438
+
439
+ </div>
440
+
441
+
442
+ <div class="method-description">
443
+
444
+ <p>changes diagonal border of cell</p>
445
+
446
+
447
+
448
+
449
+ <div class="method-source-code" id="change_border_diagonal-source">
450
+ <pre><span class="ruby-comment"># File lib/rubyXL/cell.rb, line 136</span>
451
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">change_border_diagonal</span>(<span class="ruby-identifier">weight</span>=<span class="ruby-string">'thin'</span>)
452
+ <span class="ruby-identifier">change_border</span>(<span class="ruby-value">:diagonal</span>, <span class="ruby-identifier">weight</span>)
453
+ <span class="ruby-keyword">end</span></pre>
454
+ </div>
455
+
456
+ </div>
457
+
458
+
459
+
460
+
461
+ </div>
462
+
463
+
464
+ <div id="method-i-change_border_left" class="method-detail ">
465
+
466
+ <div class="method-heading">
467
+ <span class="method-name">change_border_left</span><span
468
+ class="method-args">(weight='thin')</span>
469
+
470
+ <span class="method-click-advice">click to toggle source</span>
471
+
472
+ </div>
473
+
474
+
475
+ <div class="method-description">
476
+
477
+ <p>changes left border of cell</p>
478
+
479
+
480
+
481
+
482
+ <div class="method-source-code" id="change_border_left-source">
483
+ <pre><span class="ruby-comment"># File lib/rubyXL/cell.rb, line 121</span>
484
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">change_border_left</span>(<span class="ruby-identifier">weight</span>=<span class="ruby-string">'thin'</span>)
485
+ <span class="ruby-identifier">change_border</span>(<span class="ruby-value">:left</span>, <span class="ruby-identifier">weight</span>)
486
+ <span class="ruby-keyword">end</span></pre>
487
+ </div>
488
+
489
+ </div>
490
+
491
+
492
+
493
+
494
+ </div>
495
+
496
+
497
+ <div id="method-i-change_border_right" class="method-detail ">
498
+
499
+ <div class="method-heading">
500
+ <span class="method-name">change_border_right</span><span
501
+ class="method-args">(weight='thin')</span>
502
+
503
+ <span class="method-click-advice">click to toggle source</span>
504
+
505
+ </div>
506
+
507
+
508
+ <div class="method-description">
509
+
510
+ <p>changes right border of cell</p>
511
+
512
+
513
+
514
+
515
+ <div class="method-source-code" id="change_border_right-source">
516
+ <pre><span class="ruby-comment"># File lib/rubyXL/cell.rb, line 126</span>
517
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">change_border_right</span>(<span class="ruby-identifier">weight</span>=<span class="ruby-string">'thin'</span>)
518
+ <span class="ruby-identifier">change_border</span>(<span class="ruby-value">:right</span>, <span class="ruby-identifier">weight</span>)
519
+ <span class="ruby-keyword">end</span></pre>
520
+ </div>
521
+
522
+ </div>
523
+
524
+
525
+
526
+
527
+ </div>
528
+
529
+
530
+ <div id="method-i-change_border_top" class="method-detail ">
531
+
532
+ <div class="method-heading">
533
+ <span class="method-name">change_border_top</span><span
534
+ class="method-args">(weight='thin')</span>
535
+
536
+ <span class="method-click-advice">click to toggle source</span>
537
+
538
+ </div>
539
+
540
+
541
+ <div class="method-description">
542
+
543
+ <p>changes top border of cell</p>
544
+
545
+
546
+
547
+
548
+ <div class="method-source-code" id="change_border_top-source">
549
+ <pre><span class="ruby-comment"># File lib/rubyXL/cell.rb, line 116</span>
550
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">change_border_top</span>(<span class="ruby-identifier">weight</span>=<span class="ruby-string">'thin'</span>)
551
+ <span class="ruby-identifier">change_border</span>(<span class="ruby-value">:top</span>, <span class="ruby-identifier">weight</span>)
552
+ <span class="ruby-keyword">end</span></pre>
553
+ </div>
554
+
555
+ </div>
556
+
557
+
558
+
559
+
560
+ </div>
561
+
562
+
563
+ <div id="method-i-change_contents" class="method-detail ">
564
+
565
+ <div class="method-heading">
566
+ <span class="method-name">change_contents</span><span
567
+ class="method-args">(data, formula=nil)</span>
568
+
569
+ <span class="method-click-advice">click to toggle source</span>
570
+
571
+ </div>
572
+
573
+
574
+ <div class="method-description">
575
+
576
+ <p>changes contents of cell, with formula option</p>
577
+
578
+
579
+
580
+
581
+ <div class="method-source-code" id="change_contents-source">
582
+ <pre><span class="ruby-comment"># File lib/rubyXL/cell.rb, line 141</span>
583
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">change_contents</span>(<span class="ruby-identifier">data</span>, <span class="ruby-identifier">formula</span>=<span class="ruby-keyword">nil</span>)
584
+ <span class="ruby-identifier">validate_worksheet</span>
585
+ <span class="ruby-keyword">self</span>.<span class="ruby-identifier">datatype</span> = <span class="ruby-constant">RAW_STRING</span>
586
+
587
+ <span class="ruby-keyword">case</span> <span class="ruby-identifier">data</span>
588
+ <span class="ruby-keyword">when</span> <span class="ruby-constant">Date</span> <span class="ruby-keyword">then</span> <span class="ruby-identifier">data</span> = <span class="ruby-identifier">workbook</span>.<span class="ruby-identifier">date_to_num</span>(<span class="ruby-identifier">data</span>)
589
+ <span class="ruby-keyword">when</span> <span class="ruby-constant">Integer</span>, <span class="ruby-constant">Float</span> <span class="ruby-keyword">then</span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier">datatype</span> = <span class="ruby-string">''</span>
590
+ <span class="ruby-keyword">end</span>
591
+
592
+ <span class="ruby-keyword">self</span>.<span class="ruby-identifier">raw_value</span> = <span class="ruby-identifier">data</span>
593
+ <span class="ruby-ivar">@formula</span> = <span class="ruby-identifier">formula</span>
594
+ <span class="ruby-keyword">end</span></pre>
595
+ </div>
596
+
597
+ </div>
598
+
599
+
600
+
601
+
602
+ </div>
603
+
604
+
605
+ <div id="method-i-change_fill" class="method-detail ">
606
+
607
+ <div class="method-heading">
608
+ <span class="method-name">change_fill</span><span
609
+ class="method-args">(rgb='ffffff')</span>
610
+
611
+ <span class="method-click-advice">click to toggle source</span>
612
+
613
+ </div>
614
+
615
+
616
+ <div class="method-description">
617
+
618
+ <p>changes fill color of cell</p>
619
+
620
+
621
+
622
+
623
+ <div class="method-source-code" id="change_fill-source">
624
+ <pre><span class="ruby-comment"># File lib/rubyXL/cell.rb, line 20</span>
625
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">change_fill</span>(<span class="ruby-identifier">rgb</span>=<span class="ruby-string">'ffffff'</span>)
626
+ <span class="ruby-identifier">validate_worksheet</span>
627
+ <span class="ruby-constant">Color</span>.<span class="ruby-identifier">validate_color</span>(<span class="ruby-identifier">rgb</span>)
628
+ <span class="ruby-keyword">self</span>.<span class="ruby-identifier">style_index</span> = <span class="ruby-identifier">workbook</span>.<span class="ruby-identifier">modify_fill</span>(<span class="ruby-keyword">self</span>.<span class="ruby-identifier">style_index</span>,<span class="ruby-identifier">rgb</span>)
629
+ <span class="ruby-keyword">end</span></pre>
630
+ </div>
631
+
632
+ </div>
633
+
634
+
635
+
636
+
637
+ </div>
638
+
639
+
640
+ <div id="method-i-change_font_bold" class="method-detail ">
641
+
642
+ <div class="method-heading">
643
+ <span class="method-name">change_font_bold</span><span
644
+ class="method-args">(bolded=false)</span>
645
+
646
+ <span class="method-click-advice">click to toggle source</span>
647
+
648
+ </div>
649
+
650
+
651
+ <div class="method-description">
652
+
653
+ <p>Changes font bold settings of cell</p>
654
+
655
+
656
+
657
+
658
+ <div class="method-source-code" id="change_font_bold-source">
659
+ <pre><span class="ruby-comment"># File lib/rubyXL/cell.rb, line 65</span>
660
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">change_font_bold</span>(<span class="ruby-identifier">bolded</span>=<span class="ruby-keyword">false</span>)
661
+ <span class="ruby-identifier">validate_worksheet</span>
662
+
663
+ <span class="ruby-identifier">font</span> = <span class="ruby-identifier">get_cell_font</span>.<span class="ruby-identifier">dup</span>
664
+ <span class="ruby-identifier">font</span>.<span class="ruby-identifier">set_bold</span>(<span class="ruby-identifier">bolded</span>)
665
+ <span class="ruby-identifier">update_font_references</span>(<span class="ruby-identifier">font</span>)
666
+ <span class="ruby-keyword">end</span></pre>
667
+ </div>
668
+
669
+ </div>
670
+
671
+
672
+
673
+
674
+ </div>
675
+
676
+
677
+ <div id="method-i-change_font_color" class="method-detail ">
678
+
679
+ <div class="method-heading">
680
+ <span class="method-name">change_font_color</span><span
681
+ class="method-args">(font_color='000000')</span>
682
+
683
+ <span class="method-click-advice">click to toggle source</span>
684
+
685
+ </div>
686
+
687
+
688
+ <div class="method-description">
689
+
690
+ <p>Changes font color of cell</p>
691
+
692
+
693
+
694
+
695
+ <div class="method-source-code" id="change_font_color-source">
696
+ <pre><span class="ruby-comment"># File lib/rubyXL/cell.rb, line 46</span>
697
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">change_font_color</span>(<span class="ruby-identifier">font_color</span>=<span class="ruby-string">'000000'</span>)
698
+ <span class="ruby-identifier">validate_worksheet</span>
699
+ <span class="ruby-constant">Color</span>.<span class="ruby-identifier">validate_color</span>(<span class="ruby-identifier">font_color</span>)
700
+
701
+ <span class="ruby-identifier">font</span> = <span class="ruby-identifier">get_cell_font</span>.<span class="ruby-identifier">dup</span>
702
+ <span class="ruby-identifier">font</span>.<span class="ruby-identifier">set_rgb_color</span>(<span class="ruby-identifier">font_color</span>)
703
+ <span class="ruby-identifier">update_font_references</span>(<span class="ruby-identifier">font</span>)
704
+ <span class="ruby-keyword">end</span></pre>
705
+ </div>
706
+
707
+ </div>
708
+
709
+
710
+
711
+
712
+ </div>
713
+
714
+
715
+ <div id="method-i-change_font_italics" class="method-detail ">
716
+
717
+ <div class="method-heading">
718
+ <span class="method-name">change_font_italics</span><span
719
+ class="method-args">(italicized=false)</span>
720
+
721
+ <span class="method-click-advice">click to toggle source</span>
722
+
723
+ </div>
724
+
725
+
726
+ <div class="method-description">
727
+
728
+ <p>Changes font italics settings of cell</p>
729
+
730
+
731
+
732
+
733
+ <div class="method-source-code" id="change_font_italics-source">
734
+ <pre><span class="ruby-comment"># File lib/rubyXL/cell.rb, line 56</span>
735
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">change_font_italics</span>(<span class="ruby-identifier">italicized</span>=<span class="ruby-keyword">false</span>)
736
+ <span class="ruby-identifier">validate_worksheet</span>
737
+
738
+ <span class="ruby-identifier">font</span> = <span class="ruby-identifier">get_cell_font</span>.<span class="ruby-identifier">dup</span>
739
+ <span class="ruby-identifier">font</span>.<span class="ruby-identifier">set_italic</span>(<span class="ruby-identifier">italicized</span>)
740
+ <span class="ruby-identifier">update_font_references</span>(<span class="ruby-identifier">font</span>)
741
+ <span class="ruby-keyword">end</span></pre>
742
+ </div>
743
+
744
+ </div>
745
+
746
+
747
+
748
+
749
+ </div>
750
+
751
+
752
+ <div id="method-i-change_font_name" class="method-detail ">
753
+
754
+ <div class="method-heading">
755
+ <span class="method-name">change_font_name</span><span
756
+ class="method-args">(new_font_name = 'Verdana')</span>
757
+
758
+ <span class="method-click-advice">click to toggle source</span>
759
+
760
+ </div>
761
+
762
+
763
+ <div class="method-description">
764
+
765
+ <p>Changes font name of cell</p>
766
+
767
+
768
+
769
+
770
+ <div class="method-source-code" id="change_font_name-source">
771
+ <pre><span class="ruby-comment"># File lib/rubyXL/cell.rb, line 27</span>
772
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">change_font_name</span>(<span class="ruby-identifier">new_font_name</span> = <span class="ruby-string">'Verdana'</span>)
773
+ <span class="ruby-identifier">validate_worksheet</span>
774
+
775
+ <span class="ruby-identifier">font</span> = <span class="ruby-identifier">get_cell_font</span>.<span class="ruby-identifier">dup</span>
776
+ <span class="ruby-identifier">font</span>.<span class="ruby-identifier">set_name</span>(<span class="ruby-identifier">new_font_name</span>)
777
+ <span class="ruby-identifier">update_font_references</span>(<span class="ruby-identifier">font</span>)
778
+ <span class="ruby-keyword">end</span></pre>
779
+ </div>
780
+
781
+ </div>
782
+
783
+
784
+
785
+
786
+ </div>
787
+
788
+
789
+ <div id="method-i-change_font_size" class="method-detail ">
790
+
791
+ <div class="method-heading">
792
+ <span class="method-name">change_font_size</span><span
793
+ class="method-args">(font_size=10)</span>
794
+
795
+ <span class="method-click-advice">click to toggle source</span>
796
+
797
+ </div>
798
+
799
+
800
+ <div class="method-description">
801
+
802
+ <p>Changes font size of cell</p>
803
+
804
+
805
+
806
+
807
+ <div class="method-source-code" id="change_font_size-source">
808
+ <pre><span class="ruby-comment"># File lib/rubyXL/cell.rb, line 36</span>
809
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">change_font_size</span>(<span class="ruby-identifier">font_size</span>=<span class="ruby-value">10</span>)
810
+ <span class="ruby-identifier">validate_worksheet</span>
811
+ <span class="ruby-identifier">raise</span> <span class="ruby-string">'Argument must be a number'</span> <span class="ruby-keyword">unless</span> <span class="ruby-identifier">font_size</span>.<span class="ruby-identifier">is_a?</span>(<span class="ruby-constant">Integer</span>) <span class="ruby-operator">||</span> <span class="ruby-identifier">font_size</span>.<span class="ruby-identifier">is_a?</span>(<span class="ruby-constant">Float</span>)
812
+
813
+ <span class="ruby-identifier">font</span> = <span class="ruby-identifier">get_cell_font</span>.<span class="ruby-identifier">dup</span>
814
+ <span class="ruby-identifier">font</span>.<span class="ruby-identifier">set_size</span>(<span class="ruby-identifier">font_size</span>)
815
+ <span class="ruby-identifier">update_font_references</span>(<span class="ruby-identifier">font</span>)
816
+ <span class="ruby-keyword">end</span></pre>
817
+ </div>
818
+
819
+ </div>
820
+
821
+
822
+
823
+
824
+ </div>
825
+
826
+
827
+ <div id="method-i-change_font_strikethrough" class="method-detail ">
828
+
829
+ <div class="method-heading">
830
+ <span class="method-name">change_font_strikethrough</span><span
831
+ class="method-args">(struckthrough=false)</span>
832
+
833
+ <span class="method-click-advice">click to toggle source</span>
834
+
835
+ </div>
836
+
837
+
838
+ <div class="method-description">
839
+
840
+
841
+
842
+
843
+
844
+
845
+ <div class="method-source-code" id="change_font_strikethrough-source">
846
+ <pre><span class="ruby-comment"># File lib/rubyXL/cell.rb, line 82</span>
847
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">change_font_strikethrough</span>(<span class="ruby-identifier">struckthrough</span>=<span class="ruby-keyword">false</span>)
848
+ <span class="ruby-identifier">validate_worksheet</span>
849
+
850
+ <span class="ruby-identifier">font</span> = <span class="ruby-identifier">get_cell_font</span>.<span class="ruby-identifier">dup</span>
851
+ <span class="ruby-identifier">font</span>.<span class="ruby-identifier">set_strikethrough</span>(<span class="ruby-identifier">struckthrough</span>)
852
+ <span class="ruby-identifier">update_font_references</span>(<span class="ruby-identifier">font</span>)
853
+ <span class="ruby-keyword">end</span></pre>
854
+ </div>
855
+
856
+ </div>
857
+
858
+
859
+
860
+
861
+ </div>
862
+
863
+
864
+ <div id="method-i-change_font_underline" class="method-detail ">
865
+
866
+ <div class="method-heading">
867
+ <span class="method-name">change_font_underline</span><span
868
+ class="method-args">(underlined=false)</span>
869
+
870
+ <span class="method-click-advice">click to toggle source</span>
871
+
872
+ </div>
873
+
874
+
875
+ <div class="method-description">
876
+
877
+ <p>Changes font underline settings of cell</p>
878
+
879
+
880
+
881
+
882
+ <div class="method-source-code" id="change_font_underline-source">
883
+ <pre><span class="ruby-comment"># File lib/rubyXL/cell.rb, line 74</span>
884
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">change_font_underline</span>(<span class="ruby-identifier">underlined</span>=<span class="ruby-keyword">false</span>)
885
+ <span class="ruby-identifier">validate_worksheet</span>
886
+
887
+ <span class="ruby-identifier">font</span> = <span class="ruby-identifier">get_cell_font</span>.<span class="ruby-identifier">dup</span>
888
+ <span class="ruby-identifier">font</span>.<span class="ruby-identifier">set_underline</span>(<span class="ruby-identifier">underlined</span>)
889
+ <span class="ruby-identifier">update_font_references</span>(<span class="ruby-identifier">font</span>)
890
+ <span class="ruby-keyword">end</span></pre>
891
+ </div>
892
+
893
+ </div>
894
+
895
+
896
+
897
+
898
+ </div>
899
+
900
+
901
+ <div id="method-i-change_horizontal_alignment" class="method-detail ">
902
+
903
+ <div class="method-heading">
904
+ <span class="method-name">change_horizontal_alignment</span><span
905
+ class="method-args">(alignment='center')</span>
906
+
907
+ <span class="method-click-advice">click to toggle source</span>
908
+
909
+ </div>
910
+
911
+
912
+ <div class="method-description">
913
+
914
+ <p>changes horizontal alignment of cell</p>
915
+
916
+
917
+
918
+
919
+ <div class="method-source-code" id="change_horizontal_alignment-source">
920
+ <pre><span class="ruby-comment"># File lib/rubyXL/cell.rb, line 98</span>
921
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">change_horizontal_alignment</span>(<span class="ruby-identifier">alignment</span>=<span class="ruby-string">'center'</span>)
922
+ <span class="ruby-identifier">validate_worksheet</span>
923
+ <span class="ruby-keyword">self</span>.<span class="ruby-identifier">style_index</span> = <span class="ruby-identifier">workbook</span>.<span class="ruby-identifier">modify_alignment</span>(<span class="ruby-keyword">self</span>.<span class="ruby-identifier">style_index</span>, <span class="ruby-keyword">true</span>, <span class="ruby-identifier">alignment</span>)
924
+ <span class="ruby-keyword">end</span></pre>
925
+ </div>
926
+
927
+ </div>
928
+
929
+
930
+
931
+
932
+ </div>
933
+
934
+
935
+ <div id="method-i-change_text_wrap" class="method-detail ">
936
+
937
+ <div class="method-heading">
938
+ <span class="method-name">change_text_wrap</span><span
939
+ class="method-args">(wrap=false)</span>
940
+
941
+ <span class="method-click-advice">click to toggle source</span>
942
+
943
+ </div>
944
+
945
+
946
+ <div class="method-description">
947
+
948
+ <p>changes wrap of cell</p>
949
+
950
+
951
+
952
+
953
+ <div class="method-source-code" id="change_text_wrap-source">
954
+ <pre><span class="ruby-comment"># File lib/rubyXL/cell.rb, line 110</span>
955
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">change_text_wrap</span>(<span class="ruby-identifier">wrap</span>=<span class="ruby-keyword">false</span>)
956
+ <span class="ruby-identifier">validate_worksheet</span>
957
+ <span class="ruby-keyword">self</span>.<span class="ruby-identifier">style_index</span> = <span class="ruby-identifier">workbook</span>.<span class="ruby-identifier">modify_text_wrap</span>(<span class="ruby-keyword">self</span>.<span class="ruby-identifier">style_index</span>, <span class="ruby-identifier">wrap</span>)
958
+ <span class="ruby-keyword">end</span></pre>
959
+ </div>
960
+
961
+ </div>
962
+
963
+
964
+
965
+
966
+ </div>
967
+
968
+
969
+ <div id="method-i-change_vertical_alignment" class="method-detail ">
970
+
971
+ <div class="method-heading">
972
+ <span class="method-name">change_vertical_alignment</span><span
973
+ class="method-args">(alignment='center')</span>
974
+
975
+ <span class="method-click-advice">click to toggle source</span>
976
+
977
+ </div>
978
+
979
+
980
+ <div class="method-description">
981
+
982
+ <p>changes vertical alignment of cell</p>
983
+
984
+
985
+
986
+
987
+ <div class="method-source-code" id="change_vertical_alignment-source">
988
+ <pre><span class="ruby-comment"># File lib/rubyXL/cell.rb, line 104</span>
989
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">change_vertical_alignment</span>(<span class="ruby-identifier">alignment</span>=<span class="ruby-string">'center'</span>)
990
+ <span class="ruby-identifier">validate_worksheet</span>
991
+ <span class="ruby-keyword">self</span>.<span class="ruby-identifier">style_index</span> = <span class="ruby-identifier">workbook</span>.<span class="ruby-identifier">modify_alignment</span>(<span class="ruby-keyword">self</span>.<span class="ruby-identifier">style_index</span>, <span class="ruby-keyword">false</span>, <span class="ruby-identifier">alignment</span>)
992
+ <span class="ruby-keyword">end</span></pre>
993
+ </div>
994
+
995
+ </div>
996
+
997
+
998
+
999
+
1000
+ </div>
1001
+
1002
+
1003
+ <div id="method-i-fill_color" class="method-detail ">
1004
+
1005
+ <div class="method-heading">
1006
+ <span class="method-name">fill_color</span><span
1007
+ class="method-args">()</span>
1008
+
1009
+ <span class="method-click-advice">click to toggle source</span>
1010
+
1011
+ </div>
1012
+
1013
+
1014
+ <div class="method-description">
1015
+
1016
+ <p>returns cell’s fill color</p>
1017
+
1018
+
1019
+
1020
+
1021
+ <div class="method-source-code" id="fill_color-source">
1022
+ <pre><span class="ruby-comment"># File lib/rubyXL/cell.rb, line 192</span>
1023
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">fill_color</span>()
1024
+ <span class="ruby-identifier">validate_worksheet</span>
1025
+ <span class="ruby-keyword">return</span> <span class="ruby-identifier">workbook</span>.<span class="ruby-identifier">get_fill_color</span>(<span class="ruby-identifier">get_cell_xf</span>)
1026
+ <span class="ruby-keyword">end</span></pre>
1027
+ </div>
1028
+
1029
+ </div>
1030
+
1031
+
1032
+
1033
+
1034
+ </div>
1035
+
1036
+
1037
+ <div id="method-i-font_color" class="method-detail ">
1038
+
1039
+ <div class="method-heading">
1040
+ <span class="method-name">font_color</span><span
1041
+ class="method-args">()</span>
1042
+
1043
+ <span class="method-click-advice">click to toggle source</span>
1044
+
1045
+ </div>
1046
+
1047
+
1048
+ <div class="method-description">
1049
+
1050
+
1051
+
1052
+
1053
+
1054
+
1055
+ <div class="method-source-code" id="font_color-source">
1056
+ <pre><span class="ruby-comment"># File lib/rubyXL/cell.rb, line 186</span>
1057
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">font_color</span>()
1058
+ <span class="ruby-identifier">validate_worksheet</span>
1059
+ <span class="ruby-identifier">get_cell_font</span>.<span class="ruby-identifier">get_rgb_color</span> <span class="ruby-operator">||</span> <span class="ruby-string">'000000'</span>
1060
+ <span class="ruby-keyword">end</span></pre>
1061
+ </div>
1062
+
1063
+ </div>
1064
+
1065
+
1066
+
1067
+
1068
+ </div>
1069
+
1070
+
1071
+ <div id="method-i-font_name" class="method-detail ">
1072
+
1073
+ <div class="method-heading">
1074
+ <span class="method-name">font_name</span><span
1075
+ class="method-args">()</span>
1076
+
1077
+ <span class="method-click-advice">click to toggle source</span>
1078
+
1079
+ </div>
1080
+
1081
+
1082
+ <div class="method-description">
1083
+
1084
+
1085
+
1086
+
1087
+
1088
+
1089
+ <div class="method-source-code" id="font_name-source">
1090
+ <pre><span class="ruby-comment"># File lib/rubyXL/cell.rb, line 176</span>
1091
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">font_name</span>()
1092
+ <span class="ruby-identifier">validate_worksheet</span>
1093
+ <span class="ruby-identifier">get_cell_font</span>.<span class="ruby-identifier">get_name</span>
1094
+ <span class="ruby-keyword">end</span></pre>
1095
+ </div>
1096
+
1097
+ </div>
1098
+
1099
+
1100
+
1101
+
1102
+ </div>
1103
+
1104
+
1105
+ <div id="method-i-font_size" class="method-detail ">
1106
+
1107
+ <div class="method-heading">
1108
+ <span class="method-name">font_size</span><span
1109
+ class="method-args">()</span>
1110
+
1111
+ <span class="method-click-advice">click to toggle source</span>
1112
+
1113
+ </div>
1114
+
1115
+
1116
+ <div class="method-description">
1117
+
1118
+
1119
+
1120
+
1121
+
1122
+
1123
+ <div class="method-source-code" id="font_size-source">
1124
+ <pre><span class="ruby-comment"># File lib/rubyXL/cell.rb, line 181</span>
1125
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">font_size</span>()
1126
+ <span class="ruby-identifier">validate_worksheet</span>
1127
+ <span class="ruby-identifier">get_cell_font</span>.<span class="ruby-identifier">get_size</span>
1128
+ <span class="ruby-keyword">end</span></pre>
1129
+ </div>
1130
+
1131
+ </div>
1132
+
1133
+
1134
+
1135
+
1136
+ </div>
1137
+
1138
+
1139
+ <div id="method-i-horizontal_alignment" class="method-detail ">
1140
+
1141
+ <div class="method-heading">
1142
+ <span class="method-name">horizontal_alignment</span><span
1143
+ class="method-args">()</span>
1144
+
1145
+ <span class="method-click-advice">click to toggle source</span>
1146
+
1147
+ </div>
1148
+
1149
+
1150
+ <div class="method-description">
1151
+
1152
+ <p>returns cell’s horizontal alignment</p>
1153
+
1154
+
1155
+
1156
+
1157
+ <div class="method-source-code" id="horizontal_alignment-source">
1158
+ <pre><span class="ruby-comment"># File lib/rubyXL/cell.rb, line 198</span>
1159
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">horizontal_alignment</span>()
1160
+ <span class="ruby-identifier">validate_worksheet</span>
1161
+ <span class="ruby-identifier">xf_obj</span> = <span class="ruby-identifier">get_cell_xf</span>
1162
+ <span class="ruby-keyword">return</span> <span class="ruby-keyword">nil</span> <span class="ruby-keyword">if</span> <span class="ruby-identifier">xf_obj</span>.<span class="ruby-identifier">alignment</span>.<span class="ruby-identifier">nil?</span>
1163
+ <span class="ruby-identifier">xf_obj</span>.<span class="ruby-identifier">alignment</span>.<span class="ruby-identifier">horizontal</span>
1164
+ <span class="ruby-keyword">end</span></pre>
1165
+ </div>
1166
+
1167
+ </div>
1168
+
1169
+
1170
+
1171
+
1172
+ </div>
1173
+
1174
+
1175
+ <div id="method-i-inspect" class="method-detail ">
1176
+
1177
+ <div class="method-heading">
1178
+ <span class="method-name">inspect</span><span
1179
+ class="method-args">()</span>
1180
+
1181
+ <span class="method-click-advice">click to toggle source</span>
1182
+
1183
+ </div>
1184
+
1185
+
1186
+ <div class="method-description">
1187
+
1188
+
1189
+
1190
+
1191
+
1192
+
1193
+ <div class="method-source-code" id="inspect-source">
1194
+ <pre><span class="ruby-comment"># File lib/rubyXL/cell.rb, line 246</span>
1195
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">inspect</span>
1196
+ <span class="ruby-identifier">str</span> = <span class="ruby-node">&quot;#&lt;#{self.class}(#{row},#{column}): #{raw_value.inspect}&quot;</span>
1197
+ <span class="ruby-identifier">str</span> <span class="ruby-operator">+=</span> <span class="ruby-node">&quot; =#{@formula}&quot;</span> <span class="ruby-keyword">if</span> <span class="ruby-ivar">@formula</span>
1198
+ <span class="ruby-identifier">str</span> <span class="ruby-operator">+=</span> <span class="ruby-node">&quot;, datatype = #{self.datatype}, style_index = #{self.style_index}&gt;&quot;</span>
1199
+ <span class="ruby-keyword">return</span> <span class="ruby-identifier">str</span>
1200
+ <span class="ruby-keyword">end</span></pre>
1201
+ </div>
1202
+
1203
+ </div>
1204
+
1205
+
1206
+
1207
+
1208
+ </div>
1209
+
1210
+
1211
+ <div id="method-i-is_bolded" class="method-detail ">
1212
+
1213
+ <div class="method-heading">
1214
+ <span class="method-name">is_bolded</span><span
1215
+ class="method-args">()</span>
1216
+
1217
+ <span class="method-click-advice">click to toggle source</span>
1218
+
1219
+ </div>
1220
+
1221
+
1222
+ <div class="method-description">
1223
+
1224
+ <p>returns if font is bolded</p>
1225
+
1226
+
1227
+
1228
+
1229
+ <div class="method-source-code" id="is_bolded-source">
1230
+ <pre><span class="ruby-comment"># File lib/rubyXL/cell.rb, line 161</span>
1231
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">is_bolded</span>()
1232
+ <span class="ruby-identifier">validate_worksheet</span>
1233
+ <span class="ruby-identifier">get_cell_font</span>.<span class="ruby-identifier">is_bold</span>
1234
+ <span class="ruby-keyword">end</span></pre>
1235
+ </div>
1236
+
1237
+ </div>
1238
+
1239
+
1240
+
1241
+
1242
+ </div>
1243
+
1244
+
1245
+ <div id="method-i-is_date-3F" class="method-detail ">
1246
+
1247
+ <div class="method-heading">
1248
+ <span class="method-name">is_date?</span><span
1249
+ class="method-args">()</span>
1250
+
1251
+ <span class="method-click-advice">click to toggle source</span>
1252
+
1253
+ </div>
1254
+
1255
+
1256
+ <div class="method-description">
1257
+
1258
+
1259
+
1260
+
1261
+
1262
+
1263
+ <div class="method-source-code" id="is_date-3F-source">
1264
+ <pre><span class="ruby-comment"># File lib/rubyXL/cell.rb, line 13</span>
1265
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">is_date?</span>
1266
+ <span class="ruby-keyword">return</span> <span class="ruby-keyword">false</span> <span class="ruby-keyword">unless</span> <span class="ruby-identifier">raw_value</span> <span class="ruby-operator">=~</span> <span class="ruby-regexp">/^\d+$/</span> <span class="ruby-comment"># Only fully numeric values can be dates</span>
1267
+ <span class="ruby-identifier">num_fmt</span> = <span class="ruby-identifier">get_number_format</span>
1268
+ <span class="ruby-identifier">num_fmt</span> <span class="ruby-operator">&amp;&amp;</span> <span class="ruby-identifier">num_fmt</span>.<span class="ruby-identifier">is_date_format?</span>
1269
+ <span class="ruby-keyword">end</span></pre>
1270
+ </div>
1271
+
1272
+ </div>
1273
+
1274
+
1275
+
1276
+
1277
+ </div>
1278
+
1279
+
1280
+ <div id="method-i-is_italicized" class="method-detail ">
1281
+
1282
+ <div class="method-heading">
1283
+ <span class="method-name">is_italicized</span><span
1284
+ class="method-args">()</span>
1285
+
1286
+ <span class="method-click-advice">click to toggle source</span>
1287
+
1288
+ </div>
1289
+
1290
+
1291
+ <div class="method-description">
1292
+
1293
+ <p>returns if font is italicized</p>
1294
+
1295
+
1296
+
1297
+
1298
+ <div class="method-source-code" id="is_italicized-source">
1299
+ <pre><span class="ruby-comment"># File lib/rubyXL/cell.rb, line 155</span>
1300
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">is_italicized</span>()
1301
+ <span class="ruby-identifier">validate_worksheet</span>
1302
+ <span class="ruby-identifier">get_cell_font</span>.<span class="ruby-identifier">is_italic</span>
1303
+ <span class="ruby-keyword">end</span></pre>
1304
+ </div>
1305
+
1306
+ </div>
1307
+
1308
+
1309
+
1310
+
1311
+ </div>
1312
+
1313
+
1314
+ <div id="method-i-is_struckthrough" class="method-detail ">
1315
+
1316
+ <div class="method-heading">
1317
+ <span class="method-name">is_struckthrough</span><span
1318
+ class="method-args">()</span>
1319
+
1320
+ <span class="method-click-advice">click to toggle source</span>
1321
+
1322
+ </div>
1323
+
1324
+
1325
+ <div class="method-description">
1326
+
1327
+
1328
+
1329
+
1330
+
1331
+
1332
+ <div class="method-source-code" id="is_struckthrough-source">
1333
+ <pre><span class="ruby-comment"># File lib/rubyXL/cell.rb, line 171</span>
1334
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">is_struckthrough</span>()
1335
+ <span class="ruby-identifier">validate_worksheet</span>
1336
+ <span class="ruby-identifier">get_cell_font</span>.<span class="ruby-identifier">is_strikethrough</span>
1337
+ <span class="ruby-keyword">end</span></pre>
1338
+ </div>
1339
+
1340
+ </div>
1341
+
1342
+
1343
+
1344
+
1345
+ </div>
1346
+
1347
+
1348
+ <div id="method-i-is_underlined" class="method-detail ">
1349
+
1350
+ <div class="method-heading">
1351
+ <span class="method-name">is_underlined</span><span
1352
+ class="method-args">()</span>
1353
+
1354
+ <span class="method-click-advice">click to toggle source</span>
1355
+
1356
+ </div>
1357
+
1358
+
1359
+ <div class="method-description">
1360
+
1361
+
1362
+
1363
+
1364
+
1365
+
1366
+ <div class="method-source-code" id="is_underlined-source">
1367
+ <pre><span class="ruby-comment"># File lib/rubyXL/cell.rb, line 166</span>
1368
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">is_underlined</span>()
1369
+ <span class="ruby-identifier">validate_worksheet</span>
1370
+ <span class="ruby-identifier">get_cell_font</span>.<span class="ruby-identifier">is_underlined</span>
1371
+ <span class="ruby-keyword">end</span></pre>
1372
+ </div>
1373
+
1374
+ </div>
1375
+
1376
+
1377
+
1378
+
1379
+ </div>
1380
+
1381
+
1382
+ <div id="method-i-text_wrap" class="method-detail ">
1383
+
1384
+ <div class="method-heading">
1385
+ <span class="method-name">text_wrap</span><span
1386
+ class="method-args">()</span>
1387
+
1388
+ <span class="method-click-advice">click to toggle source</span>
1389
+
1390
+ </div>
1391
+
1392
+
1393
+ <div class="method-description">
1394
+
1395
+ <p>returns cell’s wrap</p>
1396
+
1397
+
1398
+
1399
+
1400
+ <div class="method-source-code" id="text_wrap-source">
1401
+ <pre><span class="ruby-comment"># File lib/rubyXL/cell.rb, line 214</span>
1402
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">text_wrap</span>()
1403
+ <span class="ruby-identifier">validate_worksheet</span>
1404
+ <span class="ruby-identifier">xf_obj</span> = <span class="ruby-identifier">get_cell_xf</span>
1405
+ <span class="ruby-keyword">return</span> <span class="ruby-keyword">nil</span> <span class="ruby-keyword">if</span> <span class="ruby-identifier">xf_obj</span>.<span class="ruby-identifier">alignment</span>.<span class="ruby-identifier">nil?</span>
1406
+ <span class="ruby-identifier">xf_obj</span>.<span class="ruby-identifier">alignment</span>.<span class="ruby-identifier">wrap_text</span>
1407
+ <span class="ruby-keyword">end</span></pre>
1408
+ </div>
1409
+
1410
+ </div>
1411
+
1412
+
1413
+
1414
+
1415
+ </div>
1416
+
1417
+
1418
+ <div id="method-i-vertical_alignment" class="method-detail ">
1419
+
1420
+ <div class="method-heading">
1421
+ <span class="method-name">vertical_alignment</span><span
1422
+ class="method-args">()</span>
1423
+
1424
+ <span class="method-click-advice">click to toggle source</span>
1425
+
1426
+ </div>
1427
+
1428
+
1429
+ <div class="method-description">
1430
+
1431
+ <p>returns cell’s vertical alignment</p>
1432
+
1433
+
1434
+
1435
+
1436
+ <div class="method-source-code" id="vertical_alignment-source">
1437
+ <pre><span class="ruby-comment"># File lib/rubyXL/cell.rb, line 206</span>
1438
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">vertical_alignment</span>()
1439
+ <span class="ruby-identifier">validate_worksheet</span>
1440
+ <span class="ruby-identifier">xf_obj</span> = <span class="ruby-identifier">get_cell_xf</span>
1441
+ <span class="ruby-keyword">return</span> <span class="ruby-keyword">nil</span> <span class="ruby-keyword">if</span> <span class="ruby-identifier">xf_obj</span>.<span class="ruby-identifier">alignment</span>.<span class="ruby-identifier">nil?</span>
1442
+ <span class="ruby-identifier">xf_obj</span>.<span class="ruby-identifier">alignment</span>.<span class="ruby-identifier">vertical</span>
1443
+ <span class="ruby-keyword">end</span></pre>
1444
+ </div>
1445
+
1446
+ </div>
1447
+
1448
+
1449
+
1450
+
1451
+ </div>
1452
+
1453
+
1454
+ <div id="method-i-workbook" class="method-detail ">
1455
+
1456
+ <div class="method-heading">
1457
+ <span class="method-name">workbook</span><span
1458
+ class="method-args">()</span>
1459
+
1460
+ <span class="method-click-advice">click to toggle source</span>
1461
+
1462
+ </div>
1463
+
1464
+
1465
+ <div class="method-description">
1466
+
1467
+
1468
+
1469
+
1470
+
1471
+
1472
+ <div class="method-source-code" id="workbook-source">
1473
+ <pre><span class="ruby-comment"># File lib/rubyXL/cell.rb, line 9</span>
1474
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">workbook</span>
1475
+ <span class="ruby-ivar">@worksheet</span>.<span class="ruby-identifier">workbook</span>
1476
+ <span class="ruby-keyword">end</span></pre>
1477
+ </div>
1478
+
1479
+ </div>
1480
+
1481
+
1482
+
1483
+
1484
+ </div>
1485
+
1486
+
1487
+ </section>
1488
+
1489
+ </section>
1490
+ </main>
1491
+
1492
+
1493
+ <footer id="validator-badges" role="contentinfo">
1494
+ <p><a href="http://validator.w3.org/check/referer">Validate</a>
1495
+ <p>Generated by <a href="http://rdoc.rubyforge.org">RDoc</a> 4.1.1.
1496
+ <p>Based on <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
1497
+ </footer>
1498
+