C#宝石如何获得文本框或形状的位置
我想知道如何在Gembox DLL中获得文本框或形状的位置。
这是我的文本框:
var textBox1 = new TextBox(document, Layout.Floating(
new HorizontalPosition(15, LengthUnit.Pixel, HorizontalPositionAnchor.TopLeftCorner),
new VerticalPosition(70, LengthUnit.Pixel, VerticalPositionAnchor.TopLeftCorner),
new Size(pageSetup.PageWidth - 175, 100, LengthUnit.Point)),
ShapeType.RoundedRectangle);
textBox1.AdjustValues["adj"] = 5000;
textBox1.Outline.Fill.SetEmpty();
textBox1.Fill.SetSolid(Color.White);
现在我想访问水平和垂直位置。
感谢您的帮助。
I was wondering how I can get the position of a TextBox or a Shape inside the GemBox DLL.
This is my TextBox:
var textBox1 = new TextBox(document, Layout.Floating(
new HorizontalPosition(15, LengthUnit.Pixel, HorizontalPositionAnchor.TopLeftCorner),
new VerticalPosition(70, LengthUnit.Pixel, VerticalPositionAnchor.TopLeftCorner),
new Size(pageSetup.PageWidth - 175, 100, LengthUnit.Point)),
ShapeType.RoundedRectangle);
textBox1.AdjustValues["adj"] = 5000;
textBox1.Outline.Fill.SetEmpty();
textBox1.Fill.SetSolid(Color.White);
Now I want to get access to the Horizontal and Vertical position.
Thanks for any help.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
使用以下方式:
Use this: