AutomationElement.AutomationElementInformation.LabeledBy 屬性

定義

取得的項目包含此項目的文字標籤。Gets the element that contains the text label for this element.

public:
 property System::Windows::Automation::AutomationElement ^ LabeledBy { System::Windows::Automation::AutomationElement ^ get(); };
public System.Windows.Automation.AutomationElement LabeledBy { get; }
member this.LabeledBy : System.Windows.Automation.AutomationElement
Public ReadOnly Property LabeledBy As AutomationElement

屬性值

AutomationElement

此項目是這個項目的標籤。The element that is the label for this element.

備註

這個屬性可用來取出下拉式方塊的靜態文字標籤,例如,This property could be used to retrieve, for example, the static text label for a combo box.

如需詳細資訊,請參閱LabeledByPropertyFor more information, see LabeledByProperty.

適用於