RichTextBoxField
Inheritance: java.lang.Object, com.aspose.pdf.BaseParagraph, com.aspose.pdf.Annotation, com.aspose.pdf.WidgetAnnotation, com.aspose.pdf.Field, com.aspose.pdf.TextBoxField
public final class RichTextBoxField extends TextBoxField
Class describes rich text editor component.
Constructors
| Constructor | Description |
|---|---|
| RichTextBoxField(Page page, Rectangle rect) | Constructor for Rich Text Box field. |
| RichTextBoxField(Page page, Rectangle rect) | Constructor for Rich Text Box field. |
Methods
| Method | Description |
|---|---|
| getStyle() | Gets default style string of the rich text field. |
| setStyle(String value) | Sets default style string of the rich text field. |
| getRichTextValue() | Gets rich text value. |
| setRichTextValue(String value) | Sets rich text value. |
| getFormattedValue() | Gets formatted rich text value with markup. |
| setFormattedValue(String value) | Sets formatted rich text value with markup. |
| getValue() | Get Value of RichTextField. |
| setValue(String value) | Set Value of RichTextField. |
| getJustify() | Gets justification of the rich text box. |
| setJustify(int value) | Sets justification of the rich text box. |
RichTextBoxField(Page page, Rectangle rect)
public RichTextBoxField(Page page, Rectangle rect)
Constructor for Rich Text Box field.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| page | Page | Page where field will be placed. |
| rect | java.awt.Rectangle | java.awt.Rectangle Position of the field on the page. |
RichTextBoxField(Page page, Rectangle rect)
public RichTextBoxField(Page page, Rectangle rect)
Constructor for Rich Text Box field.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| page | Page | Page where field will be placed. |
| rect | Rectangle | com.aspose.pdf.Rectangle Position of the field on the page. |
getStyle()
public String getStyle()
Gets default style string of the rich text field.
Returns: java.lang.String - String value
setStyle(String value)
public void setStyle(String value)
Sets default style string of the rich text field.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | java.lang.String | String value |
getRichTextValue()
public String getRichTextValue()
Gets rich text value.
Returns: java.lang.String - String value
setRichTextValue(String value)
public void setRichTextValue(String value)
Sets rich text value.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | java.lang.String | String value |
getFormattedValue()
public String getFormattedValue()
Gets formatted rich text value with markup.
Returns: java.lang.String - String value
setFormattedValue(String value)
public void setFormattedValue(String value)
Sets formatted rich text value with markup.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | java.lang.String | String value |
getValue()
public String getValue()
Get Value of RichTextField.
Returns: java.lang.String - String value
setValue(String value)
public void setValue(String value)
Set Value of RichTextField.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | java.lang.String | String value |
getJustify()
public int getJustify()
Gets justification of the rich text box.
Returns: int - Justification value
setJustify(int value)
public void setJustify(int value)
Sets justification of the rich text box.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | int | Justification value |