Udostępnij za pośrednictwem


DocumentBase.Envelope Property

Gets an Envelope that represents envelope functionality and the envelope in the document.

Namespace:  Microsoft.Office.Tools.Word
Assembly:  Microsoft.Office.Tools.Word.v4.0.Utilities (in Microsoft.Office.Tools.Word.v4.0.Utilities.dll)

Syntax

'Declaration
Public ReadOnly Property Envelope As Envelope
    Get
public Envelope Envelope { get; }

Property Value

Type: Microsoft.Office.Interop.Word.Envelope
An Envelope that represents envelope functionality and the envelope in the document.

Examples

The following code example sets the default envelope size to C4 (229 x 324 mm). To use this example, run it from the ThisDocument class in a document-level project.

Private Sub DocumentEnvelope()
    Me.Envelope.DefaultSize = "C4"
End Sub
private void DocumentEnvelope()
{
    this.Envelope.DefaultSize = "C4";
}

.NET Framework Security

See Also

Reference

DocumentBase Class

Microsoft.Office.Tools.Word Namespace