다음을 통해 공유


IFormattedTextSourceFactoryService Interface

Creates formatted text sources.

Namespace:  Microsoft.VisualStudio.Text.Formatting
Assembly:  Microsoft.VisualStudio.Text.UI.Wpf (in Microsoft.VisualStudio.Text.UI.Wpf.dll)

Syntax

'Declaration
Public Interface IFormattedTextSourceFactoryService
public interface IFormattedTextSourceFactoryService
public interface class IFormattedTextSourceFactoryService
type IFormattedTextSourceFactoryService =  interface end
public interface IFormattedTextSourceFactoryService

Methods

  Name Description
Public method Create(ITextSnapshot, ITextSnapshot, Int32, Double, Double, Double, Boolean, ITextAndAdornmentSequencer, IClassificationFormatMap) Creates an IFormattedLineSource for the given view configuration.
Public method Create(ITextSnapshot, ITextSnapshot, Int32, Double, Double, Double, Boolean, IClassifier, ITextAndAdornmentSequencer, IClassificationFormatMap) Creates an IFormattedLineSource for the given view configuration.
Public method Create(ITextSnapshot, ITextSnapshot, Int32, Double, Double, Double, Boolean, IClassifier, ITextAndAdornmentSequencer, IClassificationFormatMap, Boolean) Creates an IFormattedLineSource for the given view configuration.

Top

Remarks

This is a MEF component part, and should be imported as follows:

[Import] IFormattedTextSourceFactoryService factory = null;

For information about formatting, see the "Formatted Text" section of Inside the Editor.

See Also

Reference

Microsoft.VisualStudio.Text.Formatting Namespace