Freigeben über


IFormattedTextSourceFactoryService.Create-Methode (ITextSnapshot, ITextSnapshot, Int32, Double, Double, Double, Boolean, ITextAndAdornmentSequencer, IClassificationFormatMap)

Erstellt eine IFormattedLineSource für die angegebene Ansichtskonfiguration.

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

Syntax

'Declaration
Function Create ( _
    sourceTextSnapshot As ITextSnapshot, _
    visualBufferSnapshot As ITextSnapshot, _
    tabSize As Integer, _
    baseIndent As Double, _
    wordWrapWidth As Double, _
    maxAutoIndent As Double, _
    useDisplayMode As Boolean, _
    sequencer As ITextAndAdornmentSequencer, _
    classificationFormatMap As IClassificationFormatMap _
) As IFormattedLineSource
IFormattedLineSource Create(
    ITextSnapshot sourceTextSnapshot,
    ITextSnapshot visualBufferSnapshot,
    int tabSize,
    double baseIndent,
    double wordWrapWidth,
    double maxAutoIndent,
    bool useDisplayMode,
    ITextAndAdornmentSequencer sequencer,
    IClassificationFormatMap classificationFormatMap
)
IFormattedLineSource^ Create(
    ITextSnapshot^ sourceTextSnapshot, 
    ITextSnapshot^ visualBufferSnapshot, 
    int tabSize, 
    double baseIndent, 
    double wordWrapWidth, 
    double maxAutoIndent, 
    bool useDisplayMode, 
    ITextAndAdornmentSequencer^ sequencer, 
    IClassificationFormatMap^ classificationFormatMap
)
abstract Create : 
        sourceTextSnapshot:ITextSnapshot * 
        visualBufferSnapshot:ITextSnapshot * 
        tabSize:int * 
        baseIndent:float * 
        wordWrapWidth:float * 
        maxAutoIndent:float * 
        useDisplayMode:bool * 
        sequencer:ITextAndAdornmentSequencer * 
        classificationFormatMap:IClassificationFormatMap -> IFormattedLineSource
function Create(
    sourceTextSnapshot : ITextSnapshot, 
    visualBufferSnapshot : ITextSnapshot, 
    tabSize : int, 
    baseIndent : double, 
    wordWrapWidth : double, 
    maxAutoIndent : double, 
    useDisplayMode : boolean, 
    sequencer : ITextAndAdornmentSequencer, 
    classificationFormatMap : IClassificationFormatMap
) : IFormattedLineSource

Parameter

  • tabSize
    Typ: Int32

    Die Anzahl von Leerzeichen, die einem Tabstopp entsprechen.

  • baseIndent
    Typ: Double

    Der Standardeinzug für alle Zeilen.

  • wordWrapWidth
    Typ: Double

    Die Breite des Zeilenumbruchs in logischen Pixeln.

  • maxAutoIndent
    Typ: Double

    Der maximale Einzug für automatisch umbrochene, eingerückte Zeilen.

  • useDisplayMode
    Typ: Boolean

    Verwenden Sie Display zum Formatieren des Texts.

Rückgabewert

Typ: Microsoft.VisualStudio.Text.Formatting.IFormattedLineSource
Eine neue Textformatierungsquelle für diese Momentaufnahme.

Hinweise

Diese Methode entspricht dem Aufrufen der Methode des erstellten (...) oben mit einer kompletten Rangfolge gleichwertig, die niemals beliebigen Text klassifiziert.

.NET Framework-Sicherheit

Siehe auch

Referenz

IFormattedTextSourceFactoryService Schnittstelle

Create-Überladung

Microsoft.VisualStudio.Text.Formatting-Namespace