Class OneSaveOptions
Class OneSaveOptions
Nombre del espacio: Aspose.Note.Saving Asamblea: Aspose.Note.dll (25.4.0)
Permite especificar opciones adicionales al almacenar un documento en formato OneNote.
public sealed class OneSaveOptions : SaveOptions
Inheritance
object ← SaveOptions ← OneSaveOptions
Miembros heredados
SaveOptions.SaveFormat ,y, SaveOptions.FontsSubsystem ,y, SaveOptions.PageIndex ,y, SaveOptions.PageCount ,y, object.GetType() ,y, object.ToString() ,y, object.Equals(object?) ,y, object.Equals(object?, object?) ,y, object.ReferenceEquals(object?, object?) ,y, object.GetHashCode()
Examples
Mostra cómo guardar un documento con cifrado.
// 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" });
Mostra cómo guardar un documento utilizando 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
Recibe o establece una contraseña para cifrar el contenido del documento.
public string DocumentPassword { get; set; }
Valor de la propiedad
Examples
Mostra cómo guardar un documento con cifrado.
// 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" });