다음을 통해 공유


ISelectionService.SelectionChanging 이벤트

정의

현재 선택이 변경되려 할 경우 발생합니다.

public:
 event EventHandler ^ SelectionChanging;
event EventHandler SelectionChanging;
member this.SelectionChanging : EventHandler 
Event SelectionChanging As EventHandler 

이벤트 유형

예제

다음 예제에서는 사용 하는 방법을 보여 줍니다는 SelectionChanging 이벤트입니다.

// Add SelectionChanging event handler to event
m_selectionService->SelectionChanging += gcnew EventHandler( this, &ComponentClass::OnSelectionChanging );
// Add SelectionChanging event handler to event
m_selectionService.SelectionChanging += new EventHandler(OnSelectionChanging);
' Add SelectionChanging event handler to event
AddHandler m_selectionService.SelectionChanging, AddressOf OnSelectionChanging
/* This is the OnSelectionChanging handler method.  This method calls
    OnUserChange to display a message that indicates the name of the
    handler that made the call and the type of the event argument. */
void OnSelectionChanging( Object^ /*sender*/, EventArgs^ args )
{
   OnUserChange( "OnSelectionChanging", args->ToString() );
}
/* This is the OnSelectionChanging handler method.  This method calls
    OnUserChange to display a message that indicates the name of the
    handler that made the call and the type of the event argument. */
private void OnSelectionChanging(object sender, EventArgs args) 
{
    OnUserChange("OnSelectionChanging", args.ToString());
}
' This is the OnSelectionChanging handler method.  This method calls
'   OnUserChange to display a message that indicates the name of the
'   handler that made the call and the type of the event argument. 
 Private Sub OnSelectionChanging(ByVal sender As Object, ByVal args As EventArgs)
    OnUserChange("OnSelectionChanging", args.ToString())
 End Sub

설명

이 이벤트 처리기 내에서 발생하는 처리는 양식 디자이너의 전반적인 성능에 크게 영향을 줄 수 있으므로 이 이벤트를 처리할 때 처리를 최소화합니다.

적용 대상

추가 정보