共用方式為


INamedComponentCollection.GetNewName Method

Definition

Overloads

GetNewName()

Generates a new unique name for a component in the collection.

GetNewName(String)

Assists in creating new consecutive numbered names that start with the specified prefix.

GetNewName()

Generates a new unique name for a component in the collection.

public string GetNewName ();
abstract member GetNewName : unit -> string
Public Function GetNewName () As String

Returns

A String with the new name.

Applies to

GetNewName(String)

Assists in creating new consecutive numbered names that start with the specified prefix.

public string GetNewName (string prefix);
abstract member GetNewName : string -> string
Public Function GetNewName (prefix As String) As String

Parameters

prefix
String

The prefix for the numbered names.

Returns

A String with the new name.

Applies to