StyleSheet Interface

Definition

Represents a single cascading style sheet attached to a web document.

public interface class StyleSheet
[System.Runtime.InteropServices.Guid("000209EF-0000-0000-C000-000000000046")]
public interface StyleSheet
type StyleSheet = interface
Public Interface StyleSheet
Attributes

Remarks

The StyleSheet object is a member of the StyleSheets collection. The StyleSheets collection contains all the cascading style sheets attached to a specified document.

Use the Item[Object] property or StyleSheets(index), where index is the name or number of the style sheet, of the StyleSheets collection to return a StyleSheet object.

Use the Index property to determine the precedence of cascading style sheets.

Use the Move(WdStyleSheetPrecedence) method to reorder the precedence of attached style sheets.

Properties

Application

Returns a Application object that represents the Microsoft Word application.

Creator

Returns a 32-bit integer that indicates the application in which the specified object was created.

FullName

Specifies the name of a cascading style sheet, including the drive or Web path.

Index

Returns an Integer that represents the position of an item in a collection.

Name

Returns the name of the specified object.

Parent

Returns an object that represents the parent object of the specified object.

Path

Returns the disk or Web path to the specified object.

Title

Returns a String representing the title of a Web style sheet.

Type

Returns the template type.

Methods

Delete()

Deletes the specified object.

Move(WdStyleSheetPrecedence)

Moves a style sheet's order of precedence.

Applies to