ComponentRenameEventArgs 클래스
정의
ComponentRename 이벤트에 대한 데이터를 제공합니다.Provides data for the ComponentRename event.
public ref class ComponentRenameEventArgs : EventArgs
public class ComponentRenameEventArgs : EventArgs
[System.Runtime.InteropServices.ComVisible(true)]
public class ComponentRenameEventArgs : EventArgs
type ComponentRenameEventArgs = class
inherit EventArgs
[<System.Runtime.InteropServices.ComVisible(true)>]
type ComponentRenameEventArgs = class
inherit EventArgs
Public Class ComponentRenameEventArgs
Inherits EventArgs
- 상속
- 특성
예제
다음 예제를 만드는 방법을 보여는 ComponentRenameEventArgs합니다.The following example demonstrates creating a ComponentRenameEventArgs.
public:
// This example method creates a ComponentRenameEventArgs using the specified arguments.
// Typically, this type of event args is created by a design mode subsystem.
ComponentRenameEventArgs^ CreateComponentRenameEventArgs( Object^ component, String^ oldName, String^ 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 gcnew ComponentRenameEventArgs( component, oldName, newName );
}
// 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;
}
' This example method creates a ComponentRenameEventArgs using the specified arguments.
' Typically, this type of event args is created by a design mode subsystem.
Public Function CreateComponentRenameEventArgs(ByVal component As Object, ByVal oldName As String, ByVal newName As String) As ComponentRenameEventArgs
Dim args As 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
End Function
설명
는 ComponentRenameEventArgs 이벤트에 대 한 데이터를 제공 ComponentRename 합니다.A ComponentRenameEventArgs provides data about a ComponentRename event.
ComponentRenameEventArgs개체는 다음 정보를 제공 합니다.A ComponentRenameEventArgs object provides the following information:
Component이름을 바꿀 구성 요소를 참조 하는 속성입니다.A Component property that references the component being renamed.
OldName구성 요소의 이전 이름을 나타내는 속성입니다.An OldName property that indicates the old name of the component.
NewName구성 요소의 새 이름을 나타내는 속성입니다.A NewName property that indicates the new name of the component.
생성자
ComponentRenameEventArgs(Object, String, String) |
ComponentRenameEventArgs 클래스의 새 인스턴스를 초기화합니다.Initializes a new instance of the ComponentRenameEventArgs class. |
속성
Component |
이름을 바꿀 구성 요소를 가져옵니다.Gets the component that is being renamed. |
NewName |
이벤트의 이름을 바꾼 후에 구성 요소의 이름을 가져옵니다.Gets the name of the component after the rename event. |
OldName |
이벤트 이름을 바꾸기 전에 구성 요소 이름을 가져옵니다.Gets the name of the component before the rename event. |
메서드
Equals(Object) |
지정된 개체가 현재 개체와 같은지 확인합니다.Determines whether the specified object is equal to the current object. (다음에서 상속됨 Object) |
GetHashCode() |
기본 해시 함수로 작동합니다.Serves as the default hash function. (다음에서 상속됨 Object) |
GetType() |
현재 인스턴스의 Type을 가져옵니다.Gets the Type of the current instance. (다음에서 상속됨 Object) |
MemberwiseClone() |
현재 Object의 단순 복사본을 만듭니다.Creates a shallow copy of the current Object. (다음에서 상속됨 Object) |
ToString() |
현재 개체를 나타내는 문자열을 반환합니다.Returns a string that represents the current object. (다음에서 상속됨 Object) |