Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Add method
Collapse the table of content
Expand the table of content

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:
© 2015 Microsoft