Document.SetLetterContent Method
Inserts the contents of the specified LetterContent into the document.
Namespace: Microsoft.Office.Tools.Word
Assemblies: Microsoft.Office.Tools.Word.v4.0.Utilities (in Microsoft.Office.Tools.Word.v4.0.Utilities.dll)
Microsoft.Office.Tools.Word (in Microsoft.Office.Tools.Word.dll)
Syntax
'Declaration
Sub SetLetterContent ( _
ByRef LetterContent As Object _
)
void SetLetterContent(
ref Object LetterContent
)
Parameters
LetterContent
Type: System.Object%The LetterContent that includes the various elements of the letter.
Remarks
This method is similar to the RunLetterWizard method except that it does not display the Letter Wizard dialog box. The method adds, deletes, or restyles letter elements in the document based on the contents of the LetterContent object.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.