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.
        WdDocumentKind.wdDocumentLetter;
    MessageBox.Show(this.Kind.ToString());
}
Return to top
Show: