问题标签 [collectioneditor]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
1 回答
620 浏览

c# - 如何启用collectioneditor的添加和删除按钮

我为我的集合类派生了一个集合编辑器。但是集合编辑器中的添加和删除按钮未启用,因此我无法通过设计器添加或删除集合中的实例。

这是我使用的代码,

谁能告诉我,如何在收藏编辑器中启用添加、删除按钮并使其适用于我的收藏?

问候,

0 投票
1 回答
884 浏览

c# - C# TabControl,如何创建自定义 TabPages 集合编辑器?

我自定义了一个TabPage,但是发现有如下问题:

首先,我创建了两个自定义 TabPage,它起作用了。

但是当我关闭文档然后重新打开文档时出现了问题:

在此处输入图像描述

看,TabPage变成了四个,但是我在“designer.cs”文档中发现了问题。

正常的TabControl添加TabPage后,没有“TabPages.AddRange()”这个代码,怎么解决?

这是我的代码:

提前致谢。

0 投票
1 回答
1862 浏览

c# - 是否有 PropertyGrid 集合编辑器“添加”按钮事件或覆盖?

单击 Windows 窗体 PropertyGrid 集合编辑器“添加”按钮时是否触发了事件或函数?(见图)

我想添加一些自定义代码以在按下此按钮时运行。

我将自定义集合用于对象列表(CollectionBase)。按下“添加”按钮时会调用我的构造函数,但我在调用列表中看不到可以插入一些自定义代码的其他函数。

在此处输入图像描述

0 投票
0 回答
162 浏览

c# - 使用项目集合编辑器的自定义菜单条控制

我创建了一个自定义菜单条控件,并尝试利用为基本菜单条项显示的“项目集合编辑器”。出现的是 ToolStripItem 集合编辑器。虽然 ToolStrip 编辑器可能就足够了,但当单击添加时,会出现错误“无法创建抽象类”。

任何想法都非常感谢。

0 投票
0 回答
134 浏览

delphi - 如何将图标添加到标准集合编辑器?

TCollection我有一个使用和的自定义控件TCollectionItem。在集合编辑器中,我想为每个列表项添加图标,该列表项由内部TImageList(在其父组件内部)提供。集合项本身代表图标,我想在此编辑器中显示相应的图标。

Delphi 中的集合编辑器

如何制作自定义集合编辑器以将我自己的图标添加到列表中?

0 投票
0 回答
216 浏览

c# - 编辑列表 in which "object" contains other objects using PropertyGrid and CollectionEditor in C#

I have a program in which I upload a DLL containing various types of objects. When uploaded, I create an instance of each type and save i

I have a program in which I upload a DLL containing various types of objects. When uploaded, I create an instance of each type and save it into a Treeview (these objects may contain other objects inside). The purpose of the program is to edit these objects, so I have a propertyGrid which allows me to edit the selected object in the Treeview. This works perfectly fine for almost every object. I'm just having problems editing objects with properties whose types are List of xObjectType and this xObjectType has a yObjectType as property: For example, these classes are defined in the DLL, I have to edit FunctionCommand, however when I select the property Function in the propertyGrid a CollectionEditor pops up, this Collection Editor works fine when inner properties are of type int, string, byte[] etc. However I cannot edit properties which are more complex objects. In this case the RFunction property is disabled.

I can edit these type of objects correctly outside the CollectionEditor but not inside of it. Why does this specific property is not editable, How can I make to edit complex objects inside the CollectionEditor?

Edit: This is the way I'am creating the instances in the Treeview, this includes creating the instance of a List<> if it is necessary, The "types" variable is a list which includes all the types from the DLL:


Combine 10 cycles into one in Javascript

Here's my code with cycles and I want to make it shorter (in one cycle if possible).

etc... to i < 1

I thought about it that case,

but it's was wrong. Help pls!

here's look of task(maze)

here's look of task(maze)