table
Create and manage structured data in HWP/HWPX documents: add rows and columns, merge or split cells, apply formatting, insert formulas, and sort content.
Instructions
표: 만들기·셀·병합/나누기·행/열·서식·계산식·정렬. action: create(at, rows, cols, data?, col_widths?, row_heights?, own_paragraph?, frame?, margin?, caption?, header_rows?, style?); cell(cells, text?, data?); insert_rows(target, at_row, count?, where?); insert_cols(target, at_col, count?, where?); delete_rows(target, indices); delete_cols(target, indices); delete(target); merge(cells?, target?); split(target, rows?, cols?, at_row?); size(target?, cells?, col_widths?, row_heights?, width?, equalize?); cell_format(cells, border?, fill?, valign?, padding?, text_direction?, single_line?, protect?, editable_in_form?, name?, header?, fill_image?, fill_image_mode?); update(target, frame?, margin?, caption?, page_break?, repeat_header?, default_padding?, lock_size?); formula(target, expr, format?); recalc(target?); sort(target, keys, rows?, header_rows?); to_text(target, separator?); from_text(range, separator?, header_rows?); preset(target, name, apply_to?)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| at | No | Locator(한 점: s0/p3:5, doc:end, before:#p4 …) | |
| cols | No | ||
| data | No | ||
| expr | No | ||
| fill | No | cell.fill 속성 묶음(길이는 숫자 mm 또는 '12pt'·'20mm') | |
| keys | No | ||
| name | No | ||
| rows | No | ||
| text | No | ||
| cells | No | Locator(셀 범위) | |
| count | No | ||
| frame | No | table.frame 속성 묶음(길이는 숫자 mm 또는 '12pt'·'20mm') | |
| range | No | Locator(글 범위: s0/p3:5-12, s0/p2..s0/p9, find:"…") | |
| style | No | ||
| where | No | ||
| width | No | 길이(숫자는 mm, 또는 '20mm'·'12pt') | |
| action | Yes | ||
| at_col | No | ||
| at_row | No | ||
| border | No | CellBorder (길이는 숫자 또는 '12pt'·'20mm', 색은 '#RRGGBB') | |
| format | No | ||
| handle | No | document.new/open이 준 handle | |
| header | No | ||
| margin | No | table.margin 속성 묶음(길이는 숫자 mm 또는 '12pt'·'20mm') | |
| target | No | Locator(노드 하나: #tbl7, s0/p3) | |
| valign | No | ||
| caption | No | ||
| indices | No | ||
| padding | No | cell.padding 속성 묶음(길이는 숫자 mm 또는 '12pt'·'20mm') | |
| protect | No | ||
| apply_to | No | ||
| equalize | No | ||
| lock_size | No | ||
| separator | No | ||
| col_widths | No | 길이 목록(숫자는 mm) | |
| fill_image | No | 읽을 파일의 절대 경로 | |
| page_break | No | ||
| header_rows | No | ||
| row_heights | No | 길이 목록(숫자는 mm) | |
| single_line | No | ||
| own_paragraph | No | ||
| repeat_header | No | ||
| text_direction | No | ||
| default_padding | No | table.default_padding 속성 묶음(길이는 숫자 mm 또는 '12pt'·'20mm') | |
| fill_image_mode | No | ||
| editable_in_form | No |