Partager via


IFormattedLineSource Interface

Generates formatted line from text snapshots.

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

Syntax

'Declaration
Public Interface IFormattedLineSource
public interface IFormattedLineSource
public interface class IFormattedLineSource
type IFormattedLineSource =  interface end
public interface IFormattedLineSource

The IFormattedLineSource type exposes the following members.

Properties

  Name Description
Public property BaseIndentation Gets the base indentation (in logical pixels) for all lines generated by this source.
Public property ColumnWidth Gets the width of a column in pixels.
Public property DefaultTextProperties Gets the TextRunProperties used to render unclassified text.
Public property LineHeight Gets the nominal height of a line.
Public property MaxAutoIndent Gets the maximum auto-indent for wrapped lines.
Public property SourceTextSnapshot Gets the source text snapshot for which this source will provide formatted text.
Public property TabSize Gets the number of spaces between each tab stop.
Public property TextAndAdornmentSequencer Gets the ITextAndAdornmentSequencer used by this source.
Public property TextHeightAboveBaseline Gets the nominal height of the text above the baseline.
Public property TextHeightBelowBaseline Gets the nominal height of the text below the baseline.
Public property TopTextSnapshot Gets the top text snapshot for which this source will provide formatted text.
Public property UseDisplayMode Determines whether the formatter uses Display for format text.
Public property WordWrapWidth Gets the width (in logical pixels) where the formatted text will be broken into multiple lines.

Top

Methods

  Name Description
Public method FormatLineInVisualBuffer Formats the text and adornments in a ITextSnapshotLine.

Top

Remarks

For information about formatting, see the "Formatted Text" section of Inside the Editor.

See Also

Reference

Microsoft.VisualStudio.Text.Formatting Namespace