Skip to content

Commit

Permalink
Refs #6 - added getCellStyle to XCell.
Browse files Browse the repository at this point in the history
  • Loading branch information
cbmarcum committed Jul 2, 2020
1 parent a06a0f5 commit f1009d2
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion src/main/groovy/org/openoffice/guno/SpreadsheetExtension.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -376,6 +376,16 @@ class SpreadsheetExtension {
return result
}

/** Returns the CellStyle property.
* @return Object value determined by the cell style.
*/
static Object getCellStyle(final XCell self) {
XPropertySet xCellProps = UnoRuntime.queryInterface(
XPropertySet.class, self)
Object result = xCellProps.getPropertyValue("CellStyle")
return result
}

/** Sets the CellStyle property with the value.
* @param value The value to set.
*/
Expand All @@ -391,7 +401,7 @@ class SpreadsheetExtension {
}

/** Returns the value of the VertJustify property.
* @return Integer value of a type detemined by the property.
* @return Integer value of a type determined by the property.
*/
static Integer getVertJustify(final XCell self) {
int result = self.getPropertyValue("VertJustify").value
Expand Down

0 comments on commit f1009d2

Please sign in to comment.