最新下载
热门教程
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
Windows Forms类层次(转)
时间:2022-07-02 11:40:09 编辑:袖梨 来源:一聚教程网
The .NET Framework通过 System.Windows.Forms 名字空间提供了组成基于Windows Forms应用程序的所有的类.继承层次通过.NET Windows Forms提供了许多公共特征,提供了许多控件和forms一致的属性集和方法. 一些类解释如下.
《Control》
Control 类是其他控件的基础类.它提供了控件的基本功能,像大小, 可视, 以及tab顺序.
《ScrollableControl》
ScrollableControl 类直接继承自Control 类并且提供了自动滚动能力给所有需要滚动条的控件.
《ContainerControl》
ContainerControl 类直接继承自ScrollableControl 类并且添加了标志和焦点管理功能去放置其他控件.
《Form》
Form 类直接继承自ContainerControl 类并且描述了所有显示在应用程序中的窗口.Form 类提供的属性和方法允许你显示不同类型的forms, 包含对话框和多文档界面 (MDI) forms.所有Windows Forms 都派生自这个类因为它提供了forms 所需要的基本功能.
《UserControl》
UserControl 类也直接继承自ContainerControl 类并且提供了空的控件让你可以使用Windows Forms Designer 用来创建你自己的控件
《Control》
Control 类是其他控件的基础类.它提供了控件的基本功能,像大小, 可视, 以及tab顺序.
《ScrollableControl》
ScrollableControl 类直接继承自Control 类并且提供了自动滚动能力给所有需要滚动条的控件.
《ContainerControl》
ContainerControl 类直接继承自ScrollableControl 类并且添加了标志和焦点管理功能去放置其他控件.
《Form》
Form 类直接继承自ContainerControl 类并且描述了所有显示在应用程序中的窗口.Form 类提供的属性和方法允许你显示不同类型的forms, 包含对话框和多文档界面 (MDI) forms.所有Windows Forms 都派生自这个类因为它提供了forms 所需要的基本功能.
《UserControl》
UserControl 类也直接继承自ContainerControl 类并且提供了空的控件让你可以使用Windows Forms Designer 用来创建你自己的控件
相关文章
- 碧蓝航线的里雅斯特期待的便当时间皮肤有什么 04-30
- 明日之后踏浪逐星服装展示攻略 04-30
- 深空之眼幽月塞勒涅刻印搭配核心思路 04-30
- 明日之后红杉茶会护卫队首领BOSS有哪些 04-30
- CF手游段位奖励汇总攻略 04-30
- 无期迷途5-13怎么走攻略 04-30