IFormattedTextSourceFactoryService::Create Method (ITextSnapshot^, ITextSnapshot^, Int32, Double, Double, Double, Boolean, ITextAndAdornmentSequencer^, IClassificationFormatMap^)
Visual Studio 2015
Creates an IFormattedLineSource for the given view configuration.
Assembly: Microsoft.VisualStudio.Text.UI.Wpf (in Microsoft.VisualStudio.Text.UI.Wpf.dll)
IFormattedLineSource^ Create( ITextSnapshot^ sourceTextSnapshot, ITextSnapshot^ visualBufferSnapshot, int tabSize, double baseIndent, double wordWrapWidth, double maxAutoIndent, bool useDisplayMode, ITextAndAdornmentSequencer^ sequencer, IClassificationFormatMap^ classificationFormatMap )
Parameters
- sourceTextSnapshot
-
Type:
Microsoft.VisualStudio.Text::ITextSnapshot^
The text snapshot for the source buffer.
- visualBufferSnapshot
-
Type:
Microsoft.VisualStudio.Text::ITextSnapshot^
The text snapshot for the visual buffer.
- tabSize
-
Type:
System::Int32
The number of spaces between each tab stop.
- baseIndent
-
Type:
System::Double
The base indentation for all lines.
- wordWrapWidth
-
Type:
System::Double
The word wrap width in logical pixels.
- maxAutoIndent
-
Type:
System::Double
The maximum amount to auto-indent wrapped lines.
- useDisplayMode
-
Type:
System::Boolean
Use Display for formatting text.
- sequencer
-
Type:
Microsoft.VisualStudio.Text.Formatting::ITextAndAdornmentSequencer^
The text and adornment sequencer for the view. If null, there are no space negotiating adornments.
- classificationFormatMap
-
Type:
Microsoft.VisualStudio.Text.Classification::IClassificationFormatMap^
The classification format map to use while formatting text.
Return Value
Type: Microsoft.VisualStudio.Text.Formatting::IFormattedLineSource^A new text formatting source for that snapshot.
This method is equivalent to calling the Create(...) method above with an aggregate classifier that never classifies any text.
Show: