Class RowProperties
java.lang.Object
com.independentsoft.office.odf.styles.RowProperties
Represents formatting properties for table rows.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()Creates a new object that is a deep copy of the current instance.Gets the background color for cell.Gets the background image.Gets the break after.Gets the break before.Gets the fixed row height.Gets the keep together.Gets the fixed minimum height for a row.voidsetBackgroundColor(String backgroundColor)Sets the background color for cell.voidsetBackgroundImage(BackgroundImage backgroundImage)Sets the background image.voidsetBreakAfter(Break breakAfter)Sets the break after.voidsetBreakBefore(Break breakBefore)Sets the break before.voidSets the fixed row height.voidsetKeepTogether(KeepTogether keepTogether)Sets the keep together.voidsetMinHeight(Size minHeight)Sets the fixed minimum height for a row.voidsetUseOptimalHeight(boolean useOptimalHeight)Specifies that a row height should be recalculated automatically if content in the row changes.toString()Converts the value of the current RowProperties object to its equivalent string representation.booleanSpecifies that a row height should be recalculated automatically if content in the row changes.
-
Constructor Details
-
RowProperties
public RowProperties()Initializes a new instance of the RowProperties class.
-
-
Method Details
-
clone
Creates a new object that is a deep copy of the current instance. -
toString
Converts the value of the current RowProperties object to its equivalent string representation. -
getHeight
Gets the fixed row height.- Returns:
- the height
-
setHeight
Sets the fixed row height.- Parameters:
height- the new height
-
getMinHeight
Gets the fixed minimum height for a row.- Returns:
- the min height
-
setMinHeight
Sets the fixed minimum height for a row.- Parameters:
minHeight- the new min height
-
useOptimalHeight
public boolean useOptimalHeight()Specifies that a row height should be recalculated automatically if content in the row changes.- Returns:
- true, if successful
-
setUseOptimalHeight
public void setUseOptimalHeight(boolean useOptimalHeight)Specifies that a row height should be recalculated automatically if content in the row changes.- Parameters:
useOptimalHeight- the new use optimal height
-
getBackgroundColor
Gets the background color for cell.- Returns:
- the background color
-
setBackgroundColor
Sets the background color for cell.- Parameters:
backgroundColor- the new background color
-
getBreakBefore
Gets the break before.- Returns:
- the break before
-
setBreakBefore
Sets the break before.- Parameters:
breakBefore- the new break before
-
getBreakAfter
Gets the break after.- Returns:
- the break after
-
setBreakAfter
Sets the break after.- Parameters:
breakAfter- the new break after
-
getKeepTogether
Gets the keep together.- Returns:
- the keep together
-
setKeepTogether
Sets the keep together.- Parameters:
keepTogether- the new keep together
-
getBackgroundImage
Gets the background image.- Returns:
- the background image
-
setBackgroundImage
Sets the background image.- Parameters:
backgroundImage- the new background image
-