Control.Select 메서드

정의

컨트롤을 활성화합니다.

오버로드

Name Description
Select(Boolean, Boolean)

자식 컨트롤을 활성화합니다. 필요에 따라 탭 순서에서 컨트롤을 선택할 방향을 지정합니다.

Select()

컨트롤을 활성화합니다.

설명

이 메서드는 Select 컨트롤의 ControlStyles.Selectable 스타일 비트가 다른 컨트롤에 true포함되고 모든 부모 컨트롤이 표시되고 사용하도록 설정된 경우 컨트롤을 활성화합니다.

다음 목록의 Windows Forms 컨트롤을 선택할 수 없습니다. 목록의 컨트롤에서 파생된 컨트롤도 선택할 수 없습니다.

Select(Boolean, Boolean)

자식 컨트롤을 활성화합니다. 필요에 따라 탭 순서에서 컨트롤을 선택할 방향을 지정합니다.

protected:
 virtual void Select(bool directed, bool forward);
protected virtual void Select(bool directed, bool forward);
abstract member Select : bool * bool -> unit
override this.Select : bool * bool -> unit
Protected Overridable Sub Select (directed As Boolean, forward As Boolean)

매개 변수

directed
Boolean

true선택할 컨트롤의 방향을 지정하려면 그렇지 않으면 . false

forward
Boolean

true 탭 순서대로 앞으로 이동하려면 false 탭 순서에서 뒤로 이동하려면

설명

directedforward 매개 변수는 컨테이너 스타일 컨트롤에서 사용됩니다. 매개 변수를 directed 설정 trueforward 하면 매개 변수가 평가되어 선택할 컨트롤을 결정합니다. 설정true되면 forward 탭 순서의 다음 컨트롤이 선택됩니다. 이때 false탭 순서의 이전 컨트롤이 선택됩니다.

추가 정보

적용 대상

Select()

컨트롤을 활성화합니다.

public:
 void Select();
public void Select();
member this.Select : unit -> unit
Public Sub Select ()

예제

다음 코드 예제에서는 지정된 Control선택 가능한 경우 선택합니다.

public:
   void ControlSelect( Control^ control )
   {
      
      // Select the control, if it can be selected.
      if ( control->CanSelect )
      {
         control->Select(  );
      }
   }
public void ControlSelect(Control control)
{
   // Select the control, if it can be selected.
   if(control.CanSelect)
   {
      control.Select();
   }
}
Public Sub ControlSelect(control As Control)
   ' Select the control, if it can be selected.
   If control.CanSelect Then
      control.Select()
   End If
End Sub

추가 정보

적용 대상