From cdfc7251bde8347678d355e5fe65fc20e120bc23 Mon Sep 17 00:00:00 2001 From: Randy Morgan Date: Sun, 27 Nov 2011 21:45:19 +0900 Subject: updating docs for 1.0.10a release --- doc/Axlsx/PatternFill.html | 165 +++++++++++++++++++++++++-------------------- 1 file changed, 93 insertions(+), 72 deletions(-) (limited to 'doc/Axlsx/PatternFill.html') diff --git a/doc/Axlsx/PatternFill.html b/doc/Axlsx/PatternFill.html index 45fa1eb9..1315ba7a 100644 --- a/doc/Axlsx/PatternFill.html +++ b/doc/Axlsx/PatternFill.html @@ -97,13 +97,15 @@
Note: -
-

The recommended way to manage styles is with Styles#add_style

+

+The recommended way to manage styles is with Styles#add_style +

- -

A PatternFill is the pattern and solid fill styling for a cell.

+

+A PatternFill is the pattern and solid fill styling for a cell. +

@@ -142,8 +144,9 @@ -
-

The color to use for the background of the fill when the type is not solid.

+

+The color to use for the background of the fill when the type is not solid. +

@@ -168,8 +171,9 @@ -
-

The color to use for the the background in solid fills.

+

+The color to use for the the background in solid fills. +

@@ -194,8 +198,9 @@ -
-

The pattern type to use.

+

+The pattern type to use. +

@@ -232,8 +237,9 @@ -
-

Creates a new PatternFill Object.

+

+Creates a new PatternFill Object. +

@@ -255,8 +261,9 @@ -
-

Serializes the pattern fill.

+

+Serializes the pattern fill. +

@@ -277,8 +284,9 @@

- -

Creates a new PatternFill Object

+

+Creates a new PatternFill Object +

@@ -299,8 +307,9 @@ — -
-

a customizable set of options

+

+a customizable set of options +

@@ -360,12 +369,13 @@
# File 'lib/axlsx/stylesheet/pattern_fill.rb', line 44
 
-def initialize(options={})
-  @patternType = :none
-  options.each do |o|
-    self.send("#{o[0]}=", o[1]) if self.respond_to? "#{o[0]}="
-  end
-end
+def initialize(options={}) + @patternType = :none + options.each do |o| + self.send("#{o[0]}=", o[1]) if self.respond_to? "#{o[0]}=" + end +end + @@ -388,8 +398,9 @@

- -

The color to use for the background of the fill when the type is not solid.

+

+The color to use for the background of the fill when the type is not solid. +

@@ -423,9 +434,10 @@
# File 'lib/axlsx/stylesheet/pattern_fill.rb', line 13
 
-def bgColor
-  @bgColor
-end
+def bgColor + @bgColor +end + @@ -443,8 +455,9 @@

- -

The color to use for the the background in solid fills.

+

+The color to use for the the background in solid fills. +

@@ -478,9 +491,10 @@
# File 'lib/axlsx/stylesheet/pattern_fill.rb', line 9
 
-def fgColor
-  @fgColor
-end
+def fgColor + @fgColor +end + @@ -501,33 +515,36 @@
Note: -
-

patternType must be one of

- -
:none
-:solid
-:mediumGray
-:darkGray
-:lightGray
-:darkHorizontal
-:darkVertical
-:darkDown
-:darkUp
-:darkGrid
-:darkTrellis
-:lightHorizontal
-:lightVertical
-:lightDown
-:lightUp
-:lightGrid
-:lightTrellis
-:gray125
-:gray0625
+

+patternType must be one of +

+
+ :none
+ :solid
+ :mediumGray
+ :darkGray
+ :lightGray
+ :darkHorizontal
+ :darkVertical
+ :darkDown
+ :darkUp
+ :darkGrid
+ :darkTrellis
+ :lightHorizontal
+ :lightVertical
+ :lightDown
+ :lightUp
+ :lightGrid
+ :lightTrellis
+ :gray125
+ :gray0625
+
- -

The pattern type to use

+

+The pattern type to use +

@@ -555,9 +572,10 @@
# File 'lib/axlsx/stylesheet/pattern_fill.rb', line 38
 
-def patternType
-  @patternType
-end
+def patternType + @patternType +end + @@ -579,8 +597,9 @@

- -

Serializes the pattern fill

+

+Serializes the pattern fill +

@@ -599,8 +618,9 @@ — -
-

The document builder instance this objects xml will be added to.

+

+The document builder instance this objects xml will be added to. +

@@ -636,11 +656,12 @@
# File 'lib/axlsx/stylesheet/pattern_fill.rb', line 60
 
-def to_xml(xml) 
-  xml.patternFill(:patternType => self.patternType) { 
-    self.instance_values.reject { |k,v| k.to_sym == :patternType }.each { |k,v| xml.send(k, v.instance_values) }    
-  }
-end
+def to_xml(xml) + xml.patternFill(:patternType => self.patternType) { + self.instance_values.reject { |k,v| k.to_sym == :patternType }.each { |k,v| xml.send(k, v.instance_values) } + } +end + @@ -651,9 +672,9 @@
-- cgit v1.2.3