public class SimpleClientAnchor extends Object implements org.apache.poi.ss.usermodel.ClientAnchor
| Constructor and Description |
|---|
SimpleClientAnchor(int col1,
int row1,
int col2,
int row2)
构造
通过定义左上角和右下角的单元格,创建一个ClientAnchor对象 默认偏移为0,默认type为: AnchorType#MOVE_AND_RESIZE. |
SimpleClientAnchor(int dx1,
int dy1,
int dx2,
int dy2,
int col1,
int row1,
int col2,
int row2)
构造
通过定义左上角和右下角的单元格,以及单元格中的偏移量,创建一个ClientAnchor对象 默认type为: AnchorType#MOVE_AND_RESIZE. |
| Modifier and Type | Method and Description |
|---|---|
org.apache.poi.ss.usermodel.ClientAnchor |
copyTo(org.apache.poi.ss.usermodel.ClientAnchor clientAnchor)
将当前对象中的值复制到目标对象中
|
org.apache.poi.ss.usermodel.ClientAnchor.AnchorType |
getAnchorType() |
short |
getCol1() |
short |
getCol2() |
int |
getDx1() |
int |
getDx2() |
int |
getDy1() |
int |
getDy2() |
int |
getRow1() |
int |
getRow2() |
void |
setAnchorType(org.apache.poi.ss.usermodel.ClientAnchor.AnchorType anchorType) |
void |
setCol1(int col1) |
void |
setCol2(int col2) |
void |
setDx1(int dx1) |
void |
setDx2(int dx2) |
void |
setDy1(int dy1) |
void |
setDy2(int dy2) |
void |
setRow1(int row1) |
void |
setRow2(int row2) |
public SimpleClientAnchor(int col1,
int row1,
int col2,
int row2)
AnchorType#MOVE_AND_RESIZE.col1 - 指定起始的列,下标从0开始row1 - 指定起始的行,下标从0开始col2 - 指定结束的列,下标从0开始row2 - 指定结束的行,下标从0开始public SimpleClientAnchor(int dx1,
int dy1,
int dx2,
int dy2,
int col1,
int row1,
int col2,
int row2)
AnchorType#MOVE_AND_RESIZE.dx1 - 起始单元格中的x偏移像素dy1 - 起始单元格中的y偏移像素dx2 - 结束单元格中的x偏移像素dy2 - 结束单元格中的y偏移像素col1 - 指定起始的列,下标从0开始row1 - 指定起始的行,下标从0开始col2 - 指定结束的列,下标从0开始row2 - 指定结束的行,下标从0开始public int getDx1()
getDx1 in interface org.apache.poi.ss.usermodel.ClientAnchorpublic void setDx1(int dx1)
setDx1 in interface org.apache.poi.ss.usermodel.ClientAnchorpublic int getDy1()
getDy1 in interface org.apache.poi.ss.usermodel.ClientAnchorpublic void setDy1(int dy1)
setDy1 in interface org.apache.poi.ss.usermodel.ClientAnchorpublic int getDx2()
getDx2 in interface org.apache.poi.ss.usermodel.ClientAnchorpublic void setDx2(int dx2)
setDx2 in interface org.apache.poi.ss.usermodel.ClientAnchorpublic int getDy2()
getDy2 in interface org.apache.poi.ss.usermodel.ClientAnchorpublic void setDy2(int dy2)
setDy2 in interface org.apache.poi.ss.usermodel.ClientAnchorpublic short getCol1()
getCol1 in interface org.apache.poi.ss.usermodel.ClientAnchorpublic void setCol1(int col1)
setCol1 in interface org.apache.poi.ss.usermodel.ClientAnchorpublic int getRow1()
getRow1 in interface org.apache.poi.ss.usermodel.ClientAnchorpublic void setRow1(int row1)
setRow1 in interface org.apache.poi.ss.usermodel.ClientAnchorpublic short getCol2()
getCol2 in interface org.apache.poi.ss.usermodel.ClientAnchorpublic void setCol2(int col2)
setCol2 in interface org.apache.poi.ss.usermodel.ClientAnchorpublic int getRow2()
getRow2 in interface org.apache.poi.ss.usermodel.ClientAnchorpublic void setRow2(int row2)
setRow2 in interface org.apache.poi.ss.usermodel.ClientAnchorpublic org.apache.poi.ss.usermodel.ClientAnchor.AnchorType getAnchorType()
getAnchorType in interface org.apache.poi.ss.usermodel.ClientAnchorpublic void setAnchorType(org.apache.poi.ss.usermodel.ClientAnchor.AnchorType anchorType)
setAnchorType in interface org.apache.poi.ss.usermodel.ClientAnchorpublic org.apache.poi.ss.usermodel.ClientAnchor copyTo(org.apache.poi.ss.usermodel.ClientAnchor clientAnchor)
clientAnchor - ClientAnchorCopyright © 2025. All rights reserved.