获取一个包含范围的格式化文本的 RTF 字符串。
命名空间: Microsoft.VisualStudio.Text.Formatting
程序集: Microsoft.VisualStudio.Text.UI.Wpf(在 Microsoft.VisualStudio.Text.UI.Wpf.dll 中)
语法
声明
Function GenerateRtf ( _
spans As NormalizedSnapshotSpanCollection, _
textView As ITextView, _
delimiter As String _
) As String
string GenerateRtf(
NormalizedSnapshotSpanCollection spans,
ITextView textView,
string delimiter
)
String^ GenerateRtf(
NormalizedSnapshotSpanCollection^ spans,
ITextView^ textView,
String^ delimiter
)
abstract GenerateRtf :
spans:NormalizedSnapshotSpanCollection *
textView:ITextView *
delimiter:string -> string
function GenerateRtf(
spans : NormalizedSnapshotSpanCollection,
textView : ITextView,
delimiter : String
) : String
参数
spans
类型:Microsoft.VisualStudio.Text.NormalizedSnapshotSpanCollection快照范围的集合。
textView
类型:Microsoft.VisualStudio.Text.Editor.ITextView包含快照范围的 ITextView。
delimiter
类型:String要插入的分隔符符字符串将插入到中生成的 SnapshotSpan 对象的代码在 NormalizedSnapshotSpanCollection。
返回值
类型:String
RTF 数据。
备注
生成的 RTF 基于文本的快照范围的序列结构,与 textView属性和格式设置属性。 所有快照范围必须属于 textView。
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关详细信息,请参阅通过部分受信任的代码使用库。