Modifica

Condividi tramite


StyleSheets.Add Method

Definition

Returns a StyleSheet object that represents a new style sheet added to a Web document.

public:
 Microsoft::Office::Interop::Word::StyleSheet ^ Add(System::String ^ FileName, Microsoft::Office::Interop::Word::WdStyleSheetLinkType LinkType, System::String ^ Title, Microsoft::Office::Interop::Word::WdStyleSheetPrecedence Precedence);
public Microsoft.Office.Interop.Word.StyleSheet Add (string FileName, Microsoft.Office.Interop.Word.WdStyleSheetLinkType LinkType, string Title, Microsoft.Office.Interop.Word.WdStyleSheetPrecedence Precedence);
abstract member Add : string * Microsoft.Office.Interop.Word.WdStyleSheetLinkType * string * Microsoft.Office.Interop.Word.WdStyleSheetPrecedence -> Microsoft.Office.Interop.Word.StyleSheet
Public Function Add (FileName As String, LinkType As WdStyleSheetLinkType, Title As String, Precedence As WdStyleSheetPrecedence) As StyleSheet

Parameters

FileName
String

Required String. The path and file name of the cascading style sheet.

LinkType
WdStyleSheetLinkType

Required WdStyleSheetLinkType. Indicates whether the style sheet should be added as a link or imported into the Web document.Can be one of the following constants: wdStyleSheetLinkTypeImported wdStyleSheetLinkTypeLinkeddefault

Title
String

Required String. The name of the style sheet.

Precedence
WdStyleSheetPrecedence

Required WdStyleSheetPrecedence. Indicates the level of importance compared to other cascading style sheets attached to the Web document.Can be one of the following constants:wdStyleSheetPrecedenceHigherwdStyleSheetPrecedenceHighestdefaultwdStyleSheetPrecedenceLowerwdStyleSheetPrecedenceLowest

Returns

Applies to