IFormattedTextSourceFactoryService.Create Method

Definition

Overloads

Create(ITextSnapshot, ITextSnapshot, Int32, Double, Double, Double, Boolean, ITextAndAdornmentSequencer, IClassificationFormatMap)

Creates an IFormattedLineSource for the given view configuration.

Create(ITextSnapshot, ITextSnapshot, Int32, Double, Double, Double, Boolean, IClassifier, ITextAndAdornmentSequencer, IClassificationFormatMap)

Creates an IFormattedLineSource for the given view configuration.

Create(ITextSnapshot, ITextSnapshot, Int32, Double, Double, Double, Boolean, IClassifier, ITextAndAdornmentSequencer, IClassificationFormatMap, Boolean)

Creates an IFormattedLineSource for the given view configuration.

Create(ITextSnapshot, ITextSnapshot, Int32, Double, Double, Double, Boolean, ITextAndAdornmentSequencer, IClassificationFormatMap)

Creates an IFormattedLineSource for the given view configuration.

public:
 Microsoft::VisualStudio::Text::Formatting::IFormattedLineSource ^ Create(Microsoft::VisualStudio::Text::ITextSnapshot ^ sourceTextSnapshot, Microsoft::VisualStudio::Text::ITextSnapshot ^ visualBufferSnapshot, int tabSize, double baseIndent, double wordWrapWidth, double maxAutoIndent, bool useDisplayMode, Microsoft::VisualStudio::Text::Formatting::ITextAndAdornmentSequencer ^ sequencer, Microsoft::VisualStudio::Text::Classification::IClassificationFormatMap ^ classificationFormatMap);
public:
 Microsoft::VisualStudio::Text::Formatting::IFormattedLineSource ^ Create(Microsoft::VisualStudio::Text::ITextSnapshot ^ sourceTextSnapshot, Microsoft::VisualStudio::Text::ITextSnapshot ^ visualBufferSnapshot, int tabSize, double baseIndent, double wordWrapWidth, double maxAutoIndent, bool useDisplayMode, Microsoft::VisualStudio::Text::Formatting::ITextAndAdornmentSequencer ^ sequencer, Microsoft::VisualStudio::Text::Classification::IClassificationFormatMap ^ classificationFormatMap);
Microsoft::VisualStudio::Text::Formatting::IFormattedLineSource Create(Microsoft::VisualStudio::Text::ITextSnapshot const & sourceTextSnapshot, Microsoft::VisualStudio::Text::ITextSnapshot const & visualBufferSnapshot, int tabSize, double baseIndent, double wordWrapWidth, double maxAutoIndent, bool useDisplayMode, Microsoft::VisualStudio::Text::Formatting::ITextAndAdornmentSequencer const & sequencer, Microsoft::VisualStudio::Text::Classification::IClassificationFormatMap const & classificationFormatMap);
public Microsoft.VisualStudio.Text.Formatting.IFormattedLineSource Create (Microsoft.VisualStudio.Text.ITextSnapshot sourceTextSnapshot, Microsoft.VisualStudio.Text.ITextSnapshot visualBufferSnapshot, int tabSize, double baseIndent, double wordWrapWidth, double maxAutoIndent, bool useDisplayMode, Microsoft.VisualStudio.Text.Formatting.ITextAndAdornmentSequencer sequencer, Microsoft.VisualStudio.Text.Classification.IClassificationFormatMap classificationFormatMap);
abstract member Create : Microsoft.VisualStudio.Text.ITextSnapshot * Microsoft.VisualStudio.Text.ITextSnapshot * int * double * double * double * bool * Microsoft.VisualStudio.Text.Formatting.ITextAndAdornmentSequencer * Microsoft.VisualStudio.Text.Classification.IClassificationFormatMap -> Microsoft.VisualStudio.Text.Formatting.IFormattedLineSource
Public 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

Parameters

sourceTextSnapshot
ITextSnapshot

The text snapshot for the source buffer.

visualBufferSnapshot
ITextSnapshot

The text snapshot for the visual buffer.

tabSize
Int32

The number of spaces between each tab stop.

baseIndent
Double

The base indentation for all lines.

wordWrapWidth
Double

The word wrap width in logical pixels.

maxAutoIndent
Double

The maximum amount to auto-indent wrapped lines.

useDisplayMode
Boolean

Use WPF Display TextFormattingMode for formatting text.

sequencer
ITextAndAdornmentSequencer

The text and adornment sequencer for the view. If null, there are no space negotiating adornments.

classificationFormatMap
IClassificationFormatMap

The classification format map to use while formatting text.

Returns

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.

Applies to

Create(ITextSnapshot, ITextSnapshot, Int32, Double, Double, Double, Boolean, IClassifier, ITextAndAdornmentSequencer, IClassificationFormatMap)

Creates an IFormattedLineSource for the given view configuration.

public:
 Microsoft::VisualStudio::Text::Formatting::IFormattedLineSource ^ Create(Microsoft::VisualStudio::Text::ITextSnapshot ^ sourceTextSnapshot, Microsoft::VisualStudio::Text::ITextSnapshot ^ visualBufferSnapshot, int tabSize, double baseIndent, double wordWrapWidth, double maxAutoIndent, bool useDisplayMode, Microsoft::VisualStudio::Text::Classification::IClassifier ^ aggregateClassifier, Microsoft::VisualStudio::Text::Formatting::ITextAndAdornmentSequencer ^ sequencer, Microsoft::VisualStudio::Text::Classification::IClassificationFormatMap ^ classificationFormatMap);
public:
 Microsoft::VisualStudio::Text::Formatting::IFormattedLineSource ^ Create(Microsoft::VisualStudio::Text::ITextSnapshot ^ sourceTextSnapshot, Microsoft::VisualStudio::Text::ITextSnapshot ^ visualBufferSnapshot, int tabSize, double baseIndent, double wordWrapWidth, double maxAutoIndent, bool useDisplayMode, Microsoft::VisualStudio::Text::Classification::IClassifier ^ aggregateClassifier, Microsoft::VisualStudio::Text::Formatting::ITextAndAdornmentSequencer ^ sequencer, Microsoft::VisualStudio::Text::Classification::IClassificationFormatMap ^ classificationFormatMap);
Microsoft::VisualStudio::Text::Formatting::IFormattedLineSource Create(Microsoft::VisualStudio::Text::ITextSnapshot const & sourceTextSnapshot, Microsoft::VisualStudio::Text::ITextSnapshot const & visualBufferSnapshot, int tabSize, double baseIndent, double wordWrapWidth, double maxAutoIndent, bool useDisplayMode, Microsoft::VisualStudio::Text::Classification::IClassifier const & aggregateClassifier, Microsoft::VisualStudio::Text::Formatting::ITextAndAdornmentSequencer const & sequencer, Microsoft::VisualStudio::Text::Classification::IClassificationFormatMap const & classificationFormatMap);
public Microsoft.VisualStudio.Text.Formatting.IFormattedLineSource Create (Microsoft.VisualStudio.Text.ITextSnapshot sourceTextSnapshot, Microsoft.VisualStudio.Text.ITextSnapshot visualBufferSnapshot, int tabSize, double baseIndent, double wordWrapWidth, double maxAutoIndent, bool useDisplayMode, Microsoft.VisualStudio.Text.Classification.IClassifier aggregateClassifier, Microsoft.VisualStudio.Text.Formatting.ITextAndAdornmentSequencer sequencer, Microsoft.VisualStudio.Text.Classification.IClassificationFormatMap classificationFormatMap);
abstract member Create : Microsoft.VisualStudio.Text.ITextSnapshot * Microsoft.VisualStudio.Text.ITextSnapshot * int * double * double * double * bool * Microsoft.VisualStudio.Text.Classification.IClassifier * Microsoft.VisualStudio.Text.Formatting.ITextAndAdornmentSequencer * Microsoft.VisualStudio.Text.Classification.IClassificationFormatMap -> Microsoft.VisualStudio.Text.Formatting.IFormattedLineSource
Public 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) As IFormattedLineSource

Parameters

sourceTextSnapshot
ITextSnapshot

The text snapshot for the source buffer.

visualBufferSnapshot
ITextSnapshot

The text snapshot for the visual buffer.

tabSize
Int32

The number of spaces between each tab stop.

baseIndent
Double

The base indentation for all lines.

wordWrapWidth
Double

The word wrap width in logical pixels.

maxAutoIndent
Double

The maximum amount to auto-indent wrapped lines.

useDisplayMode
Boolean

Use WPF Display TextFormattingMode for formatting text.

aggregateClassifier
IClassifier

The aggregate of all classifiers on the view.

sequencer
ITextAndAdornmentSequencer

The text and adornment sequencer for the view. If null, there are no space negotiating adornments.

classificationFormatMap
IClassificationFormatMap

The classification format map to use while formatting text.

Returns

A new text formatting source for that snapshot.

Applies to

Create(ITextSnapshot, ITextSnapshot, Int32, Double, Double, Double, Boolean, IClassifier, ITextAndAdornmentSequencer, IClassificationFormatMap, Boolean)

Creates an IFormattedLineSource for the given view configuration.

public:
 Microsoft::VisualStudio::Text::Formatting::IFormattedLineSource ^ Create(Microsoft::VisualStudio::Text::ITextSnapshot ^ sourceTextSnapshot, Microsoft::VisualStudio::Text::ITextSnapshot ^ visualBufferSnapshot, int tabSize, double baseIndent, double wordWrapWidth, double maxAutoIndent, bool useDisplayMode, Microsoft::VisualStudio::Text::Classification::IClassifier ^ aggregateClassifier, Microsoft::VisualStudio::Text::Formatting::ITextAndAdornmentSequencer ^ sequencer, Microsoft::VisualStudio::Text::Classification::IClassificationFormatMap ^ classificationFormatMap, bool isViewWrapEnabled);
public:
 Microsoft::VisualStudio::Text::Formatting::IFormattedLineSource ^ Create(Microsoft::VisualStudio::Text::ITextSnapshot ^ sourceTextSnapshot, Microsoft::VisualStudio::Text::ITextSnapshot ^ visualBufferSnapshot, int tabSize, double baseIndent, double wordWrapWidth, double maxAutoIndent, bool useDisplayMode, Microsoft::VisualStudio::Text::Classification::IClassifier ^ aggregateClassifier, Microsoft::VisualStudio::Text::Formatting::ITextAndAdornmentSequencer ^ sequencer, Microsoft::VisualStudio::Text::Classification::IClassificationFormatMap ^ classificationFormatMap, bool isViewWrapEnabled);
Microsoft::VisualStudio::Text::Formatting::IFormattedLineSource Create(Microsoft::VisualStudio::Text::ITextSnapshot const & sourceTextSnapshot, Microsoft::VisualStudio::Text::ITextSnapshot const & visualBufferSnapshot, int tabSize, double baseIndent, double wordWrapWidth, double maxAutoIndent, bool useDisplayMode, Microsoft::VisualStudio::Text::Classification::IClassifier const & aggregateClassifier, Microsoft::VisualStudio::Text::Formatting::ITextAndAdornmentSequencer const & sequencer, Microsoft::VisualStudio::Text::Classification::IClassificationFormatMap const & classificationFormatMap, bool isViewWrapEnabled);
public Microsoft.VisualStudio.Text.Formatting.IFormattedLineSource Create (Microsoft.VisualStudio.Text.ITextSnapshot sourceTextSnapshot, Microsoft.VisualStudio.Text.ITextSnapshot visualBufferSnapshot, int tabSize, double baseIndent, double wordWrapWidth, double maxAutoIndent, bool useDisplayMode, Microsoft.VisualStudio.Text.Classification.IClassifier aggregateClassifier, Microsoft.VisualStudio.Text.Formatting.ITextAndAdornmentSequencer sequencer, Microsoft.VisualStudio.Text.Classification.IClassificationFormatMap classificationFormatMap, bool isViewWrapEnabled);
abstract member Create : Microsoft.VisualStudio.Text.ITextSnapshot * Microsoft.VisualStudio.Text.ITextSnapshot * int * double * double * double * bool * Microsoft.VisualStudio.Text.Classification.IClassifier * Microsoft.VisualStudio.Text.Formatting.ITextAndAdornmentSequencer * Microsoft.VisualStudio.Text.Classification.IClassificationFormatMap * bool -> Microsoft.VisualStudio.Text.Formatting.IFormattedLineSource
Public 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

Parameters

sourceTextSnapshot
ITextSnapshot

The text snapshot for the source buffer.

visualBufferSnapshot
ITextSnapshot

The text snapshot for the visual buffer.

tabSize
Int32

The number of spaces between each tab stop.

baseIndent
Double

The base indentation for all lines.

wordWrapWidth
Double

The word wrap width in logical pixels.

maxAutoIndent
Double

The maximum amount to auto-indent wrapped lines.

useDisplayMode
Boolean

Use WPF Display TextFormattingMode for formatting text.

aggregateClassifier
IClassifier

The aggregate of all classifiers on the view.

sequencer
ITextAndAdornmentSequencer

The text and adornment sequencer for the view. If null, there are no space negotiating adornments.

classificationFormatMap
IClassificationFormatMap

The classification format map to use while formatting text.

isViewWrapEnabled
Boolean

Whether word wrap glyphs are enabled for wrapped lines.

Returns

A new text formatting source for that snapshot.

Applies to