當您將 ConvertToText 方法套用至 Table 物件時,會刪除物件。 若要維護已轉換內容的資料表的參照,您必須指派給新的物件變數 ConvertToText 方法所傳回的 Range 物件。 在下列範例中,將使用中文件的第一個表格會轉換為文字,然後格式化為項目符號清單。
Apart from converting a table to text, we can also convert text to a table in Microsoft Word. To complete this process, you don't need to speed too much time. It is easy to do that. The below steps will explain how you can convert any regular text into a table format: Step 1.Sel...
Office Word provides the function to convert a table to regular text, but it can only apply to one table at a time. Step 1: select or place cursor in the table you want to convert; Step 2: go toLayouttab underTable Tools, and clickConvert to TextinDatagroup; Step 3: choose the ma...
Microsoft.Office.Interop.Word.dll 将表转换为文本,并返回表示Range分隔文本的 对象。 C# publicMicrosoft.Office.Interop.Word.RangeConvertToText(refobjectSeparator,refobjectNestedTables); 参数 Separator Object 可选对象。 用以分隔被转换的列 (段落标记分隔被转换的行) 的字符。 可以是以下WdTableFieldSeparator...
UnderAutoFit behavior, choose how you want your table to look. Word automatically chooses a width for the table columns. If you want a different column width, choose one of these options: UnderSeparate text at, choose the separator character you used in the tex...
On theInserttab, clickTable>Convert Text to Table. In theConvert Text to Tablebox, choose the options you want: UnderTable Size, make sure the numbers match the numbers of columns and rows you want. UnderAutoFit Behavior, choose how you want your table to l...
expression.ConvertToText(_Separator_,_NestedTables_) expressionRequired. A variable that represents a 'Table' object. Parameters NameRequired/OptionalData typeDescription SeparatorOptionalVariantThe character that delimits the converted columns (paragraph marks delimit the converted rows). Can be anyWdTable...
Converts a table to text and returns a Range object that represents the delimited text. Namespace: Microsoft.Office.Interop.Word Assembly: Microsoft.Office.Interop.Word (in Microsoft.Office.Interop.Word.dll) Syntax Range ConvertToText( ref Object Separator, ref Object NestedTables ) Parameters...
Microsoft.Office.Interop.Word.dll 将表转换为文本,并返回表示Range分隔文本的 对象。 C# publicMicrosoft.Office.Interop.Word.RangeConvertToText(refobjectSeparator,refobjectNestedTables); 参数 Separator Object 可选对象。 用以分隔被转换的列 (段落标记分隔被转换的行) 的字符。 可以是以下WdTableFieldSeparator...
On theInserttab, clickTable>Convert Text to Table. In theConvert Text to Tablebox, choose the options you want: UnderTable Size, make sure the numbers match the numbers of columns and rows you want. UnderAutoFit Behavior, choose how you want your table to look. Word automatically choo...