TextLineBreak Class
A text line break that is a part of a text run.
Declaration
public class TextLineBreak extends OfficeTextRun
Remarks
The following code snippet adds a line break within a paragraph to split text into multiple lines:
import com.devexpress.docs.presentation.*;
import com.devexpress.docs.office.*;
//...
// Create an empty paragraph.
TextParagraph textParagraph = new TextParagraph();
// Add the first text run.
textParagraph.getRuns().add(new TextRun("First line."));
// Insert a line break between text runs.
textParagraph.getRuns().add(new TextLineBreak());
// Add the second text run after the line break.
textParagraph.getRuns().add(new TextRun("Second line."));
// Add the paragraph to the shape's text area.
shape.getTextArea().getParagraphs().add(textParagraph);
Inherited Members
com.devexpress.system.JavaObject.clone()
com.devexpress.system.JavaObject.equals(java.lang.Object)
com.devexpress.system.JavaObject.hashCode()
com.devexpress.system.JavaObject.initFields()
com.devexpress.system.JavaObject.memberwiseClone()
com.devexpress.system.JavaObject.toString()
java.lang.Object.finalize()
java.lang.Object.getClass()
java.lang.Object.notify()
java.lang.Object.notifyAll()
java.lang.Object.wait()
java.lang.Object.wait(long)
java.lang.Object.wait(long,int)
Inheritance
Object
JavaObject
OfficeObject
OfficeTextRun
TextLineBreak
TextLineBreak()
Initializes a new instance of the TextLineBreak class.
Declaration
public TextLineBreak()