Share via


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)

Syntax

'Declaration
Public Sub ApplyQuickStyleSet ( _
    name As String _
)
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.

Examples

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 Sub SwitchToFancyStyleSet()
    Me.ApplyQuickStyleSet("Fancy")
End Sub
private void SwitchToFancyStyleSet()
{
    this.ApplyQuickStyleSet("Fancy");            
}

.NET Framework Security

See Also

Reference

DocumentBase Class

Microsoft.Office.Tools.Word Namespace