Class: Writexlsx::Format::BorderStyle

Inherits:
Object
  • Object
show all
Defined in:
lib/write_xlsx/format/border_style.rb

Instance Method Summary collapse

Constructor Details

#initialize(format) ⇒ BorderStyle

Returns a new instance of BorderStyle.



7
8
9
# File 'lib/write_xlsx/format/border_style.rb', line 7

def initialize(format)
  @format = format
end

Instance Method Details

#bottomObject



75
76
77
# File 'lib/write_xlsx/format/border_style.rb', line 75

def bottom
  @format.state.border.bottom
end

#bottom=(value) ⇒ Object



79
80
81
# File 'lib/write_xlsx/format/border_style.rb', line 79

def bottom=(value)
  @format.state.border.bottom = value
end

#bottom_colorObject



83
84
85
# File 'lib/write_xlsx/format/border_style.rb', line 83

def bottom_color
  @format.state.border.bottom_color
end

#bottom_color=(value) ⇒ Object



87
88
89
# File 'lib/write_xlsx/format/border_style.rb', line 87

def bottom_color=(value)
  @format.state.border.bottom_color = value
end

#countObject



19
20
21
# File 'lib/write_xlsx/format/border_style.rb', line 19

def count
  @format.state.border.count
end

#count=(value) ⇒ Object



23
24
25
# File 'lib/write_xlsx/format/border_style.rb', line 23

def count=(value)
  @format.state.border.count = value
end

#diag_borderObject



91
92
93
# File 'lib/write_xlsx/format/border_style.rb', line 91

def diag_border
  @format.state.border.diag_border
end

#diag_border=(value) ⇒ Object



95
96
97
# File 'lib/write_xlsx/format/border_style.rb', line 95

def diag_border=(value)
  @format.state.border.diag_border = value
end

#diag_colorObject



99
100
101
# File 'lib/write_xlsx/format/border_style.rb', line 99

def diag_color
  @format.state.border.diag_color
end

#diag_color=(value) ⇒ Object



103
104
105
# File 'lib/write_xlsx/format/border_style.rb', line 103

def diag_color=(value)
  @format.state.border.diag_color = value
end

#diag_typeObject



107
108
109
# File 'lib/write_xlsx/format/border_style.rb', line 107

def diag_type
  @format.state.border.diag_type
end

#diag_type=(value) ⇒ Object



111
112
113
# File 'lib/write_xlsx/format/border_style.rb', line 111

def diag_type=(value)
  @format.state.border.diag_type = value
end

#indexObject



11
12
13
# File 'lib/write_xlsx/format/border_style.rb', line 11

def index
  @format.state.border.index
end

#index=(value) ⇒ Object



15
16
17
# File 'lib/write_xlsx/format/border_style.rb', line 15

def index=(value)
  @format.state.border.index = value
end

#leftObject



27
28
29
# File 'lib/write_xlsx/format/border_style.rb', line 27

def left
  @format.state.border.left
end

#left=(value) ⇒ Object



31
32
33
# File 'lib/write_xlsx/format/border_style.rb', line 31

def left=(value)
  @format.state.border.left = value
end

#left_colorObject



35
36
37
# File 'lib/write_xlsx/format/border_style.rb', line 35

def left_color
  @format.state.border.left_color
end

#left_color=(value) ⇒ Object



39
40
41
# File 'lib/write_xlsx/format/border_style.rb', line 39

def left_color=(value)
  @format.state.border.left_color = value
end

#rightObject



43
44
45
# File 'lib/write_xlsx/format/border_style.rb', line 43

def right
  @format.state.border.right
end

#right=(value) ⇒ Object



47
48
49
# File 'lib/write_xlsx/format/border_style.rb', line 47

def right=(value)
  @format.state.border.right = value
end

#right_colorObject



51
52
53
# File 'lib/write_xlsx/format/border_style.rb', line 51

def right_color
  @format.state.border.right_color
end

#right_color=(value) ⇒ Object



55
56
57
# File 'lib/write_xlsx/format/border_style.rb', line 55

def right_color=(value)
  @format.state.border.right_color = value
end

#topObject



59
60
61
# File 'lib/write_xlsx/format/border_style.rb', line 59

def top
  @format.state.border.top
end

#top=(value) ⇒ Object



63
64
65
# File 'lib/write_xlsx/format/border_style.rb', line 63

def top=(value)
  @format.state.border.top = value
end

#top_colorObject



67
68
69
# File 'lib/write_xlsx/format/border_style.rb', line 67

def top_color
  @format.state.border.top_color
end

#top_color=(value) ⇒ Object



71
72
73
# File 'lib/write_xlsx/format/border_style.rb', line 71

def top_color=(value)
  @format.state.border.top_color = value
end