Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

扩展:浮动图像,可配置图片浮动于文字上 #92

Merged
merged 1 commit into from
Nov 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions README.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -384,6 +384,17 @@ var value = new
MiniWord.SaveAsByTemplate(path, templatePath, value);
```

### 浮动图像

可以通过MiniWordPicture扩展参数配置图片悬浮环绕在文字上或文字下
`MiniWordPicture` 扩展参数。
* WrappingType: MiniWordPictureWrappingType.Anchor 浮动图像
* HorizontalPositionOffset: 设置图片相对于锚点的水平偏移量(以像素为单位)
* VerticalPositionOffset:设置图片相对于锚点的垂直偏移量(以像素为单位)
* BehindDoc: 控制图片是否显示在文档文字的后方
* AllowOverlap: 控制图片是否允许与其他图片或对象重叠


## 例子


Expand Down
Loading
Loading