AccessibleObject.IAccessible.set_accName(Object, String) 方法

定義

將新的可存取名稱指派給指定項目。Assigns a new accessible name to the specified element.

 virtual void Accessibility.IAccessible.set_accName(System::Object ^ childID, System::String ^ newName) = Accessibility::IAccessible::set_accName;
void IAccessible.set_accName (object childID, string newName);
Sub set_accName (childID As Object, newName As String) Implements IAccessible.set_accName

參數

childID
Object

要獲指派新名稱之可存取物件的 ID 編號。The ID number of the accessible object to which to assign a new name. 這個參數為 0 時,表示選取此物件;如果是子系 ID,則表示選取其中一個物件的子物件。This parameter is 0 to select the object, or a child ID to select one of the object's child objects.

newName
String

要指派給 childID 的新名稱。The new name to assign to childID.

實作

Accessibility.IAccessible.set_accName(System.Object,System.String)

適用於