Class OneSaveOptions

Class OneSaveOptions

Le nom : Aspose.Note.Saving Assemblée: Aspose.Note.dll (25.4.0)

Il permet de spécifier des options supplémentaires lors de l’enregistrement du document dans le format OneNote.

public sealed class OneSaveOptions : SaveOptions

Inheritance

object SaveOptions OneSaveOptions

I membri ereditari

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

Découvrez comment sauvegarder un document avec le cryptage.

// 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" });

Afficher comment sauvegarder un document en utilisant 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

Obtenez ou définissez un mot de passe pour encrypter le contenu du document.

public string DocumentPassword { get; set; }

Valore di proprietà

string

Examples

Découvrez comment sauvegarder un document avec le cryptage.

// 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" });
 Français