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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

dessli
Copy link

@dessli dessli commented Nov 20, 2024

浮动图像

可以通过MiniWordPicture扩展参数配置图片悬浮环绕在文字上或文字下
MiniWordPicture 扩展参数。

  • WrappingType: MiniWordPictureWrappingType.Anchor 浮动图像
  • HorizontalPositionOffset: 设置图片相对于锚点的水平偏移量(以像素为单位)
  • VerticalPositionOffset:设置图片相对于锚点的垂直偏移量(以像素为单位)
  • BehindDoc: 控制图片是否显示在文档文字的后方
  • AllowOverlap: 控制图片是否允许与其他图片或对象重叠
new MiniWordPicture() { Path = "image.png", Width = 160, Height = 160, WrappingType = MiniWordPictureWrappingType.Anchor, HorizontalPositionOffset = 400};

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant