Class ObjectAnchor
java.lang.Object
com.independentsoft.office.spreadsheet.ObjectAnchor
The Class ObjectAnchor. Represents the object anchor (anchor element) of an embedded control
or object, tying it to a cell range (CT_ObjectAnchor).
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()getFrom()Gets the top-left anchor point.getTo()Gets the bottom-right anchor point.booleanChecks whether the object moves with the cells it is anchored to.booleanChecks whether the object resizes with the cells it is anchored to.voidsetFrom(StartAnchorPoint from)Sets the top-left anchor point.voidsetMoveWithCells(boolean moveWithCells)Sets whether the object moves with the cells it is anchored to.voidsetSizeWithCells(boolean sizeWithCells)Sets whether the object resizes with the cells it is anchored to.voidsetTo(EndAnchorPoint to)Sets the bottom-right anchor point.toString()
-
Constructor Details
-
ObjectAnchor
public ObjectAnchor()Instantiates a new object anchor.
-
-
Method Details
-
clone
-
toString
-
isMoveWithCells
public boolean isMoveWithCells()Checks whether the object moves with the cells it is anchored to.- Returns:
- true, if the object moves with cells
-
setMoveWithCells
public void setMoveWithCells(boolean moveWithCells)Sets whether the object moves with the cells it is anchored to.- Parameters:
moveWithCells- the new move with cells
-
isSizeWithCells
public boolean isSizeWithCells()Checks whether the object resizes with the cells it is anchored to.- Returns:
- true, if the object resizes with cells
-
setSizeWithCells
public void setSizeWithCells(boolean sizeWithCells)Sets whether the object resizes with the cells it is anchored to.- Parameters:
sizeWithCells- the new size with cells
-
getFrom
Gets the top-left anchor point.- Returns:
- the from
-
setFrom
Sets the top-left anchor point.- Parameters:
from- the new from
-
getTo
Gets the bottom-right anchor point.- Returns:
- the to
-
setTo
Sets the bottom-right anchor point.- Parameters:
to- the new to
-