Microsoft.VisualStudio.Text.Formatting 命名空间

有关格式化的信息,请参阅 编辑器内的 "格式化文本" 一节。 For information about formatting, see the "Formatted Text" section of Inside the Editor.

TextAndAdornmentSequenceChangedEventArgs

提供标记聚合器 TagsChanged 事件的信息,并以映射范围的形式返回已更改标记的范围。Provides information for the tag aggregator TagsChanged event, and returns the span of changed tags as a mapping span.

TextFormattingParagraphProperties

提供文本格式设置属性。Provides text formatting properties.

TextFormattingRunProperties

保存文本格式属性信息。Holds text formatting property information. 此类派生自抽象 WPF TextRunProperties 类。This class derives from the abstract WPF TextRunProperties class.

结构

LineTransform

表示从格式化文本行到呈现的文本行的转换。Represents the transform from a formatted text line to a rendered text line.

TextBounds

给定文本行中的一段文本的边界。The bounds of a span of text in a given text line.

接口

IAdornmentElement

表示由修饰组成的序列元素。Represents a sequence element that consists of an adornment.

IFormattedLine

表示中的一系列格式化文本 ITextViewRepresents a line of formatted text in the ITextView.

IFormattedLineSource

从文本快照生成格式化行。Generates formatted line from text snapshots.

IFormattedTextSourceFactoryService

创建格式化的文本源。Creates formatted text sources.

ILineTransformSource

为格式化文本的行提供行转换。Provides the line transform for a line of formatted text.

ILineTransformSourceProvider

提供 ILineTransformSource 对象。Provides ILineTransformSource objects.

IRtfBuilderService

从快照范围集合生成 RTF 格式的文本。Generates RTF-formatted text from a collection of snapshot spans.

IRtfBuilderService2

从快照范围集合生成 RTF 格式的文本。Generates RTF-formatted text from a collection of snapshot spans.

ISequenceElement

表示构成的一系列元素中的基本元素 ITextViewLineRepresents the basic element in a sequence of elements that compose an ITextViewLine.

ITextAndAdornmentCollection

表示 ISequenceElement 由生成的对象的列表 ITextAndAdornmentSequencerRepresents a list of ISequenceElement objects generated by the ITextAndAdornmentSequencer.

ITextAndAdornmentSequencer

创建用于撰写的文本和修饰元素的序列 ITextSnapshotLineCreates a sequence of text and adornment elements to compose an ITextSnapshotLine.

ITextAndAdornmentSequencerFactoryService

用于创建实例的服务 ITextAndAdornmentSequencerService to create an instance of an ITextAndAdornmentSequencer. 这是一个 MEF 组件部件,应如下所示导入: [Import] ITextAndAdornmentSequencerFactoryService factory = null;This is a MEF component part, and should be imported as follows: [Import] ITextAndAdornmentSequencerFactoryService factory = null;

ITextParagraphPropertiesFactoryService

创建 TextParagraphProperties 要在查看视图上的行时使用的类。Creates TextParagraphProperties classes to be used when lines on the view are being formatted.

ITextViewLine

表示已设置为在文本视图中显示的格式的文本。Represents text that has been formatted for display in a text view.

IWpfTextViewLine

表示中的一系列呈现文本 ITextViewRepresents a line of rendered text in the ITextView.

枚举

TextViewLineChange

定义在布局的文本行之间的可能的更改类型。Defines the possible types of change in a rendered text line between one layout and another.

VisibilityState

在呈现线条时,指定的可见性区域的可见性 ITextViewLineSpecifies the visibility of an ITextViewLine with respect to the visible area when the line was rendered.