如何在C#中的字符串集合编辑器中添加组合框项目值?(How to add a combobox item value in the string collection editor in C#?)

我可以使用以下代码将项目及其值添加到组合框中。

combobox1.Items.add(new Item("text","value"));

如何向字符串集合编辑器中的文本添加值? 我只能在字符串集合编辑器中添加文本。

I can add an item and its value to a combobox with the following code.

combobox1.Items.add(new Item("text","value"));

How do I add a value to a text in string collection editor? I can only add text in the string collection editor.

最满意答案

恐怕只能使用Visual Studio内置编辑器指定文本。

I'm afraid you can only specify the text using the Visual Studio built-in editor.

更多推荐