Styles.Add method

Returns a Style object that represents a new user-defined style added to the list of styles.

Namespace:  Microsoft.Office.Interop.Word
Assembly:  Microsoft.Office.Interop.Word (in Microsoft.Office.Interop.Word.dll)

Style Add(
	string Name,
	ref Object Type
)

Parameters

Name
Type: System.String

Required String. The string name for the new style.

Type
Type: System.Object

Optional Object. The style type of the new style. Can be one of the following WdStyleType constants: wdStyleTypeParagraph, wdStyleTypeCharacter, wdStyleTypeList, or wdStyleTypeTable.

Show: