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

ConstructorDescription
RichTextBoxField(Page page, Rectangle rect)Constructor for Rich Text Box field.
RichTextBoxField(Page page, Rectangle rect)Constructor for Rich Text Box field.

Methods

MethodDescription
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:

ParameterTypeDescription
pagePagePage where field will be placed.
rectjava.awt.Rectanglejava.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:

ParameterTypeDescription
pagePagePage where field will be placed.
rectRectanglecom.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:

ParameterTypeDescription
valuejava.lang.StringString 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:

ParameterTypeDescription
valuejava.lang.StringString 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:

ParameterTypeDescription
valuejava.lang.StringString 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:

ParameterTypeDescription
valuejava.lang.StringString 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:

ParameterTypeDescription
valueintJustification value