다음을 통해 공유


IPreviewCommand 인터페이스

실행하기 전에 명령을 미리 보기 위한 기능으로 ICommand 인터페이스를 확장합니다.

네임스페이스:  Microsoft.Windows.Input
어셈블리:  RibbonControlsLibrary(RibbonControlsLibrary.dll)

구문

‘선언
Public Interface IPreviewCommand _
    Inherits ICommand
public interface IPreviewCommand : ICommand
public interface class IPreviewCommand : ICommand
type IPreviewCommand =  
    interface
        interface ICommand
    end
public interface IPreviewCommand extends ICommand

IPreviewCommand 형식에서는 다음과 같은 멤버를 노출합니다.

메서드

  이름 설명
Public 메서드 CancelPreview 보류 중인 미리 보기를 취소하는 메서드를 정의합니다.
Public 메서드 CanExecute 현재 상태에서 명령을 실행할 수 있는지 여부를 확인하는 메서드를 정의합니다. (ICommand에서 상속됨)
Public 메서드 Execute 명령이 호출될 때 호출할 메서드를 정의합니다. (ICommand에서 상속됨)
Public 메서드 Preview 명령을 미리 보는 데 사용하는 메서드를 정의합니다.

위쪽

이벤트

  이름 설명
Public 이벤트 CanExecuteChanged 명령을 실행해야 하는지 여부에 영향을 주는 변경이 발생할 때 발생합니다. (ICommand에서 상속됨)

위쪽

참고 항목

참조

Microsoft.Windows.Input 네임스페이스