ComponentRenameEventArgs ComponentRenameEventArgs ComponentRenameEventArgs ComponentRenameEventArgs Class

定義

ComponentRename イベントのデータを提供します。Provides data for the ComponentRename event.

public ref class ComponentRenameEventArgs : EventArgs
[System.Runtime.InteropServices.ComVisible(true)]
public class ComponentRenameEventArgs : EventArgs
type ComponentRenameEventArgs = class
    inherit EventArgs
Public Class ComponentRenameEventArgs
Inherits EventArgs
継承
ComponentRenameEventArgsComponentRenameEventArgsComponentRenameEventArgsComponentRenameEventArgs
属性

次の例で作成、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

注釈

AComponentRenameEventArgsに関するデータを提供するComponentRenameイベント。A ComponentRenameEventArgs provides data about a ComponentRename event.

AComponentRenameEventArgsオブジェクトは、次の情報を提供します。A ComponentRenameEventArgs object provides the following information:

  • AComponent名前が変更されるコンポーネントを参照するプロパティ。A Component property that references the component being renamed.

  • OldNameコンポーネントの古い名前を示すプロパティです。An OldName property that indicates the old name of the component.

  • ANewNameコンポーネントの新しい名前を示すプロパティです。A NewName property that indicates the new name of the component.

コンストラクター

ComponentRenameEventArgs(Object, String, String) ComponentRenameEventArgs(Object, String, String) ComponentRenameEventArgs(Object, String, String) ComponentRenameEventArgs(Object, String, String)

ComponentRenameEventArgs クラスの新しいインスタンスを初期化します。Initializes a new instance of the ComponentRenameEventArgs class.

プロパティ

Component Component Component Component

名前が変更されるコンポーネントを取得します。Gets the component that is being renamed.

NewName NewName NewName NewName

名前変更イベントが発生した後のコンポーネントの名前を取得します。Gets the name of the component after the rename event.

OldName OldName OldName OldName

名前変更イベントが発生する前のコンポーネントの名前を取得します。Gets the name of the component before the rename event.

メソッド

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

指定したオブジェクトが、現在のオブジェクトと等しいかどうかを判断します。Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetHashCode() GetHashCode() GetHashCode() GetHashCode()

既定のハッシュ関数として機能します。Serves as the default hash function.

(Inherited from Object)
GetType() GetType() GetType() GetType()

現在のインスタンスの Type を取得します。Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

現在の Object の簡易コピーを作成します。Creates a shallow copy of the current Object.

(Inherited from Object)
ToString() ToString() ToString() ToString()

現在のオブジェクトを表す文字列を返します。Returns a string that represents the current object.

(Inherited from Object)

適用対象

こちらもご覧ください