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

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

作者:.NET开发    项目:System.ComponentModel.Desig   
// This example method creates a ComponentChangedEventArgs using the specified arguments.
// Typically, this type of event args is created by a design mode subsystem.            
public ComponentChangedEventArgs CreateComponentChangedEventArgs(object component, MemberDescriptor member, object oldValue, object newValue)
{            
    // Creates a component changed event args with the specified arguments.
    ComponentChangedEventArgs args = new ComponentChangedEventArgs(component, member, oldValue, newValue);

    // The component that has changed:              args.Component
    // The member of the component that changed:    args.Member
    // The old value of the member:                 args.oldValue
    // The new value of the member:                 args.newValue

    return args;            
}


问题


面经


文章

微信
公众号

扫码关注公众号