关于智能标记

8536105 2011-06-23 09:33:41
自定义的控件继承了TextBox,按照网上几遍文章,添加了智能标记相关代码。
相应的智能标记也能看到了,可是原来TextBox的智能标记看不到了。
public override DesignerActionItemCollection GetSortedActionItems()
{

DesignerActionItemCollection items = new DesignerActionItemCollection();
if (DockStyle.None == adSchedule.Dock)
items.Add(new DesignerActionMethodItem(this, "ParentComponentStop", "在父容器中停靠"));
else
items.Add(new DesignerActionMethodItem(this, "CancelParentComponentStop", "取消在父容器中停靠"));
return items;
}
应该和上面的 DesignerActionItemCollection items = new DesignerActionItemCollection();
有关,怎样获取原来TextBox的DesignerActionItemCollection集合,
谢谢
...全文
85 6 打赏 收藏 转发到动态 举报
写回复
用AI写文章
6 条回复
切换为时间正序
请发表友善的回复…
发表回复
tzwsoho 2011-11-07
  • 打赏
  • 举报
回复
base.GetSortedActionItems()不行么?
8536105 2011-06-27
  • 打赏
  • 举报
回复
有人知道吗?
qq183670101 2011-06-23
  • 打赏
  • 举报
回复
和你在 一样的,我也是在做CS 控件,这个 一下两下也说不清。
倒霉熊 2011-06-23
  • 打赏
  • 举报
回复
嗯,帮你顶把,不会。
8536105 2011-06-23
  • 打赏
  • 举报
回复
楼上,给个例子

110,534

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术 C#
社区管理员
  • C#
  • Web++
  • by_封爱
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

让您成为最强悍的C#开发者

试试用AI创作助手写篇文章吧