Class OneSaveOptions

Class OneSaveOptions

Pôvodný názov: Aspose.Note.Saving Zhromaždenie: Aspose.Note.dll (25.4.0)

Umožňuje určiť ďalšie možnosti pri ukladaní dokumentu do formátu OneNote.

public sealed class OneSaveOptions : SaveOptions

Inheritance

object SaveOptions OneSaveOptions

Z dedičných členov

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

Ukážte, ako uložiť dokument s šifrovaním.

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

Ukážte, ako uložiť dokument pomocou 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

Dostane alebo nastaví heslo na šifrovanie obsahu dokumentu.

public string DocumentPassword { get; set; }

Hodnota nehnuteľnosti

string

Examples

Ukážte, ako uložiť dokument s šifrovaním.

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