Class OneSaveOptions

Class OneSaveOptions

Название пространства: Aspose.Note.Saving Ассоциация: Aspose.Note.dll (25.4.0)

Позволяет указать дополнительные варианты при сохранении документа в формате OneNote.

public sealed class OneSaveOptions : SaveOptions

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

Показать, как сохранить документ с помощью шифрования.

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

Показать, как сохранить документ с помощью 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

Показать, как сохранить документ с помощью шифрования.

// 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" });
 Русский