DocumentBase.ApplyQuickStyleSet Method

Changes the set of quick styles.

Namespace:  Microsoft.Office.Tools.Word
Assembly:  Microsoft.Office.Tools.Word.v4.0.Utilities (in Microsoft.Office.Tools.Word.v4.0.Utilities.dll)

public void ApplyQuickStyleSet(
	string name
)

Parameters

name
Type: System.String

The name of the set to use. This corresponds to the name listed in the Style Set list.

The following code example switches the document style set to the Fancy style set. To use this example, run it from the ThisDocument class in a document-level project.

private void SwitchToFancyStyleSet()
{
    this.ApplyQuickStyleSet("Fancy");            
}

Show: