AutomationPeer.GetLabeledBy 메서드

정의

요소를 대상으로 하는 LabelAutomationPeer를 가져옵니다.

public:
 System::Windows::Automation::Peers::AutomationPeer ^ GetLabeledBy();
public System.Windows.Automation.Peers.AutomationPeer GetLabeledBy ();
member this.GetLabeledBy : unit -> System.Windows.Automation.Peers.AutomationPeer
Public Function GetLabeledBy () As AutomationPeer

반환

AutomationPeer

Label에 의해 대상으로 지정된 요소의 LabelAutomationPeer입니다.

예외

이 메서드에 대한 공개 통화가 현재 진행 중입니다.

설명

예를 들어 요소가 컨트롤 GetLabeledByComboBox 경우 메서드 AutomationPeer Label 는 .ComboBox

다음 이미지 Label 에서 "테마"는 대상 ComboBox입니다. 따라서 AccessKey for는 Label 대상도 됩니다 ComboBox. 사용자가 ALTT+를 누르면 포커스가ComboBox 대신 가져옵니다.Label

용도별로 레이블이 지정된 표시 속성

GetLabeledBy 해당 Label에 대한 ComboBoxAutomationPeer 반환 LabelAutomationPeer 메서드입니다. 이렇게 하면 자동화 클라이언트가 .을 설명하는 텍스트 문자열을 가져올 수 있습니다 ComboBox.

적용 대상

추가 정보