_Document.TransformDocument(String, Boolean) 方法

定义

将 Extensible Stylesheet Language Transformation (XSLT) 文件应用于指定文档,并用结果替换该文档。Applies the specified Extensible Stylesheet Language Transformation (XSLT) file to the specified document and replaces the document with the results.

public void TransformDocument (string Path, bool DataOnly = false);
abstract member TransformDocument : string * bool -> unit
Public Sub TransformDocument (Path As String, Optional DataOnly As Boolean = false)

参数

Path
String

必需的 字符串Required String. XSLT 使用的路径。The path for the XSLT to use.

DataOnly
Boolean

可选属性,类型为 BooleanOptional Boolean. True 转换仅适用于在文档中的数据不包括 Microsoft Word XML。True applies the transformation only to the data in the document, excluding Microsoft Word XML. 到整个文档,包括 Word XML 应用的转换。False applies the transform to the entire document, including Word XML. 默认值为 TrueDefault value is True.

适用于