Support.GetCancel(Button) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
注意
Microsoft.VisualBasic.Compatibility.* classes are obsolete and supported within 32 bit processes only. http://go.microsoft.com/fwlink/?linkid=160862
获取一个值,该值指示窗体上的取消按钮是否 Button 为取消按钮。
public:
static bool GetCancel(System::Windows::Forms::Button ^ btn);
public static bool GetCancel(System.Windows.Forms.Button btn);
[System.Obsolete("Microsoft.VisualBasic.Compatibility.* classes are obsolete and supported within 32 bit processes only. http://go.microsoft.com/fwlink/?linkid=160862")]
public static bool GetCancel(System.Windows.Forms.Button btn);
static member GetCancel : System.Windows.Forms.Button -> bool
[<System.Obsolete("Microsoft.VisualBasic.Compatibility.* classes are obsolete and supported within 32 bit processes only. http://go.microsoft.com/fwlink/?linkid=160862")>]
static member GetCancel : System.Windows.Forms.Button -> bool
Public Function GetCancel (btn As Button) As Boolean
参数
返回
true 如果 btn 为“取消”按钮,则为 ;否则为 false。
- 属性
注解
此函数等效于检查 CancelButton a Form. 的属性。
注释
命名空间中的 Microsoft.VisualBasic.Compatibility.VB6 函数和对象由用于从 Visual Basic 6.0 升级到 Visual Basic 2008 的工具使用。 在大多数情况下,这些函数和对象重复了可在 .NET Framework 中的其他命名空间中找到的功能。 仅当 Visual Basic 6.0 代码模型与 .NET Framework 实现明显不同时,才需要它们。