ListViewArray.AfterLabelEdit 事件
定义
当用户编辑项的标签时发生。Occurs when the label for an item is edited by the user.
public:
event System::Windows::Forms::LabelEditEventHandler ^ AfterLabelEdit;
public event System.Windows.Forms.LabelEditEventHandler AfterLabelEdit;
member this.AfterLabelEdit : System.Windows.Forms.LabelEditEventHandler
Public Custom Event AfterLabelEdit As LabelEditEventHandler
Public Event AfterLabelEdit As LabelEditEventHandler
事件类型
注解
AfterLabelEdit当用户完成修改项的文本时发生此事件。The AfterLabelEdit event occurs when the user finishes modifying the text for an item. 用户为该项键入的新字符串将传递给事件,事件处理程序可以拒绝更改。The new string that the user types for the item is passed to the event, and the event handler can reject the change. 如果事件处理程序拒绝更改,则文本恢复为用户开始编辑该项之前的文本。If the event handler rejects the change, the text reverts to the text as it was before the user began editing the item.
为了 AfterLabelEdit 引发事件, LabelEdit 必须将控件的属性 ListView 设置为 true 。In order for the AfterLabelEdit event to be raised, the LabelEdit property of the ListView control must be set to true.
有关如何处理事件的详细信息,请参阅 处理和引发事件。For more information about how to handle events, see Handling and Raising Events.
备注
Microsoft.VisualBasic.Compatibility.VB6 命名空间中的函数和对象用于工具从 Visual Basic 6.0 升级到 Visual Basic。Functions and objects in the Microsoft.VisualBasic.Compatibility.VB6 namespace are provided for use by the tools for upgrading from Visual Basic 6.0 to Visual Basic. 多数情况下,这些函数和对象可再现 .NET Framework 中其他命名空间的功能。In most cases, these functions and objects duplicate functionality that you can find in other namespaces in the .NET Framework. 只有当 Visual Basic 6.0 代码模型与 .NET Framework 实现有显著区别时,才必须使用这些函数和对象。They are necessary only when the Visual Basic 6.0 code model differs significantly from the .NET Framework implementation.