Expand Minimize

DocumentBase.Kind Property

Gets or sets the format type that Microsoft Office Word uses when automatically formatting the document.

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

public WdDocumentKind Kind { get; set; }

Property Value

Type: Microsoft.Office.Interop.Word.WdDocumentKind
One of the WdDocumentKind values.

The following code example sets the type that Word uses when automatically formatting the document as a letter. The code then displays a message that shows the type. To use this example, run it from the ThisDocument class in a document-level project.

private void DocumentKind()
    this.Kind = Microsoft.Office.Interop.Word.

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
© 2014 Microsoft