Bewerken

Delen via


Rows.ConvertToText(Object, Object) Method

Definition

Converts a table to text and returns a Range object that represents the delimited text.

public Microsoft.Office.Interop.Word.Range ConvertToText (ref object Separator, ref object NestedTables);
abstract member ConvertToText : obj * obj -> Microsoft.Office.Interop.Word.Range
Public Function ConvertToText (Optional ByRef Separator As Object, Optional ByRef NestedTables As Object) As Range

Parameters

Separator
Object

Optional Object. The character that delimits the converted columns (paragraph marks delimit the converted rows). Can be any following WdTableFieldSeparator constants:wdSeparateByCommaswdSeparateByDefaultListSeparatorwdSeparateByParagraphswdSeparateByTabs (Default)

NestedTables
Object

Optional Object. True if nested tables are converted to text. This argument is ignored if Separator is not wdSeparateByParagraphs. The default value is True.

Returns

Remarks

When you apply the ConvertToText method to a Table object, the object is deleted. To maintain a reference to the converted contents of the table, you must assign the Range object returned by the ConvertToText method to a new object variable.

Applies to