ITextBufferFactoryService Arabirim

Tanım

Sıradan TextBuffers için fabrika hizmeti.

public interface class ITextBufferFactoryService
public interface class ITextBufferFactoryService
__interface ITextBufferFactoryService
public interface ITextBufferFactoryService
type ITextBufferFactoryService = interface
Public Interface ITextBufferFactoryService
Türetilmiş

Açıklamalar

Bu bir MEF bileşenidir ve şu şekilde içeri aktarılmalıdır: [Içeri aktarma] ITextBufferFactoryService Factory = null;

Özellikler

InertContentType

İlişkili yapıtların otomatik olarak oluşturulduğu bir içerik türü.

PlaintextContentType

Düz metin dosyaları için önceden tanımlanmış içerik türü.

TextContentType

Önceden tanımlanmış varsayılan içerik türü. Bu, çoğu içerik türü için temel türdür.

Yöntemler

CreateTextBuffer()

ITextBuffer IContentType "Metin" ile boş oluşturur.

CreateTextBuffer(IContentType)

Belirtilen bir ile boş oluşturur ITextBuffer IContentType .

CreateTextBuffer(String, IContentType)

Belirtilen bir ITextBuffer ile oluşturur IContentType ve verilen metinle doldurur.

CreateTextBuffer(TextReader, IContentType)

Verilen bir ITextBuffer ile oluşturur contentType ve belirtilen TextReader 'dan verileri okuyarak doldurur.

Ekinlikler

TextBufferCreated

Herhangi bir ITextBuffer oluşturulduğunda oluşturulur.

Şunlara uygulanır