TextOverflowMode
Inheritance: java.lang.Object, java.lang.Enum
public enum TextOverflowMode extends Enum<TextOverflowMode>
Defines text overflow mode for rendering spreadsheet documents into HTML.
The TextOverflowMode enum represents different modes for handling text overflow in the GroupDocs.Viewer component. It provides a set of predefined options that can be used to control how text is displayed when it exceeds the available space in cells during the rendering of spreadsheet documents into HTML. For details, see the documentation.
Example usage:
HtmlViewOptions htmlViewOptions = HtmlViewOptions.forEmbeddedResources();
htmlViewOptions.setSpreadsheetOptions(SpreadsheetOptions.forOnePagePerSheet());
htmlViewOptions.getSpreadsheetOptions().setTextOverflowMode(TextOverflowMode.HIDE_TEXT);
try (Viewer viewer = new Viewer("document.xlsx")) {
viewer.view(htmlViewOptions);
// Use the viewer object for further operations
}
Fields
Field | Description |
---|---|
OVERLAY | Overlay next cells even if they are not empty. |
OVERLAY_IF_NEXT_IS_EMPTY | Overlay next cells only if they are empty. |
AUTO_FIT_COLUMN | Expand columns to fit the text. |
HIDE_TEXT | Hide the overflow text. |
Methods
Method | Description |
---|---|
values() | |
valueOf(String name) |
OVERLAY
public static final TextOverflowMode OVERLAY
Overlay next cells even if they are not empty. This mode allows the text to overflow into the adjacent cells, regardless of their content.
For details, see the documentation.
OVERLAY_IF_NEXT_IS_EMPTY
public static final TextOverflowMode OVERLAY_IF_NEXT_IS_EMPTY
Overlay next cells only if they are empty. This mode allows the text to overflow into the adjacent cells only if those cells are empty.
For details, see the documentation.
AUTO_FIT_COLUMN
public static final TextOverflowMode AUTO_FIT_COLUMN
Expand columns to fit the text. This mode automatically adjusts the width of the columns to accommodate the overflowing text.
For details, see the documentation.
HIDE_TEXT
public static final TextOverflowMode HIDE_TEXT
Hide the overflow text. This mode hides the overflowing text, preventing it from being displayed.
For details, see the documentation.
values()
public static TextOverflowMode[] values()
Returns: com.groupdocs.viewer.options.TextOverflowMode[]
valueOf(String name)
public static TextOverflowMode valueOf(String name)
Parameters:
Parameter | Type | Description |
---|---|---|
name | java.lang.String |
Returns: TextOverflowMode