Save a Word document in OpenDocument Text format Important:If you want to keep a Word version of your file, you must first save the file as a Word document, for example, in .docx file format, and then save it again in the OpenDocument Text (....
OpenXml.Office2021.DocumentTasks DocumentFormat.OpenXml.Office2021.Drawing.DocumentClassification DocumentFormat.OpenXml.Office2021.Drawing.Livefeed DocumentFormat.OpenXml.Office2021.Drawing.SketchyShapes DocumentFormat.OpenXml.Office2021.Excel.ExternalLinks DocumentFormat.OpenXml.Office2021.Excel.NamedSheetV...
You can set an Open Document Format (ODF) file as the default file template for a document library. This way, when someone creates a new file in the library, the file opens and saves as an ODF file. People can use a program of their choice to ...
Smaller file size. Text document files are one of the most basic and storage-efficient text file formats. Due to the format’s simplicity, .TXT can be used to store vast amounts of data with significantly less storage when compared to more complex text formats. Universal compatibility. The ...
linkedToFile linkStyles linkToQuery listEntry listSeparator lnNumType locked lockedField lsdException lvl lvlJc lvlOverride lvlPicBulletId lvlRestart lvlText mailAsAttachment mailMerge mailSubject mainDocumentType mappedName marBottom marH markup marLeft marRight marTop marW matchSrc maxLength mirrorInden...
DocumentType 类 参考 反馈 定义 命名空间: DocumentFormat.OpenXml.Wordprocessing 程序集: DocumentFormat.OpenXml.dll 包: DocumentFormat.OpenXml v2.7.2 文档分类。 此类在 Office 2007 及更高版本中可用。 将对象序列化为 xml 时,其限定名称为 w:documentType。 C# 复制 public class DocumentType...
sectPr (Document Final Section 属性) 此元素定义文档最后一节的节属性。 [注意:对于任何其他部分,属性存储为与给定节中最后一段对应的 paragraph 元素的子元素。 注释结束] [示例:考虑具有多个节的文档。 对于除最后一节之外的所有部分,sectPr 元素将存储为节中最后一个段落的子元素。 对于最后一部分,此信息...
DocumentProtection 类 参考 反馈 定义 命名空间: DocumentFormat.OpenXml.Wordprocessing 程序集: DocumentFormat.OpenXml.dll 包: DocumentFormat.OpenXml v3.0.1 文档编辑限制。 此类在 Office 2007 及更高版本中可用。 将对象序列化为 xml 时,其限定名称为 w:documentProtection。 C# 复制 public cl...
OpenXml.Office2021.DocumentTasks DocumentFormat.OpenXml.Office2021.Drawing.DocumentClassification DocumentFormat.OpenXml.Office2021.Drawing.Livefeed DocumentFormat.OpenXml.Office2021.Drawing.SketchyShapes DocumentFormat.OpenXml.Office2021.Excel.ExternalLinks DocumentFormat.OpenXml.Office2021.Excel.NamedSheetViews ...
string fileName = @"C:\Users\Public\Documents\WordProcessingEx.docx"; using ( WordprocessingDocument myDocument = WordprocessingDocument.Open(fileName, true)) { // Get the first paragraph. Paragraph p = myDocument.MainDocumentPart.Document.Body.Elements<Paragraph>().First(); // If the par...