Class OneSaveOptions

Class OneSaveOptions

A név: Aspose.Note.Saving Összefoglaló: Aspose.Note.dll (25.4.0)

Lehetővé teszi, hogy a dokumentum OneNote formátumban mentésekor további lehetőségeket állapítson meg.

public sealed class OneSaveOptions : SaveOptions

Inheritance

object SaveOptions OneSaveOptions

Örökletes tagok

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

Megmutatja, hogyan kell menteni a dokumentumot titkosítással.

// The path to the documents directory.
                                                      string dataDir = RunExamples.GetDataDir_NoteBook();

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

Megmutatja, hogyan lehet menteni egy dokumentumot a OneSaveOptions használatával.

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

Kap egy jelszót vagy beállít egy kódot a dokumentum tartalmának titkosítására.

public string DocumentPassword { get; set; }

ingatlan értéke

string

Examples

Megmutatja, hogyan kell menteni a dokumentumot titkosítással.

// The path to the documents directory.
                                                      string dataDir = RunExamples.GetDataDir_NoteBook();

                                                      Document document = new Document();
                                                      document.Save(dataDir + "CreatingPasswordProtectedDoc_out.one", new OneSaveOptions() { DocumentPassword = "pass" });
 Magyar