如何在Table的Cell中添加HypertextLink
如何在Table的Cell中添加HypertextLink。例子中,只能往HypertextLinks中添加,不能添加到指定的地方?
// Create a HypertextLink object
TXTextControl.HypertextLink MyLink =
new TXTextControl.HypertextLink(
"Text Control Web Site",
"http://www.textcontrol.com");
// Insert the hyperlink into the document
textControl1.HypertextLinks.Add(MyLink); 回复 1楼forachange的帖子
forachange 你好,
可以选通过 select 方法指定当前文本位置,在插入:
private void addlinkToolStripMenuItem_Click(object sender, EventArgs e)
{
TXTextControl.HypertextLink MyLink =new TXTextControl.HypertextLink("Text Control Web Site","http://www.textcontrol.com");
// Insert the hyperlink into the document
this.textControl1.Select(2, 0);
textControl1.HypertextLinks.Add(MyLink);
}
页:
[1]