Diese Dokumentation wurde archiviert und wird nicht länger gepflegt.

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)

Dim Name As String
Dim Type As Object
Dim returnValue As Style
Dim styles1 As Styles
returnValue = styles1.Add(Name, Type)

Style Add(
	[In] string Name, 
	[In, Optional] ref object Type
public Style Add(
	/*in*/System.String Name, 
	/*in*/System.Object Type
function Add(
	 Name : String, 
	 Type : Object
) : Style;



Required String. The string name for the new style.


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

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Development Platforms

Windows XP Home Edition, Windows XP Professional, Windows Server 2003, and Windows 2000

Target Platforms