Document.Kind Property (2007 System)

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.v9.0 (in Microsoft.Office.Tools.Word.v9.0.dll)

Syntax

'Declaration
Public Property Kind As WdDocumentKind
'Usage
Dim instance As Document 
Dim value As WdDocumentKind 

value = instance.Kind

instance.Kind = value
public WdDocumentKind Kind { get; set; }
public:
property WdDocumentKind Kind {
    WdDocumentKind get ();
    void set (WdDocumentKind value);
}
public function get Kind () : WdDocumentKind 
public function set Kind (value : WdDocumentKind)

Property Value

Type: WdDocumentKind
One of the WdDocumentKind values.

Examples

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.

This example is for a document-level customization.

Private Sub DocumentKind()
    Me.Kind = Microsoft.Office.Interop.Word.WdDocumentKind.wdDocumentLetter
    MessageBox.Show(Me.Kind.ToString())
End Sub
private void DocumentKind()
{
    this.Kind = Microsoft.Office.Interop.Word.
        WdDocumentKind.wdDocumentLetter;
    MessageBox.Show(this.Kind.ToString());
}

.NET Framework Security

See Also

Reference

Document Class

Document Members

Microsoft.Office.Tools.Word Namespace