Inline text segment within a paragraph, carrying its own character formatting.
Path: /body/p[N]/r[M]
/body/p[N]/r[M]
get - Returned attributes and output format
add - Add formatted text segments to paragraphs
set - Modify run formatting and content
officecli get report.docx /body/p[1]/r[1]
Selector: run, r (child selector only, use with >)
run
r
>
font
size
bold
italic
officecli query report.docx "p[alignment=center] > r[bold=true]" officecli query report.docx 'r:contains("error")' officecli query report.docx "r[font=Arial]"
officecli remove report.docx /body/p[1]/r[2]
Based on OfficeCLI v1.0.64
There was an error while loading. Please reload this page.