編輯

共用方式為


Envelope Interface

Definition

Represents an envelope.

public interface class Envelope
[System.Runtime.InteropServices.Guid("00020918-0000-0000-C000-000000000046")]
public interface Envelope
type Envelope = interface
Public Interface Envelope
Attributes

Remarks

There is no Envelopes collection; each Document object contains only one Envelope object.

Use the Envelope property to return the Envelope object.

The Envelope object is available regardless of whether an envelope has been added to the specified document. However, an error occurs if you use the Envelope property. UpdateDocument method or one of the following properties when an envelope hasn't been added to the document: Address, AddressFromLeft, AddressFromTop, FeedSource, ReturnAddress, ReturnAddressFromLeft, and ReturnAddressFromTop.

Use the Insert(Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object) method to add an envelope to the specified document. Use the PrintOut(Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object) method to set the properties of an envelope and print it without adding it to the document.

Properties

Address

Returns the envelope delivery address as a Range object.

AddressFromLeft

Returns or sets the distance (in points) between the left edge of the envelope and the delivery address.

AddressFromTop

Returns or sets the distance (in points) between the top edge of the envelope and the delivery address.

AddressStyle

Returns a Style object that represents the delivery address style for the envelope.

Application

Returns a Application object that represents the Microsoft Word application.

Creator

Returns a 32-bit integer that indicates the application in which the specified object was created.

DefaultFaceUp

Determines if envelopes are fed face up by default.

DefaultHeight

Returns or sets the default envelope height, in points.

DefaultOmitReturnAddress

Determines if the return address is omitted from envelopes by default.

DefaultOrientation

Returns or sets the default orientation for feeding envelopes.

DefaultPrintBarCode

Determines if a POSTNET bar code is added to envelopes or mailing labels by default.

DefaultPrintFIMA

Determines if a Facing Identification Mark (FIM-A) is added to envelopes by default.

DefaultSize

Returns or sets the default envelope size.

DefaultWidth

Returns or sets the default envelope width, in points.

FeedSource

Returns or sets the paper tray for the envelope.

Parent

Returns an object that represents the parent object of the specified object.

RecipientNamefromLeft

Returns or sets a Single that represents the position, measured in points, of the recipient's name from the left edge of the envelope. Used for Asian language envelopes.

RecipientNamefromTop

Returns or sets a Single that represents the position, measured in points, of the recipient's name from the top edge of the envelope.

RecipientPostalfromLeft

Returns or sets a Single that represents the position, measured in points, of the recipient's postal code from the left edge of the envelope.

RecipientPostalfromTop

Returns or sets a Single that represents the position, measured in points, of the recipient's postal code from the top edge of the envelope.

ReturnAddress

Returns a Range object that represents the envelope return address.

ReturnAddressFromLeft

Returns or sets the distance (in points) between the left edge of the envelope and the return address.

ReturnAddressFromTop

Returns or sets the distance (in points) between the top edge of the envelope and the return address.

ReturnAddressStyle

Returns a Style object that represents the return address style for the envelope.

SenderNamefromLeft

Returns or sets a Single that represents the position, measured in points, of the sender's name from the left edge of the envelope.

SenderNamefromTop

Returns or sets a Single that represents the position, measured in points, of the sender's name from the top edge of the envelope.

SenderPostalfromLeft

Returns or sets a Single that represents the position, measured in points, of the sender's postal code from the left edge of the envelope.

SenderPostalfromTop

Returns or sets a Single that represents the position, measured in points, of the sender's postal code from the top edge of the envelope.

Vertical

Vertically orients text on Asian envelopes and mailing labels.

Methods

Insert(Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object)

Inserts an envelope as a separate section at the beginning of the specified document.

Insert2000(Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object)

Reserved for internal use.

Options()

Displays the Envelope Options dialog box.

PrintOut(Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object)

Prints an envelope without adding the envelope to the active document.

PrintOut2000(Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object)

Reserved for internal use.

UpdateDocument()

Updates the envelope in the document with the current envelope settings.

Applies to