_Document.CreateLetterContent(String, Boolean, String, WdLetterStyle, Boolean, WdLetterheadLocation, Single, String, String, String, WdSalutationType, String, String, String, String, String, String, String, String, String, String, String, Int32, Object, Object, Object, Object, Object, Object, Object, Object) 方法

定义

根据 LetterContent 指定的信函元素创建并返回一个对象。Creates and returns a LetterContent object based on the specified letter elements.

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

必需的 字符串Required String. 信函的日期。The date for the letter.

IncludeHeaderFooter
Boolean

必需的布尔值Required Boolean. 要包括页眉和页脚与页面设计模板。True to include the header and footer from the page design template.

PageDesign
String

必需的 字符串Required String. 附加到文档的模板的名称。The name of the template attached to the document.

LetterStyle
WdLetterStyle

必需 WdLetterStyleRequired WdLetterStyle. 文档版式。The document layout.

Letterhead
Boolean

必需的布尔值Required Boolean. 为预先打印的信头保留空间。True to reserve space for a preprinted letterhead.

LetterheadLocation
WdLetterheadLocation

必需 WdLetterheadLocationRequired WdLetterheadLocation. 预先打印信头的位置。The location of the preprinted letterhead.

LetterheadSize
Single

必需SingleRequired Single. 为预先打印的信头保留的空间(以磅为单位)。The amount of space (in points) to be reserved for a preprinted letterhead.

RecipientName
String

必需的 字符串Required String. 收信人的姓名。The name of the person who'll be receiving the letter.

RecipientAddress
String

必需的 字符串Required String. 收信人的地址。The mailing address of the person who'll be receiving the letter.

Salutation
String

必需的 字符串Required String. 信函的称呼文本。The salutation text for the letter.

SalutationType
WdSalutationType

必需 WdSalutationTypeRequired WdSalutationType. 信函称呼的类型。The salutation type for the letter.

RecipientReference
String

必需的 字符串Required String. 信函的参考词组(例如,"In reply to";)。The reference line text for the letter (for example, "In reply to:").

MailingInstructions
String

必需的 字符串Required String. 信函邮寄格式(例如,"Certified Mail")。The mailing instruction text for the letter (for example, "Certified Mail").

AttentionLine
String

必需的 字符串Required String. 信函注意用语(例如,"Attention";)。The attention line text for the letter (for example, "Attention:").

Subject
String

必需的 字符串Required String. 指定信函的主题文本。The subject text for the specified letter.

CCList
String

必需的 字符串Required String. 信函副本收件人的姓名(转寄人)。The names of the carbon copy (CC) recipients for the letter.

ReturnAddress
String

必需的 字符串Required String. 回信的通讯地址。The text of the return mailing address for the letter.

SenderName
String

必需的 字符串Required String. 发信人姓名。The name of the person sending the letter.

Closing
String

必需的 字符串Required String. 信函的结束语。The closing text for the letter.

SenderCompany
String

必需的 字符串Required String. 写信人所在公司的名称。The company name of the person creating the letter.

SenderJobTitle
String

必需的 字符串Required String. 写信人的职务。The job title of the person creating the letter.

SenderInitials
String

必需的 字符串Required String. 写信人的姓名缩写。The initials of the person creating the letter.

EnclosureNumber
Int32

必需的整数Required Integer. 信函的附件数。The number of enclosures for the letter.

InfoBlock
Object

可选对象Optional Object. 根据您所选择或安装的语言支持(例如,美国英语),此参数可能不可用。This argument may not be available to you, depending on the language support (U.S. English, for example) that you’ve selected or installed.

RecipientCode
Object

可选对象Optional Object. 根据您所选择或安装的语言支持(例如,美国英语),此参数可能不可用。This argument may not be available to you, depending on the language support (U.S. English, for example) that you’ve selected or installed.

RecipientGender
Object

可选对象Optional Object. 根据您所选择或安装的语言支持(例如,美国英语),此参数可能不可用。This argument may not be available to you, depending on the language support (U.S. English, for example) that you’ve selected or installed.

ReturnAddressShortForm
Object

可选对象Optional Object. 根据您所选择或安装的语言支持(例如,美国英语),此参数可能不可用。This argument may not be available to you, depending on the language support (U.S. English, for example) that you’ve selected or installed.

SenderCity
Object

可选对象Optional Object. 根据您所选择或安装的语言支持(例如,美国英语),此参数可能不可用。This argument may not be available to you, depending on the language support (U.S. English, for example) that you’ve selected or installed.

SenderCode
Object

可选对象Optional Object. 根据您所选择或安装的语言支持(例如,美国英语),此参数可能不可用。This argument may not be available to you, depending on the language support (U.S. English, for example) that you’ve selected or installed.

SenderGender
Object

可选对象Optional Object. 根据您所选择或安装的语言支持(例如,美国英语),此参数可能不可用。This argument may not be available to you, depending on the language support (U.S. English, for example) that you’ve selected or installed.

SenderReference
Object

可选对象Optional Object. 根据您所选择或安装的语言支持(例如,美国英语),此参数可能不可用。This argument may not be available to you, depending on the language support (U.S. English, for example) that you’ve selected or installed.

返回

LetterContent

适用于