Style Interface 

Represents a single built-in or user-defined style.

Namespace: Microsoft.Office.Interop.Word
Assembly: Microsoft.Office.Interop.Word (in microsoft.office.interop.word.dll)

Usage

Public Class tyleImplementation
    Implements Style
End Class
Dim tyleImplementation1 As New tyleImplementation()

Syntax

Public Interface Style
public interface Style
public interface class Style
public interface Style
public interface Style

Remarks

The Style object includes style attributes (font, font style, paragraph spacing, and so on) as properties of the Style object. The Style object is a member of the Styles collection. The Styles collection includes all the styles in the specified document.

Use Styles(index), where index is the style name, a WdBuiltinStyle constant or index number, to return a single Style object. You must exactly match the spelling and spacing of the style name, but not necessarily its capitalization.

The style index number represents the position of the style in the alphabetically sorted list of style names.

To apply a style to a range, paragraph, or multiple paragraphs, set the Style property to a user-defined or built-in style name.

Use the OrganizerCopy method to copy styles between documents and templates. Use the UpdateStyles method to update the styles in the active document to match the style definitions in the attached template. Use the OpenAsDocument method to open a template as a document so that you can modify the template styles.

Platforms

Development Platforms

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

Target Platforms

See Also

Reference

Microsoft.Office.Interop.Word Namespace

Other Resources

Style Members