다음을 통해 공유


편집기 가져오기

편집기 서비스, 공장, 및 확장 코어 편집기로 다른 종류의 액세스를 제공 하는 브로커의 숫자는 가져올 수 있습니다. 예를 들어, 가져올 수 있습니다의 ITextStructureNavigatorSelectorService 제공 하는 ITextStructureNavigator 특정된 콘텐츠 형식에 대 한. (이 탐색 창의 텍스트 버퍼에서 다른 유형의 검색 수행할 수 있습니다.)

편집기 가져오기를 사용 하려면 필드 또는 관리 되는 확장성 프레임 워크 구성 요소 일부를 내보내는 클래스의 속성으로 가져올.

참고

관리 되는 확장성 프레임 워크에 대 한 자세한 내용은 참조 하십시오. MEF(Managed Extensibility Framework).

가져오기 구문

다음 예제는 편집기를 가져오는 방법 옵션 공장 서비스를 보여 줍니다.

[Import]
internal IEditorOptionsFactoryService EditorOptions { get; set; }

서비스 필드 및 않는 속성으로 가져올 경우 사용자 설정 해야 null 변수에 할당 하지 하는 방법에 대 한 컴파일러 경고를 방지 하려면 선언에서:

[Import]
internal IEditorOptionsFactoryService m_editorOptions = null;

더 많은 예제를 imports를 사용 하 여 다음 연습을 참조 하십시오.

연습: 여백 문자 모양 만들기

연습: 텍스트 보기 사용자 지정

연습: 텍스트 강조 표시

연습: 요약 정보 도구 설명 표시

연습: 서명 도움말 표시

연습: 문 완성 표시

연습: 스마트 태그 표시

서비스 공급자를 가져오는 중

가져올 수도 있습니다는 SVsServiceProvider (Microsoft.VisualStudio.Shell.Immutable.10.0 어셈블리에 있음)에 액세스 하려면 Visual Studio 서비스와 동일한 방식:

[Import]
internal SVsServiceProvider ServiceProvider = null; 

자세한 내용은 연습: 확장 편집기에서 DTE 개체 액세스를 참조하십시오.

서비스

편집기 서비스는 서비스를 제공 하 고 여러 구성 요소에서 공유 하는 일반적으로 단일 엔터티입니다.

Import

제공

IFileExtensionRegistryService

파일 확장명 간의 관계 및 IContentType 개체입니다.

IContentTypeRegistryService

IContentType 개체의 컬렉션입니다.

IVsFontsAndColorsInformationService

IVsFontsAndColorsInformation 개체

IVsEditorAdaptersFactoryService

많은 편집기 어댑터 개체:

IVsCodeWindow

IVsTextBuffer

IVsTextBufferCoordinator

IVsTextView

IIncrementalSearchFactoryService

IIncrementalSearch 개체에 지정 된 텍스트가 보기.

ITextBufferFactoryService

ITextBuffer입니다.

ITextDocumentFactoryService

ITextDocument입니다.

IDifferenceService

IDifferenceCollection 의 차이입니다.

IHierarchicalStringDifferenceService

IHierarchicalDifferenceCollection 의 차이입니다.

IProjectionBufferFactoryService

An IProjectionBuffer or an IElisionBuffer.

IBufferGraphFactoryService

IBufferGraphITextBuffer 개체입니다.

IClassifierAggregatorService

An IClassifier for a ITextBuffer.

IViewClassifierAggregatorService

An IClassifier for a ITextView.

IClassificationFormatMapService

An IClassificationFormatMap for a ITextView.

IEditorFormatMapService

An IEditorFormatMap for a ITextView.

IClassificationTypeRegistryService

컬렉션을 유지 IClassificationType 개체입니다.

IBufferTagAggregatorFactoryService

ITagAggregator 는 텍스트 버퍼에 대 한.

IViewTagAggregatorFactoryService

ITagAggregator 텍스트 보기.

IEditorOptionsFactoryService

IEditorOptions 에 지정 된 범위입니다.

IScrollMapFactoryService

IScrollMap 텍스트 보기.

ISmartIndentationService

An ISmartIndent for a ITextView.

ISmartIndentationService

자동 들여쓰기를 가져옵니다는 ISmartIndentProvider 개체입니다.

ITextEditorFactoryService

Manages the IWpfTextViewHost for a IWpfTextView.

IFormattedTextSourceFactoryService

IFormattedLineSource입니다.

IRtfBuilderService

스냅샷 범위 집합에서 RTF 형식의 텍스트를 생성합니다.

ITextAndAdornmentSequencerFactoryService

An ITextAndAdornmentSequencer for an ITextView.

ITextParagraphPropertiesFactoryService

A TextParagraphProperties 텍스트 줄 보기에 서식을 지정 합니다.

IEditorOperationsFactoryService

A IEditorOperations object for an ITextView.

ITextSearchService

텍스트 스냅숏을 검색합니다.

ITextStructureNavigatorSelectorService

An ITextStructureNavigator for an ITextBuffer by IContentType.

IOutliningManagerService

IOutliningManager 텍스트 보기.

IGlyphService

표준 글리프를 설정합니다.

IIntellisenseSessionStackMapService

An IIntellisenseSessionStack for a ITextView.

IWpfKeyboardTrackingService

트랙 처리 키보드.

IStandardClassificationService

표준 IClassificationType 개체입니다.

ITextUndoHistoryRegistry

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

다른 가져오기

공급자 팩터리 및 중개업 자 일반적으로 여러 구성 요소를 여러 인스턴스를 가질 수 있는 엔터티입니다.

Import

제공

IErrorProviderFactory

SimpleTagger 형식 ErrorTag)는 지정 된 버퍼에 대 한.

ITextMarkerProviderFactory

텍스트 마커 tagger (는 SimpleTagger 형식 TextMarkerTag).

IToolTipProviderFactory

An IToolTipProvider for a given ITextView.

ICompletionBroker

ICompletionSession입니다.

IQuickInfoBroker

IQuickInfoSession입니다.

ISignatureHelpBroker

ISignatureHelpSession입니다.

참고 항목

개념

편집기 확장 지점