XtrReports、xrPictureBox 如何将图像右对齐? Winform开发工具
XtrReports, xrPictureBox how to align Image to right ? Winform Devexpress
我正在使用 Devexpress Winforms 12.2 版本。我在右侧设计了带有徽标的 XtraReport。当图像变小时,它会自动向左对齐。我需要设置右拉。他们无法在 属性 中设置对齐方式。如何在 xrPictureBox 的 BeforePrint 事件中以编程方式编写代码?
我试过这个但没用 xrPictureBox1.Image = ContentAlignment.MiddleRight;
显示错误 无法将类型 ContentAlignment 隐式转换为 Drawing.Image
提前致谢。
你最好搜索他们的支持频道,有几个关于这个主题的帖子,比如XTraReport - XRPictureBox alignment and XRPictureBox - Provide the capability to specify image alignment. From the last one looks like they finally provided out of the box solution XRPictureBox.ImageAlignment Property,但你需要升级到v15.1。如果不能,请检查链接中建议的一些解决方法是否适合您。
我正在使用 Devexpress Winforms 12.2 版本。我在右侧设计了带有徽标的 XtraReport。当图像变小时,它会自动向左对齐。我需要设置右拉。他们无法在 属性 中设置对齐方式。如何在 xrPictureBox 的 BeforePrint 事件中以编程方式编写代码?
我试过这个但没用 xrPictureBox1.Image = ContentAlignment.MiddleRight;
显示错误 无法将类型 ContentAlignment 隐式转换为 Drawing.Image
提前致谢。
你最好搜索他们的支持频道,有几个关于这个主题的帖子,比如XTraReport - XRPictureBox alignment and XRPictureBox - Provide the capability to specify image alignment. From the last one looks like they finally provided out of the box solution XRPictureBox.ImageAlignment Property,但你需要升级到v15.1。如果不能,请检查链接中建议的一些解决方法是否适合您。