本文整理匯總了C#中System.ComponentModel.Design.ComponentChangedEventArgs類的典型用法代碼示例。如果您正苦於以下問題:C# ComponentChangedEventArgs類的具體用法?C# ComponentChangedEventArgs怎麽用?C# ComponentChangedEventArgs使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。
ComponentChangedEventArgs類屬於System.ComponentModel.Design命名空間,在下文中一共展示了ComponentChangedEventArgs類的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。
示例1: CreateComponentChangedEventArgs
// 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;
}