_Document.CreateLetterContent 方法

定义

创建并返回 LetterContent 基于指定的字母元素的对象。

public Microsoft.Office.Interop.Word.LetterContent CreateLetterContent (string DateFormat, bool IncludeHeaderFooter, string PageDesign, Microsoft.Office.Interop.Word.WdLetterStyle LetterStyle, bool Letterhead, Microsoft.Office.Interop.Word.WdLetterheadLocation LetterheadLocation, float LetterheadSize, string RecipientName, string RecipientAddress, string Salutation, Microsoft.Office.Interop.Word.WdSalutationType SalutationType, string RecipientReference, string MailingInstructions, string AttentionLine, string Subject, string CCList, string ReturnAddress, string SenderName, string Closing, string SenderCompany, string SenderJobTitle, string SenderInitials, int EnclosureNumber, ref object InfoBlock, ref object RecipientCode, ref object RecipientGender, ref object ReturnAddressShortForm, ref object SenderCity, ref object SenderCode, ref object SenderGender, ref object SenderReference);
abstract member CreateLetterContent : string * bool * string * Microsoft.Office.Interop.Word.WdLetterStyle * bool * Microsoft.Office.Interop.Word.WdLetterheadLocation * single * string * string * string * Microsoft.Office.Interop.Word.WdSalutationType * string * string * string * string * string * string * string * string * string * string * string * int * obj * obj * obj * obj * obj * obj * obj * obj -> Microsoft.Office.Interop.Word.LetterContent
Public Function CreateLetterContent (DateFormat As String, IncludeHeaderFooter As Boolean, PageDesign As String, LetterStyle As WdLetterStyle, Letterhead As Boolean, LetterheadLocation As WdLetterheadLocation, LetterheadSize As Single, RecipientName As String, RecipientAddress As String, Salutation As String, SalutationType As WdSalutationType, RecipientReference As String, MailingInstructions As String, AttentionLine As String, Subject As String, CCList As String, ReturnAddress As String, SenderName As String, Closing As String, SenderCompany As String, SenderJobTitle As String, SenderInitials As String, EnclosureNumber As Integer, Optional ByRef InfoBlock As Object, Optional ByRef RecipientCode As Object, Optional ByRef RecipientGender As Object, Optional ByRef ReturnAddressShortForm As Object, Optional ByRef SenderCity As Object, Optional ByRef SenderCode As Object, Optional ByRef SenderGender As Object, Optional ByRef SenderReference As Object) As LetterContent

参数

DateFormat
String

必需的 字符串 。 信函的日期。

IncludeHeaderFooter
Boolean

必需 布尔值 要包括页眉和页脚与页面设计模板。

PageDesign
String

必需的 字符串 。 附加到文档的模板的名称。

LetterStyle
WdLetterStyle

必需 WdLetterStyle。 文档版式。

Letterhead
Boolean

必需 布尔值 为预先打印的信头保留空间。

LetterheadLocation
WdLetterheadLocation

必需 WdLetterheadLocation。 预先打印信头的位置。

LetterheadSize
Single

必需 单一。 为预先打印的信头保留的空间(以磅为单位)。

RecipientName
String

必需的 字符串 。 收信人的姓名。

RecipientAddress
String

必需的 字符串 。 收信人的地址。

Salutation
String

必需的 字符串 。 信函的称呼文本。

SalutationType
WdSalutationType

必需 WdSalutationType。 信函称呼的类型。

RecipientReference
String

必需的 字符串 。 信函的参考词组(例如,"In reply to";)。

MailingInstructions
String

必需的 字符串 。 信函邮寄格式(例如,"Certified Mail")。

AttentionLine
String

必需的 字符串 。 信函注意用语(例如,"Attention";)。

Subject
String

必需的 字符串 。 指定信函的主题文本。

CCList
String

必需的 字符串 。 信函副本收件人的姓名(转寄人)。

ReturnAddress
String

必需的 字符串 。 回信的通讯地址。

SenderName
String

必需的 字符串 。 发信人姓名。

Closing
String

必需的 字符串 。 信函的结束语。

SenderCompany
String

必需的 字符串 。 写信人所在公司的名称。

SenderJobTitle
String

必需的 字符串 。 写信人的职务。

SenderInitials
String

必需的 字符串 。 写信人的姓名缩写。

EnclosureNumber
Int32

必需 整数。 信函的附件数。

InfoBlock
Object

可选 对象。 根据您所选择或安装的语言支持(例如,美国英语),此参数可能不可用。

RecipientCode
Object

可选 对象。 根据您所选择或安装的语言支持(例如,美国英语),此参数可能不可用。

RecipientGender
Object

可选 对象。 根据您所选择或安装的语言支持(例如,美国英语),此参数可能不可用。

ReturnAddressShortForm
Object

可选 对象。 根据您所选择或安装的语言支持(例如,美国英语),此参数可能不可用。

SenderCity
Object

可选 对象。 根据您所选择或安装的语言支持(例如,美国英语),此参数可能不可用。

SenderCode
Object

可选 对象。 根据您所选择或安装的语言支持(例如,美国英语),此参数可能不可用。

SenderGender
Object

可选 对象。 根据您所选择或安装的语言支持(例如,美国英语),此参数可能不可用。

SenderReference
Object

可选 对象。 根据您所选择或安装的语言支持(例如,美国英语),此参数可能不可用。

返回

适用于