Class OneSaveOptions
Class OneSaveOptions
이름 공간 : Aspose.Note.Saving 모임: Aspose.Note.dll (25.4.0)
문서를 OneNote 형식으로 저장할 때 추가 옵션을 지정할 수 있습니다.
public sealed class OneSaveOptions : SaveOptions
{
private bool _embedFonts;
private SaveFormat _saveFormat;
private SavePriority _savePriority;
public OneSaveOptions()
{
EmbedFonts = true;
SaveFormat = SaveFormat.Docx;
SavePriority = SavePriority.MaxCompatibility;
}
public bool EmbedFonts
{
get { return _embedFonts; }
set { _embedFonts = value; }
}
public SaveFormat SaveFormat
{
get { return _saveFormat; }
set { _saveFormat = value; }
}
public SavePriority SavePriority
{
get { return _savePriority; }
set { _savePriority = value; }
}
}
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
암호화를 통해 문서를 저장하는 방법을 보여줍니다.
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
단일 옵션()
public OneSaveOptions()
{
}
Properties
DocumentPassword
문서 콘텐츠를 암호화하기 위해 비밀번호를 얻거나 설정합니다.
public string DocumentPassword
{
get;
set;
}
부동산 가치
Examples
암호화를 통해 문서를 저장하는 방법을 보여줍니다.
string dataDir = RunExamples.GetDataDir_NoteBook();
Document document = new Document();
document.Save(dataDir + "CreatingPasswordProtectedDoc_out.one", new OneSaveOptions() { DocumentPassword = "pass" });