0

我想知道以下是否可能:

将工具提示添加到特定文本(代码编辑器),例如:

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");*/

但是在这样的文本中:

在此处输入图像描述

我想知道怎么做。

4

1 回答 1

0

您必须在属性上方添加 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 
};
于 2013-04-12T08:15:31.117 回答