Version

SetText Method

Assigns a simple text value to the cell.
Syntax
'Declaration
 
Public Sub SetText( _
   ByVal value As String _
) 
public void SetText( 
   string value
)

Parameters

value
The string to assign.
Remarks

The SetText method provides a way to assign a simple text value to a table cell, without triggering creation of the ContentBlocks collection or a Paragraph.

To add more complex content such as text with mixed formatting attributes, hyperlinks, images, shapes, and tables, use the ContentBlocks collection.

Note that calling this method causes the contents of the ContentBlocks collection to be emptied.

Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also