请选择 进入手机版 | 继续访问电脑版
 找回密码
 立即注册

QQ登录

只需一步,快速开始

jiankeyan

中级会员

98

主题

268

帖子

792

积分

中级会员

积分
792
jiankeyan
中级会员   /  发表于:2023-1-10 16:25  /   查看:879  /  回复:3
1金币
请问SpreadJS里的图片属性x、y、width、height在GCExcel里分别对应的是哪个属性?

最佳答案

查看完整内容

您好,这个java,这个是我找到的.net方法:

3 个回复

倒序浏览
最佳答案
最佳答案
jiankeyan
中级会员   /  发表于:2023-1-10 16:25:33
来自 3#
Ellia.Duan 发表于 2023-1-10 17:51
您好,可以查看此篇文章https://demo.grapecity.com.cn/documents-api-excel-java/docs/size-and-position- ...

您好,这个java,这个是我找到的.net方法:
  1.                     var sheet = workbook.Worksheets[i];
  2.                     foreach (GrapeCity.Documents.Excel.Drawing.IShape shape in sheet.Shapes)
  3.                     {
  4.                         if(shape.Type == ShapeType.Picture)
  5.                         {
  6.                                 shape.PictureFormat.Url;
  7.                                 shape.WidthInPixel;
  8.                                 shape.HeightInPixel;
  9.                                 shape.LeftInPixel;
  10.                                 shape.TopInPixel;
  11.                         }
  12.                     }
复制代码

评分

参与人数 1金币 +200 收起 理由
Ellia.Duan + 200

查看全部评分

回复 使用道具 举报
Ellia.DuanSpreadJS 开发认证
超级版主   /  发表于:2023-1-10 17:51:26
2#
您好,可以查看此篇文章https://demo.grapecity.com.cn/do ... ition-of-image.html

  1. rect.getX(), rect.getY(), rect.getWidth(), rect.getHeight()
复制代码


回复 使用道具 举报
Ellia.DuanSpreadJS 开发认证
超级版主   /  发表于:2023-1-12 15:53:24
4#
jiankeyan 发表于 2023-1-12 14:45
您好,这个java,这个是我找到的.net方法:

好的,您的问题解决了就好,这边为您送上金币奖励。那本帖就结贴啦。
回复 使用道具 举报
您需要登录后才可以回帖 登录 | 立即注册
返回顶部