csharp System.ComponentModel.Design.ComponentRenameEventArgs类(方法)实例源码

下面列出了csharp System.ComponentModel.Design.ComponentRenameEventArgs 类(方法)源码代码实例,从而了解它的用法。

作者:.NET开发    项目:System.ComponentModel.Desig   
// This example method creates a ComponentRenameEventArgs using the specified arguments.
// Typically, this type of event args is created by a design mode subsystem.  
public ComponentRenameEventArgs CreateComponentRenameEventArgs(object component, string oldName, string newName)
{
    ComponentRenameEventArgs args = new ComponentRenameEventArgs(component, oldName, newName);

    // The component that was renamed:          args.Component
    // The previous name of the component:      args.OldName
    // The new name of the component:           args.NewName            

    return args;
}


问题


面经


文章

微信
公众号

扫码关注公众号