Options.AutoFormatPreserveStyles Property 

True if previously applied styles are preserved when Microsoft Word formats a document or range automatically.

Namespace: Microsoft.Office.Interop.Word
Assembly: Microsoft.Office.Interop.Word (in microsoft.office.interop.word.dll)

Usage

Dim options1 As Options

Dim returnValue As Boolean
returnValue = options1.AutoFormatPreserveStyles

Dim sampleValue As Boolean
options1.AutoFormatPreserveStyles = sampleValue

Syntax

Property AutoFormatPreserveStyles() As Boolean
bool AutoFormatPreserveStyles {get; set;}
property Boolean AutoFormatPreserveStyles{
    Boolean get();
    Void set(Boolean);
}
public boolean get_AutoFormatPreserveStyles();
public void set_AutoFormatPreserveStyles(boolean);
function get AutoFormatPreserveStyles() : Boolean;
function set AutoFormatPreserveStyles(Boolean);

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Development Platforms

Windows XP Home Edition, Windows XP Professional, Windows Server 2003, and Windows 2000

Target Platforms

See Also

Reference

Options Interface
Microsoft.Office.Interop.Word Namespace

Other Resources

Options Members