Share via


ItemAutomationPeer.GetNameCore 方法

定義

取得 UIElement 的文字標籤,這個類別會對應至與這個 Items 相關聯之 ItemAutomationPeer 集合中的資料項目。

protected:
 override System::String ^ GetNameCore();
protected override string GetNameCore ();
override this.GetNameCore : unit -> string
Protected Overrides Function GetNameCore () As String

傳回

String

文字標籤。

備註

您可以將 name 屬性視為使用者用來說明其所參考控制項的文字字串。 請確定您在圖形化使用者介面中的所有控制項都有文字標記法, (GUI) ,讓您可以透過當地語系化的方式以程式設計方式參照控制項。

這個方法是由 GetName 所呼叫。

適用於

另請參閱