Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Applies the specified quick style set to the document. This method can be used only in Word 2010 projects.
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 ApplyQuickStyleSet2 ( _
ByRef style As Object _
)
public void ApplyQuickStyleSet2(
ref Object style
)
Parameters
- style
Type: System.Object%
The name of the style set to use. Can be either a string that specifies the name of the set to use (the string corresponds to the names listed in the Style Set list) or one of the Microsoft.Office.Interop.Word.WdApplyQuickStyleSets values.
Exceptions
Exception | Condition |
---|---|
MissingMemberException | This method is used in a Word 2007 project. |
Remarks
This method appears in IntelliSense in Word 2007 projects that target the .NET Framework 4. However, this property cannot be used in Word 2007 projects.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.