我想知道以下是否可行:
将工具提示添加到特定文本(代码编辑器),如:
var ToolTip1 = new System.Windows.Forms.ToolTip
{
AutomaticDelay = 5000,
AutoPopDelay = 50000,
InitialDelay = 100,
ReshowDelay = 500
};
ToolTip1.SetToolTip(rtb, "Represents text as a series of Unicode characters");*/
但是在文本里面是这样的:
我想知道怎么做。
答案 0 :(得分:1)
您必须在属性上方添加XML文档,如下所示:
/// <summary>
/// Add your description here
/// </summary>
public String[] xm = { "XmlReadNode", "XmlWriteNode" }
编辑: 问题澄清后的更新
/// <summary>
/// Your write description
/// </summary>
private const string write = "XmlWriteNode";
/// <summary>
/// Your read description.
/// </summary>
private const string read = "XmlReadNode";
/// <summary>
/// Add your object description here
/// </summary>
public String[] xm =
{
read, write
};