StyleSheets.Add Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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:wdStyleSheetPrecedenceHigherwdStyleSheetPrecedenceHighestdefault
wdStyleSheetPrecedenceLowerwdStyleSheetPrecedenceLowest
Returns
Applies to
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應