Method: Writexlsx::Package::Comment#write_client_data
- Defined in:
- lib/write_xlsx/package/comments.rb
#write_client_data ⇒ Object
Write the <x:ClientData> element.
194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 |
# File 'lib/write_xlsx/package/comments.rb', line 194 def write_client_data attributes = [ %w[ObjectType Note] ] @writer.tag_elements('x:ClientData', attributes) do @writer.empty_tag('x:MoveWithCells') @writer.empty_tag('x:SizeWithCells') # Write the x:Anchor element. write_anchor # Write the x:AutoFill element. write_auto_fill # Write the x:Row element. @writer.data_element('x:Row', row) # Write the x:Column element. @writer.data_element('x:Column', col) # Write the x:Visible element. @writer.empty_tag('x:Visible') if ptrue?(visible) end end |