다음을 통해 공유


ITextUndoHistoryRegistry 인터페이스

텍스트 버퍼의 관계를 유지 하 고 ITextUndoHistory 개체입니다.

네임스페이스:  Microsoft.VisualStudio.Text.Operations
어셈블리:  Microsoft.VisualStudio.Text.Logic(Microsoft.VisualStudio.Text.Logic.dll)

구문

‘선언
Public Interface ITextUndoHistoryRegistry
public interface ITextUndoHistoryRegistry
public interface class ITextUndoHistoryRegistry
type ITextUndoHistoryRegistry =  interface end
public interface ITextUndoHistoryRegistry

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

메서드

  이름 설명
Public 메서드 AttachHistory 기존에 연결 ITextUndoHistory 텍스트 버퍼 수입니다.버퍼에서이 레지스트리에서 이미 매핑할 수 합니다.
Public 메서드 GetHistory 텍스트 버퍼에 연결 된 기록 가져옵니다 있지만 새로 만들지 않습니다.
Public 메서드 RegisterHistory 컨텍스트와 관련된 기록을 가져오거나 필요한 경우 새로 만듭니다.
Public 메서드 RemoveHistory 레지스트리에서 지정된 ITextUndoHistory에 대한 매핑이 있을 경우 모두 제거합니다.
Public 메서드 TryGetHistory 텍스트 버퍼에 연결 된 기록 가져옵니다 있지만 새로 만들지 않습니다.

위쪽

설명

MEF 컴포넌트 부품입니다 하 고 같이 가져와야 합니다.

[Import] 
ITextUndoHistoryRegistry registry = null;

참고 항목

참조

Microsoft.VisualStudio.Text.Operations 네임스페이스