다음을 통해 공유


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

Creates an IFormattedLineSource for the given view configuration.

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

Parameters

  • tabSize
    Type: Int32

    The number of spaces between each tab stop.

  • baseIndent
    Type: Double

    The base indentation for all lines.

  • wordWrapWidth
    Type: Double

    The word wrap width in logical pixels.

  • maxAutoIndent
    Type: Double

    The maximum amount to auto-indent wrapped lines.

  • useDisplayMode
    Type: Boolean

    Use Display for formatting text.

Return Value

Type: Microsoft.VisualStudio.Text.Formatting.IFormattedLineSource
A new text formatting source for that snapshot.

Remarks

This method is equivalent to calling the Create(...) method above with an aggregate classifier that never classifies any text.

.NET Framework Security

See Also

Reference

IFormattedTextSourceFactoryService Interface

Create Overload

Microsoft.VisualStudio.Text.Formatting Namespace