편집

다음을 통해 공유


HeadingStyles.Add(Object, Int16) Method

Definition

Returns a HeadingStyle object that represents a new heading style added to a document. The new heading style will be included whenever you compile a table of contents or table of figures.

public:
 Microsoft::Office::Interop::Word::HeadingStyle ^ Add(System::Object ^ % Style, short Level);
public Microsoft.Office.Interop.Word.HeadingStyle Add (ref object Style, short Level);
abstract member Add : obj * int16 -> Microsoft.Office.Interop.Word.HeadingStyle
Public Function Add (ByRef Style As Object, Level As Short) As HeadingStyle

Parameters

Style
Object

Required Object. The style you want to add. You can specify this argument by using either the string name for the style or a Style object.

Level
Int16

Required Short. A number that represents the level of the heading.

Returns

Applies to