PlainTextContentControl.Range 属性

获取一个表示 PlainTextContentControl 的内容的 Range

命名空间:  Microsoft.Office.Tools.Word
程序集:  Microsoft.Office.Tools.Word(在 Microsoft.Office.Tools.Word.dll 中)

语法

声明
ReadOnly Property Range As Range
    Get
Range Range { get; }

属性值

类型:Microsoft.Office.Interop.Word.Range
一个表示 PlainTextContentControl 的内容的 Range

备注

使用 Range 属性可以访问控件中文本的格式设置和其他文本属性。 有关 Range 对象的更多信息,请参见 Word 对象模型概述

若要仅访问在 PlainTextContentControl 中显示的文本,请使用 Text 属性。

.NET Framework 安全性

请参见

参考

PlainTextContentControl 接口

Microsoft.Office.Tools.Word 命名空间

其他资源

Word 对象模型概述