Language.DefaultWritingStyle Property
Returns or sets the default writing style used by the grammar checker for the specified language. The name of the writing style is the localized name for the specified language.
Namespace: Microsoft.Office.Interop.Word
Assembly: Microsoft.Office.Interop.Word (in microsoft.office.interop.word.dll)
Usage
Dim language1 As Language
Dim returnValue As String
returnValue = language1.DefaultWritingStyle
Dim sampleValue As String
language1.DefaultWritingStyle = sampleValue
Syntax
Property DefaultWritingStyle() As String
string DefaultWritingStyle {get; set;}
property String^ DefaultWritingStyle{
String^ get();
Void set(String^);
}
public System.String get_DefaultWritingStyle();
public void set_DefaultWritingStyle(System.String);
function get DefaultWritingStyle() : String;
function set DefaultWritingStyle(String);
Remarks
This property controls the global setting for the writing style. When setting this property, you must use the exact name found in the Writing style box on the Spelling & Grammar tab in the Options dialog box (Tools menu).
The ActiveWritingStyle property sets the writing style for each language in a document. The ActiveWritingStyle setting overrides the DefaultWritingStyle setting.
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
Language Interface
Microsoft.Office.Interop.Word Namespace