Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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, _
aggregateClassifier As IClassifier, _
sequencer As ITextAndAdornmentSequencer, _
classificationFormatMap As IClassificationFormatMap, _
isViewWrapEnabled As Boolean _
) As IFormattedLineSource
IFormattedLineSource Create(
ITextSnapshot sourceTextSnapshot,
ITextSnapshot visualBufferSnapshot,
int tabSize,
double baseIndent,
double wordWrapWidth,
double maxAutoIndent,
bool useDisplayMode,
IClassifier aggregateClassifier,
ITextAndAdornmentSequencer sequencer,
IClassificationFormatMap classificationFormatMap,
bool isViewWrapEnabled
)
IFormattedLineSource^ Create(
ITextSnapshot^ sourceTextSnapshot,
ITextSnapshot^ visualBufferSnapshot,
int tabSize,
double baseIndent,
double wordWrapWidth,
double maxAutoIndent,
bool useDisplayMode,
IClassifier^ aggregateClassifier,
ITextAndAdornmentSequencer^ sequencer,
IClassificationFormatMap^ classificationFormatMap,
bool isViewWrapEnabled
)
abstract Create :
sourceTextSnapshot:ITextSnapshot *
visualBufferSnapshot:ITextSnapshot *
tabSize:int *
baseIndent:float *
wordWrapWidth:float *
maxAutoIndent:float *
useDisplayMode:bool *
aggregateClassifier:IClassifier *
sequencer:ITextAndAdornmentSequencer *
classificationFormatMap:IClassificationFormatMap *
isViewWrapEnabled:bool -> IFormattedLineSource
function Create(
sourceTextSnapshot : ITextSnapshot,
visualBufferSnapshot : ITextSnapshot,
tabSize : int,
baseIndent : double,
wordWrapWidth : double,
maxAutoIndent : double,
useDisplayMode : boolean,
aggregateClassifier : IClassifier,
sequencer : ITextAndAdornmentSequencer,
classificationFormatMap : IClassificationFormatMap,
isViewWrapEnabled : boolean
) : IFormattedLineSource
Parameters
sourceTextSnapshot
Type: Microsoft.VisualStudio.Text.ITextSnapshotThe text snapshot for the source buffer.
visualBufferSnapshot
Type: Microsoft.VisualStudio.Text.ITextSnapshotThe text snapshot for the visual buffer.
tabSize
Type: Int32The number of spaces between each tab stop.
baseIndent
Type: DoubleThe base indentation for all lines.
wordWrapWidth
Type: DoubleThe word wrap width in logical pixels.
maxAutoIndent
Type: DoubleThe maximum amount to auto-indent wrapped lines.
useDisplayMode
Type: BooleanUse Display for formatting text.
aggregateClassifier
Type: Microsoft.VisualStudio.Text.Classification.IClassifierThe aggregate of all classifiers on the view.
sequencer
Type: Microsoft.VisualStudio.Text.Formatting.ITextAndAdornmentSequencerThe text and adornment sequencer for the view. If null, there are no space negotiating adornments.
classificationFormatMap
Type: Microsoft.VisualStudio.Text.Classification.IClassificationFormatMapThe classification format map to use while formatting text.
isViewWrapEnabled
Type: BooleanWhether word wrap glyphs are enabled for wrapped lines.
Return Value
Type: Microsoft.VisualStudio.Text.Formatting.IFormattedLineSource
A new text formatting source for that snapshot.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.