public class RunUtil
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static void |
applyParagraphStyle(org.docx4j.wml.P p,
org.docx4j.wml.R run)
Applies the style of the given paragraph to the given content object (if the content object is a Run).
|
static org.docx4j.wml.R |
create(java.lang.Object content)
Creates a new run with the given object as content.
|
static org.docx4j.wml.R |
create(java.lang.String text)
Creates a new run with the specified text.
|
static org.docx4j.wml.R |
create(java.lang.String text,
org.docx4j.wml.P parentParagraph)
Creates a new run with the specified text and inherits the style of the parent paragraph.
|
static java.lang.String |
getText(org.docx4j.wml.R run)
Returns the text string of a run.
|
static void |
setText(org.docx4j.wml.R run,
java.lang.String text)
Sets the text of the given run to the given value.
|
public static java.lang.String getText(org.docx4j.wml.R run)
run - the run whose text to get.public static void applyParagraphStyle(org.docx4j.wml.P p,
org.docx4j.wml.R run)
p - the paragraph whose style to use.run - the Run to which the style should be applied.public static void setText(org.docx4j.wml.R run,
java.lang.String text)
run - the run whose text to change.text - the text to set.public static org.docx4j.wml.R create(java.lang.String text)
text - the initial text of the run.public static org.docx4j.wml.R create(java.lang.Object content)
content - the content of the run.public static org.docx4j.wml.R create(java.lang.String text,
org.docx4j.wml.P parentParagraph)
text - the initial text of the run.parentParagraph - the parent paragraph whose style to inherit.Copyright © 2017. All rights reserved.