Version

SetText Method

Assigns a simple text value to the cell.
Syntax
'Declaration
 
Public Sub SetText( _
   ByVal value As System.String _
) 
public void SetText( 
   System.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 8.1, 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

View on GitHub