共用方式為


CodeDomDesignerLoader.OnComponentRename(Object, String, String) 方法

定義

引發 ComponentRename 事件。

protected:
 virtual void OnComponentRename(System::Object ^ component, System::String ^ oldName, System::String ^ newName);
protected virtual void OnComponentRename (object component, string oldName, string newName);
protected virtual void OnComponentRename (object component, string? oldName, string? newName);
override this.OnComponentRename : obj * string * string -> unit
abstract member OnComponentRename : obj * string * string -> unit
override this.OnComponentRename : obj * string * string -> unit
Protected Overridable Sub OnComponentRename (component As Object, oldName As String, newName As String)

參數

component
Object

要重新命名的元件。

oldName
String

元件的原始名稱。

newName
String

元件的新名稱。

適用於