从文本快照生成格式化的行。
命名空间: Microsoft.VisualStudio.Text.Formatting
程序集: Microsoft.VisualStudio.Text.UI.Wpf(在 Microsoft.VisualStudio.Text.UI.Wpf.dll 中)
语法
声明
Public Interface IFormattedLineSource
public interface IFormattedLineSource
public interface class IFormattedLineSource
type IFormattedLineSource = interface end
public interface IFormattedLineSource
IFormattedLineSource 类型公开以下成员。
属性
名称 | 说明 | |
---|---|---|
![]() |
BaseIndentation | 获取源生成的所有行的基本缩进(以逻辑像素为单位)。 |
![]() |
ColumnWidth | 获取列的宽度(以像素为单位)。 |
![]() |
DefaultTextProperties | 获取 TextRunProperties 用于呈现非安全的文本。 |
![]() |
LineHeight | 获取行的名义上的高度。 |
![]() |
MaxAutoIndent | 获取换行的行最大自动缩进。 |
![]() |
SourceTextSnapshot | 获取源为其提供格式化文本的源文本快照。 |
![]() |
TabSize | 获取每个制表位之间的空格数。 |
![]() |
TextAndAdornmentSequencer | 获取源使用的 ITextAndAdornmentSequencer。 |
![]() |
TextHeightAboveBaseline | 获取文本的名义上的高度 (以基线上的。 |
![]() |
TextHeightBelowBaseline | 在基线下获取文本的名义上的高度。 |
![]() |
TopTextSnapshot | 获取源为其提供格式化文本的顶部文本快照。 |
![]() |
UseDisplayMode | 确定格式化程序是否为格式文本使用 Display 。 |
![]() |
WordWrapWidth | 获取格式化文本分为多行的宽度位置(以逻辑像素为单位)。 |
页首
方法
名称 | 说明 | |
---|---|---|
![]() |
FormatLineInVisualBuffer | 对 ITextSnapshotLine 中的文本和修饰设置格式。 |
页首
备注
有关格式的信息,请参见 在编辑器内“格式化文本”一节。