简体   繁体   English

WinForms:如何在文本段落中对齐LinkLabel?

[英]WinForms: How to align a LinkLabel within a paragraph of text?

I have a label being populated with dynamic text. 我有一个充满动态文本的标签。 It is often a paragraph or so in length. 它通常是一个段落左右的长度。 I need to seamlessly integrate a LinkLabel at the end of this paragraph with the words "View more ..." . 我需要在本段末尾与“查看更多...”字样无缝集成LinkLabel。

It should look like this: 它看起来应该像这样:

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Lorem ipsum dolor坐下,一直保持着安静的状态。 Curabitur laoreet bibendum tortor. Curabitur laoreet bibendum tortor。 Donec lacinia orci euismod lorem mollis consectetur. Donec lacinia orci euismod lorem mollis consectetur。 Pellentesque velit lacus, auctor in dignissim ac, malesuada at justo. Pellentesque velit lacus,dignissim ac的拍卖师,justo的malesuada。 Praesent bibendum tempus facilisis. 普里森比本森植物。 View more ... 查看更多 ...

I've included a Label and a LinkLabel within a panel but cannot align these two controls so that they flow together seamlessly. 我已经在面板中包含了Label和LinkLabel,但是无法对齐这两个控件,因此它们无法无缝流动在一起。

How do I accomplish this within WinForms? 如何在WinForms中完成此操作?

Thank you. 谢谢。

将所有文本添加到LinkLabel,并使用LinkArea属性设置文本中实际链接的区域。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM