set_textbox_style
Set styling on a named textbox in a paginated report. Adjust font, color, borders, alignment, padding, and more with optional parameters.
Instructions
Set styling on a named Textbox. Properties route to the right nested Style node automatically: background_color, border_*, vertical_align, padding_*, writing_mode go on Textbox/Style; text_align on Paragraph/Style; font_*, color, format on TextRun/Style; can_grow / can_shrink go DIRECTLY on Textbox (not inside Style). All fields optional — only what's passed gets written. Cell-level styling: every tablix cell is a Textbox with a unique name, so use this tool with the cell's textbox name (e.g. 'HeaderAmount').
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| color | No | Text color — '#RRGGBB' or named. | |
| format | No | Number/date format (e.g. '#,0.00', 'C2', 'd'). | |
| can_grow | No | Allow textbox to grow vertically when content exceeds the height. Direct Textbox child, not Style. | |
| font_size | No | RDL size, e.g. '11pt'. | |
| can_shrink | No | Allow textbox to shrink when content is shorter than the height. Direct Textbox child, not Style. | |
| text_align | No | Left | Center | Right | Justify | General. | |
| font_family | No | ||
| font_weight | No | Normal | Bold | Lighter | ... or numeric. | |
| padding_top | No | RDL size (e.g. '2pt', '0.05in'). | |
| border_color | No | ||
| border_style | No | None | Solid | Dotted | Dashed | Double. | |
| border_width | No | ||
| padding_left | No | ||
| textbox_name | Yes | ||
| writing_mode | No | Horizontal | Vertical | Rotate270 — text orientation. Useful for narrow column headers. | |
| padding_right | No | ||
| padding_bottom | No | ||
| vertical_align | No | Top | Middle | Bottom. | |
| background_color | No |