T - The type of the text element.public interface TextElement<T>
The TextElement interface defines the contract for a generic text element in the GroupDocs.Viewer component. It represents a text element with a specific type and provides methods to access and manipulate the text content.
Note: The default implementation of this interface is TextElementImpl.
| Modifier and Type | Method and Description |
|---|---|
double |
getHeight()
Retrieves the height of the rectangle that contains the element (in pixels).
|
T |
getValue()
Retrieves the value of the text element.
|
double |
getWidth()
Retrieves the width of the rectangle that contains the element (in pixels).
|
double |
getX()
Retrieves the X coordinate of the highest left point on the page layout where the rectangle that contains the element begins.
|
double |
getY()
Retrieves the Y coordinate of the highest left point on the page layout where the rectangle that contains the element begins.
|
void |
setHeight(double height)
Sets the height of the rectangle that contains the element (in pixels).
|
void |
setValue(T value)
Sets the value of the text element.
|
void |
setWidth(double width)
Sets the width of the rectangle that contains the element (in pixels).
|
void |
setX(double x)
Sets the X coordinate of the highest left point on the page layout where the rectangle that contains the element begins.
|
void |
setY(double y)
Sets the Y coordinate of the highest left point on the page layout where the rectangle that contains the element begins.
|
double getHeight()
Retrieves the height of the rectangle that contains the element (in pixels).
T getValue()
Retrieves the value of the text element.
double getWidth()
Retrieves the width of the rectangle that contains the element (in pixels).
double getX()
Retrieves the X coordinate of the highest left point on the page layout where the rectangle that contains the element begins.
double getY()
Retrieves the Y coordinate of the highest left point on the page layout where the rectangle that contains the element begins.
void setHeight(double height)
height - The new height.void setValue(T value)
value - The new value to be set for the text element.void setWidth(double width)
width - The new width.void setX(double x)
x - The new X coordinate.void setY(double y)
y - The new Y coordinate.Copyright © 2025. All rights reserved.