public class SpreadsheetWorksheet extends ContentPart
Represents an Excel document worksheet.
| Modifier and Type | Method and Description |
|---|---|
void |
addModernWordArtWatermark(TextWatermark watermark,
SpreadsheetShapeSettings shapeSettings) |
void |
addWatermark(Watermark watermark,
SpreadsheetShapeSettings shapeSettings,
ISpreadsheetWatermarkEffects effects) |
void |
addWatermarkAsBackground(Watermark watermark,
int backgroundWidth,
int backgroundHeight) |
void |
addWatermarkIntoHeaderFooter(Watermark watermark) |
void |
addWordArtWatermark(Watermark watermark,
SpreadsheetShapeSettings shapeSettings,
ISpreadsheetWatermarkEffects effects) |
com.aspose.cells.Worksheet |
getAsposeCellsWorksheet() |
SpreadsheetAttachmentCollection |
getAttachments()
Gets the collection of all attachments of this
. |
SpreadsheetWatermarkableImage |
getBackgroundImage()
Gets the background image of this
. |
SpreadsheetChartCollection |
getCharts()
Gets the collection of all charts of this
. |
double |
getColumnRangeWidth(int startColumn,
int endColumn) |
double |
getColumnWidth(int column)
Gets the width of the specified column in points.
|
int |
getColumnWidthPx(int column)
Gets the width of the specified column in pixels.
|
double |
getColumnX(int columnIndex) |
double |
getContentAreaHeight()
Gets the height of the content area in points.
|
int |
getContentAreaHeightPx()
Gets the height of the content area in pixels.
|
double |
getContentAreaWidth()
Gets the width of the content area in points.
|
int |
getContentAreaWidthPx()
Gets the width of the content area in pixels.
|
SpreadsheetHeaderFooterCollection |
getHeadersFooters()
Gets the collection of worksheet headers and footers.
|
SpreadsheetPageSetup |
getPageSetup()
Gets the printing page setup for this
. |
double |
getRowHeight(int row)
Gets the height of the specified row in points.
|
int |
getRowHeightPx(int row)
Gets the height of the specified row in pixels.
|
double |
getRowRangeHeight(int startRow,
int endRow) |
double |
getRowY(int rowIndex) |
SpreadsheetShapeCollection |
getShapes()
Gets the collection of all shapes of this
. |
Size |
getSpreadsheetDataSizeInPoints() |
void |
resetBackgroundImageReference() |
void |
setBackgroundImage(SpreadsheetWatermarkableImage value)
Sets the background image of this
. |
addWatermark, afterWatermarkAdding, checkWatermarkingLicenseRestrictions, findImages, findImages, getParts, getSearchWatermarksInParts, getStrategyManager, getTopParent, search, search, setParts, tryGetWatermarkerSettingspublic final void addModernWordArtWatermark(TextWatermark watermark, SpreadsheetShapeSettings shapeSettings)
public final void addWatermark(Watermark watermark, SpreadsheetShapeSettings shapeSettings, ISpreadsheetWatermarkEffects effects)
public final void addWatermarkAsBackground(Watermark watermark, int backgroundWidth, int backgroundHeight)
public final void addWatermarkIntoHeaderFooter(Watermark watermark)
public final void addWordArtWatermark(Watermark watermark, SpreadsheetShapeSettings shapeSettings, ISpreadsheetWatermarkEffects effects)
public final com.aspose.cells.Worksheet getAsposeCellsWorksheet()
public final SpreadsheetAttachmentCollection getAttachments()
SpreadsheetWorksheet.SpreadsheetWorksheet.public final SpreadsheetWatermarkableImage getBackgroundImage()
SpreadsheetWorksheet.SpreadsheetWorksheet or null
if the worksheet has no background image.public final SpreadsheetChartCollection getCharts()
SpreadsheetWorksheet.SpreadsheetWorksheet.public final double getColumnRangeWidth(int startColumn,
int endColumn)
public final double getColumnWidth(int column)
Gets the width of the specified column in points.
column - The column index.public final int getColumnWidthPx(int column)
Gets the width of the specified column in pixels.
column - The column index.public final double getColumnX(int columnIndex)
public final double getContentAreaHeight()
Gets the height of the content area in points.
public final int getContentAreaHeightPx()
Gets the height of the content area in pixels.
public final double getContentAreaWidth()
Gets the width of the content area in points.
public final int getContentAreaWidthPx()
Gets the width of the content area in pixels.
public final SpreadsheetHeaderFooterCollection getHeadersFooters()
Gets the collection of worksheet headers and footers.
public final SpreadsheetPageSetup getPageSetup()
SpreadsheetWorksheet.SpreadsheetWorksheet.public final double getRowHeight(int row)
Gets the height of the specified row in points.
row - The row index.public final int getRowHeightPx(int row)
Gets the height of the specified row in pixels.
row - The row index.public final double getRowRangeHeight(int startRow,
int endRow)
public final double getRowY(int rowIndex)
public final SpreadsheetShapeCollection getShapes()
SpreadsheetWorksheet.SpreadsheetWorksheet.public Size getSpreadsheetDataSizeInPoints()
public final void resetBackgroundImageReference()
public final void setBackgroundImage(SpreadsheetWatermarkableImage value)
SpreadsheetWorksheet.value - The background image of this SpreadsheetWorksheet or null
if the background image should be removed.Copyright © 2026. All rights reserved.