Class: Writexlsx::Format::FontState
- Inherits:
-
Object
- Object
- Writexlsx::Format::FontState
- Defined in:
- lib/write_xlsx/format/font_state.rb
Instance Attribute Summary collapse
-
#bold ⇒ Object
Returns the value of attribute bold.
-
#charset ⇒ Object
Returns the value of attribute charset.
-
#color ⇒ Object
Returns the value of attribute color.
-
#color_indexed ⇒ Object
Returns the value of attribute color_indexed.
-
#condense ⇒ Object
Returns the value of attribute condense.
-
#extend ⇒ Object
Returns the value of attribute extend.
-
#family ⇒ Object
Returns the value of attribute family.
-
#hyperlink ⇒ Object
Returns the value of attribute hyperlink.
-
#index ⇒ Object
Returns the value of attribute index.
-
#italic ⇒ Object
Returns the value of attribute italic.
-
#name ⇒ Object
Returns the value of attribute name.
-
#outline ⇒ Object
Returns the value of attribute outline.
-
#scheme ⇒ Object
Returns the value of attribute scheme.
-
#script ⇒ Object
Returns the value of attribute script.
-
#shadow ⇒ Object
Returns the value of attribute shadow.
-
#size ⇒ Object
Returns the value of attribute size.
-
#strikeout ⇒ Object
Returns the value of attribute strikeout.
-
#theme ⇒ Object
Returns the value of attribute theme.
-
#underline ⇒ Object
Returns the value of attribute underline.
Instance Method Summary collapse
-
#initialize ⇒ FontState
constructor
A new instance of FontState.
- #initialize_copy(other) ⇒ Object
Constructor Details
#initialize ⇒ FontState
Returns a new instance of FontState.
29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 |
# File 'lib/write_xlsx/format/font_state.rb', line 29 def initialize @index = 0 @name = 'Calibri' @size = 11 @bold = 0 @italic = 0 @color = 0x0 @underline = 0 @strikeout = 0 @outline = 0 @shadow = 0 @script = 0 @family = 2 @charset = 0 @scheme = 'minor' @condense = 0 @extend = 0 @theme = 0 @hyperlink = 0 @color_indexed = 0 end |
Instance Attribute Details
#bold ⇒ Object
Returns the value of attribute bold.
7 8 9 |
# File 'lib/write_xlsx/format/font_state.rb', line 7 def bold @bold end |
#charset ⇒ Object
Returns the value of attribute charset.
7 8 9 |
# File 'lib/write_xlsx/format/font_state.rb', line 7 def charset @charset end |
#color ⇒ Object
Returns the value of attribute color.
7 8 9 |
# File 'lib/write_xlsx/format/font_state.rb', line 7 def color @color end |
#color_indexed ⇒ Object
Returns the value of attribute color_indexed.
7 8 9 |
# File 'lib/write_xlsx/format/font_state.rb', line 7 def color_indexed @color_indexed end |
#condense ⇒ Object
Returns the value of attribute condense.
7 8 9 |
# File 'lib/write_xlsx/format/font_state.rb', line 7 def condense @condense end |
#extend ⇒ Object
Returns the value of attribute extend.
7 8 9 |
# File 'lib/write_xlsx/format/font_state.rb', line 7 def extend @extend end |
#family ⇒ Object
Returns the value of attribute family.
7 8 9 |
# File 'lib/write_xlsx/format/font_state.rb', line 7 def family @family end |
#hyperlink ⇒ Object
Returns the value of attribute hyperlink.
7 8 9 |
# File 'lib/write_xlsx/format/font_state.rb', line 7 def hyperlink @hyperlink end |
#index ⇒ Object
Returns the value of attribute index.
7 8 9 |
# File 'lib/write_xlsx/format/font_state.rb', line 7 def index @index end |
#italic ⇒ Object
Returns the value of attribute italic.
7 8 9 |
# File 'lib/write_xlsx/format/font_state.rb', line 7 def italic @italic end |
#name ⇒ Object
Returns the value of attribute name.
7 8 9 |
# File 'lib/write_xlsx/format/font_state.rb', line 7 def name @name end |
#outline ⇒ Object
Returns the value of attribute outline.
7 8 9 |
# File 'lib/write_xlsx/format/font_state.rb', line 7 def outline @outline end |
#scheme ⇒ Object
Returns the value of attribute scheme.
7 8 9 |
# File 'lib/write_xlsx/format/font_state.rb', line 7 def scheme @scheme end |
#script ⇒ Object
Returns the value of attribute script.
7 8 9 |
# File 'lib/write_xlsx/format/font_state.rb', line 7 def script @script end |
#shadow ⇒ Object
Returns the value of attribute shadow.
7 8 9 |
# File 'lib/write_xlsx/format/font_state.rb', line 7 def shadow @shadow end |
#size ⇒ Object
Returns the value of attribute size.
7 8 9 |
# File 'lib/write_xlsx/format/font_state.rb', line 7 def size @size end |
#strikeout ⇒ Object
Returns the value of attribute strikeout.
7 8 9 |
# File 'lib/write_xlsx/format/font_state.rb', line 7 def strikeout @strikeout end |
#theme ⇒ Object
Returns the value of attribute theme.
7 8 9 |
# File 'lib/write_xlsx/format/font_state.rb', line 7 def theme @theme end |
#underline ⇒ Object
Returns the value of attribute underline.
7 8 9 |
# File 'lib/write_xlsx/format/font_state.rb', line 7 def underline @underline end |
Instance Method Details
#initialize_copy(other) ⇒ Object
51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 |
# File 'lib/write_xlsx/format/font_state.rb', line 51 def initialize_copy(other) @index = other.index @name = other.name @size = other.size @bold = other.bold @italic = other.italic @color = other.color @underline = other.underline @strikeout = other.strikeout @outline = other.outline @shadow = other.shadow @script = other.script @family = other.family @charset = other.charset @scheme = other.scheme @condense = other.condense @extend = other.extend @theme = other.theme @hyperlink = other.hyperlink @color_indexed = other.color_indexed end |