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
'Декларация
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 | |
---|---|---|
BaseIndentation | Gets the base indentation (in logical pixels) for all lines generated by this source. | |
ColumnWidth | Gets the width of a column in pixels. | |
DefaultTextProperties | Gets the TextRunProperties used to render unclassified text. | |
LineHeight | Gets the nominal height of a line. | |
MaxAutoIndent | Gets the maximum auto-indent for wrapped lines. | |
SourceTextSnapshot | Gets the source text snapshot for which this source will provide formatted text. | |
TabSize | Gets the number of spaces between each tab stop. | |
TextAndAdornmentSequencer | Gets the ITextAndAdornmentSequencer used by this source. | |
TextHeightAboveBaseline | Gets the nominal height of the text above the baseline. | |
TextHeightBelowBaseline | Gets the nominal height of the text below the baseline. | |
TopTextSnapshot | Gets the top text snapshot for which this source will provide formatted text. | |
UseDisplayMode | Determines whether the formatter uses Display for format text. | |
WordWrapWidth | Gets the width (in logical pixels) where the formatted text will be broken into multiple lines. |
Top
Methods
Name | Description | |
---|---|---|
FormatLineInVisualBuffer | Formats the text and adornments in a ITextSnapshotLine. |
Top
Remarks
For information about formatting, see the "Formatted Text" section of Inside the Editor.