From 407b884ef349d6dec12f50006ea6268c96205a83 Mon Sep 17 00:00:00 2001 From: Randy Morgan Date: Sun, 27 Nov 2011 21:34:48 +0900 Subject: adding yields for package workbook, workbook styles and cols collection on worksheet to make charting easier. --- doc/Axlsx/PatternFill.html | 165 ++++++++++++++++++++------------------------- 1 file changed, 72 insertions(+), 93 deletions(-) (limited to 'doc/Axlsx/PatternFill.html') diff --git a/doc/Axlsx/PatternFill.html b/doc/Axlsx/PatternFill.html index c3916fe2..45fa1eb9 100644 --- a/doc/Axlsx/PatternFill.html +++ b/doc/Axlsx/PatternFill.html @@ -97,15 +97,13 @@
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.

@@ -144,9 +142,8 @@ A PatternFill is the pattern and solid fill styling for a cell. -

-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.

@@ -171,9 +168,8 @@ The color to use for the background of the fill when the type is not solid. -

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

+
+

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

@@ -198,9 +194,8 @@ The color to use for the the background in solid fills. -

-The pattern type to use. -

+
+

The pattern type to use.

@@ -237,9 +232,8 @@ The pattern type to use. -

-Creates a new PatternFill Object. -

+
+

Creates a new PatternFill Object.

@@ -261,9 +255,8 @@ Creates a new PatternFill Object. -

-Serializes the pattern fill. -

+
+

Serializes the pattern fill.

@@ -284,9 +277,8 @@ Serializes the pattern fill.

-

-Creates a new PatternFill Object -

+ +

Creates a new PatternFill Object

@@ -307,9 +299,8 @@ Creates a new PatternFill Object — -

-a customizable set of options -

+
+

a customizable set of options

@@ -369,13 +360,12 @@ a customizable set of options
# 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 @@ -398,9 +388,8 @@ a customizable set of options

-

-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.

@@ -434,10 +423,9 @@ The color to use for the background of the fill when the type is not solid.
# File 'lib/axlsx/stylesheet/pattern_fill.rb', line 13
 
-def bgColor
-  @bgColor
-end
-
+def bgColor + @bgColor +end @@ -455,9 +443,8 @@ The color to use for the background of the fill when the type is not solid.

-

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

+ +

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

@@ -491,10 +478,9 @@ The color to use for the the background in solid fills.
# File 'lib/axlsx/stylesheet/pattern_fill.rb', line 9
 
-def fgColor
-  @fgColor
-end
-
+def fgColor + @fgColor +end @@ -515,36 +501,33 @@ The color to use for the the background in solid fills.
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

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

-

-Serializes the pattern fill -

+ +

Serializes the pattern fill

@@ -618,9 +599,8 @@ Serializes the pattern fill — -

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

+
+

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

@@ -656,12 +636,11 @@ The document builder instance this objects xml will be added to.
# 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 @@ -672,9 +651,9 @@ The document builder instance this objects xml will be added to.
-- cgit v1.2.3