Udostępnij za pośrednictwem


Document.SaveEncoding Property (2007 System)

Gets or sets the encoding to use when saving the document.

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

Syntax

'Declaration
<BrowsableAttribute(False)> _
Public Property SaveEncoding As MsoEncoding
'Usage
Dim instance As Document 
Dim value As MsoEncoding 

value = instance.SaveEncoding

instance.SaveEncoding = value
[BrowsableAttribute(false)]
public MsoEncoding SaveEncoding { get; set; }
[BrowsableAttribute(false)]
public:
property MsoEncoding SaveEncoding {
    MsoEncoding get ();
    void set (MsoEncoding value);
}
public function get SaveEncoding () : MsoEncoding 
public function set SaveEncoding (value : MsoEncoding)

Property Value

Type: MsoEncoding
One of the MsoEncoding values.

Examples

The following code example specifies Western encoding for saving the document.

This example is for a document-level customization.

Private Sub DocumentSaveEncoding()
    Me.SaveEncoding = Microsoft.Office.Core.MsoEncoding.msoEncodingWestern
End Sub
private void DocumentSaveEncoding()
{
    this.SaveEncoding = Microsoft.Office.Core.MsoEncoding.msoEncodingWestern;
}

.NET Framework Security

See Also

Reference

Document Class

Document Members

Microsoft.Office.Tools.Word Namespace