Class OneSaveOptions

Class OneSaveOptions

ชื่อพื้นที่: Aspose.Note.Saving การประกอบ: Aspose.Note.dll (25.4.0)

อนุญาตให้ระบุตัวเลือกเพิ่มเติมเมื่อบันทึกเอกสารในรูปแบบ OneNote

public sealed class OneSaveOptions : SaveOptions
   {
       private bool _embedFonts;
       private SaveFormat _saveFormat;
       private SavePriority _savePriority;
       public OneSaveOptions()
       {
           EmbedFonts = true;
           SaveFormat = SaveFormat.Docx;
           SavePriority = SavePriority.MaxCompatibility;
       }
       public bool EmbedFonts
       {
           get { return _embedFonts; }
           set { _embedFonts = value; }
       }
       public SaveFormat SaveFormat
       {
           get { return _saveFormat; }
           set { _saveFormat = value; }
       }
       public SavePriority SavePriority
       {
           get { return _savePriority; }
           set { _savePriority = value; }
       }
   }

Inheritance

object SaveOptions OneSaveOptions

อนุญาโตตุลาการ

SaveOptions.SaveFormat , SaveOptions.FontsSubsystem , SaveOptions.PageIndex , SaveOptions.PageCount , object.GetType() , object.ToString() , object.Equals(object?) , object.Equals(object?, object?) , object.ReferenceEquals(object?, object?) , object.GetHashCode()

Examples

แสดงวิธีการบันทึกเอกสารด้วยการเข้ารหัส

string dataDir = RunExamples.GetDataDir_NoteBook();
   Document document = new Document();
   document.Save(dataDir + @"\CreatingPasswordProtectedDoc_out.one", new OneSaveOptions { DocumentPassword = "pass" });

แสดงวิธีการบันทึกเอกสารโดยใช้ OneSaveOptions

string inputFile = "Sample1.one";
   string dataDir = RunExamples.GetDataDir_LoadingAndSaving();
   string outputFile = "SaveDocToOneNoteFormatUsingOneSaveOptions_out.one";
   Document document = new Document(dataDir + inputFile);
   document.Save(dataDir + outputFile, new OneSaveOptions());

Constructors

OneSaveOptions()

public OneSaveOptions()
   {
   }

Properties

DocumentPassword

รับหรือตั้งรหัสผ่านเพื่อเข้ารหัสเนื้อหาเอกสาร

public string DocumentPassword
   {
      get;
      set;
   }

คุณสมบัติมูลค่า

string

Examples

แสดงวิธีการบันทึกเอกสารด้วยการเข้ารหัส

string dataDir = RunExamples.GetDataDir_NoteBook();
   Document document = new Document();
   document.Save(dataDir + "CreatingPasswordProtectedDoc_out.one", new OneSaveOptions() { DocumentPassword = "pass" });
 แบบไทย