Aspose.words Shape图片属性以及位置
Shape shape = new Shape(_doc, ShapeType.Image);//shape.shape.ImageData.SetImage(strImage);shape.Width = width;//设置宽和高shape.Height = height;shape.HorizontalAlignment = Aspose.Wor...
·
Shape shape = new Shape(_doc, ShapeType.Image);
//shape.
shape.ImageData.SetImage(strImage);
shape.Width = width;//设置宽和高
shape.Height = height;
shape.HorizontalAlignment = Aspose.Words.Drawing.HorizontalAlignment.Center;//图片居中对齐
//手动设置图片移动
shape.Top += 10;
shape.Left += 10;
shape.WrapType = WrapType.Inline;//设置图片样式,当前为嵌入型
cell.FirstParagraph.ChildNodes.Add(shape);
更多推荐
所有评论(0)