Class RevisionSummary

Class RevisionSummary

名称: Aspose.Note 合計: Aspose.Note.dll (25.4.0)

ノードの修正についての概要を表します。

public class RevisionSummary

Inheritance

object RevisionSummary

相続人

object.GetType() , object.MemberwiseClone() , 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_Pages();

                                                     // Load OneNote document and get first child           
                                                     Document document = new Document(dataDir + "Aspose.one");
                                                     Page page = document.FirstChild;

                                                     // Reading Content Revision Summary for this page
                                                     var pageRevisionInfo = page.PageContentRevisionSummary;

                                                     Console.WriteLine(string.Format(
                                                         "Author:\t{0}\nModified:\t{1}",
                                                         pageRevisionInfo.AuthorMostRecent,
                                                         pageRevisionInfo.LastModifiedTime.ToString("dd.MM.yyyy HH:mm:ss")));

                                                     // Update Page Revision Summary for this page
                                                     pageRevisionInfo.AuthorMostRecent = "New Author";
                                                     pageRevisionInfo.LastModifiedTime = DateTime.Now;

                                                     document.Save(dataDir + "WorkingWithPageRevisions_out.one");

ページが紛争ページであるかどうかを確認する方法を示します(すなわち、OneNote が自動的に合併できない変更があります)。

string dataDir = RunExamples.GetDataDir_Pages();

                                                                                                                          // Load OneNote document
                                                                                                                          Document doc = new Document(dataDir + "Aspose.one", new LoadOptions { LoadHistory = true });

                                                                                                                          var history = doc.GetPageHistory(doc.FirstChild);
                                                                                                                          for (int i = 0; i < history.Count; i++)
                                                                                                                          {
                                                                                                                              var historyPage = history[i];
                                                                                                                              Console.Write("    {0}. Author: {1}, {2:dd.MM.yyyy hh.mm.ss}",
                                                                                                                                              i,
                                                                                                                                              historyPage.PageContentRevisionSummary.AuthorMostRecent,
                                                                                                                                              historyPage.PageContentRevisionSummary.LastModifiedTime);
                                                                                                                              Console.WriteLine(historyPage.IsConflictPage ? ", IsConflict: true" : string.Empty);

                                                                                                                              // By default conflict pages are just skipped on saving.
                                                                                                                              // If mark it as non-conflict then it will be saved as usual one in the history.
                                                                                                                              if (historyPage.IsConflictPage)
                                                                                                                                  historyPage.IsConflictPage = false;
                                                                                                                          }

                                                                                                                          doc.Save(dataDir + "ConflictPageManipulation_out.one", SaveFormat.One);

Constructors

RevisionSummary()

public RevisionSummary()

Properties

AuthorMostRecent

最も最近の著者を取得または設定します。

public string AuthorMostRecent { get; set; }

不動産価値

string

Examples

ページのメタ情報を編集する方法を示します。

// The path to the documents directory.
                                                     string dataDir = RunExamples.GetDataDir_Pages();

                                                     // Load OneNote document and get first child           
                                                     Document document = new Document(dataDir + "Aspose.one");
                                                     Page page = document.FirstChild;

                                                     // Reading Content Revision Summary for this page
                                                     var pageRevisionInfo = page.PageContentRevisionSummary;

                                                     Console.WriteLine(string.Format(
                                                         "Author:\t{0}\nModified:\t{1}",
                                                         pageRevisionInfo.AuthorMostRecent,
                                                         pageRevisionInfo.LastModifiedTime.ToString("dd.MM.yyyy HH:mm:ss")));

                                                     // Update Page Revision Summary for this page
                                                     pageRevisionInfo.AuthorMostRecent = "New Author";
                                                     pageRevisionInfo.LastModifiedTime = DateTime.Now;

                                                     document.Save(dataDir + "WorkingWithPageRevisions_out.one");

ページが紛争ページであるかどうかを確認する方法を示します(すなわち、OneNote が自動的に合併できない変更があります)。

string dataDir = RunExamples.GetDataDir_Pages();

                                                                                                                          // Load OneNote document
                                                                                                                          Document doc = new Document(dataDir + "Aspose.one", new LoadOptions { LoadHistory = true });

                                                                                                                          var history = doc.GetPageHistory(doc.FirstChild);
                                                                                                                          for (int i = 0; i < history.Count; i++)
                                                                                                                          {
                                                                                                                              var historyPage = history[i];
                                                                                                                              Console.Write("    {0}. Author: {1}, {2:dd.MM.yyyy hh.mm.ss}",
                                                                                                                                              i,
                                                                                                                                              historyPage.PageContentRevisionSummary.AuthorMostRecent,
                                                                                                                                              historyPage.PageContentRevisionSummary.LastModifiedTime);
                                                                                                                              Console.WriteLine(historyPage.IsConflictPage ? ", IsConflict: true" : string.Empty);

                                                                                                                              // By default conflict pages are just skipped on saving.
                                                                                                                              // If mark it as non-conflict then it will be saved as usual one in the history.
                                                                                                                              if (historyPage.IsConflictPage)
                                                                                                                                  historyPage.IsConflictPage = false;
                                                                                                                          }

                                                                                                                          doc.Save(dataDir + "ConflictPageManipulation_out.one", SaveFormat.One);

LastModifiedTime

最後に変更された時間を取得または設定します。

public DateTime LastModifiedTime { get; set; }

不動産価値

DateTime

Examples

ページのメタ情報を編集する方法を示します。

// The path to the documents directory.
                                                     string dataDir = RunExamples.GetDataDir_Pages();

                                                     // Load OneNote document and get first child           
                                                     Document document = new Document(dataDir + "Aspose.one");
                                                     Page page = document.FirstChild;

                                                     // Reading Content Revision Summary for this page
                                                     var pageRevisionInfo = page.PageContentRevisionSummary;

                                                     Console.WriteLine(string.Format(
                                                         "Author:\t{0}\nModified:\t{1}",
                                                         pageRevisionInfo.AuthorMostRecent,
                                                         pageRevisionInfo.LastModifiedTime.ToString("dd.MM.yyyy HH:mm:ss")));

                                                     // Update Page Revision Summary for this page
                                                     pageRevisionInfo.AuthorMostRecent = "New Author";
                                                     pageRevisionInfo.LastModifiedTime = DateTime.Now;

                                                     document.Save(dataDir + "WorkingWithPageRevisions_out.one");

ページが紛争ページであるかどうかを確認する方法を示します(すなわち、OneNote が自動的に合併できない変更があります)。

string dataDir = RunExamples.GetDataDir_Pages();

                                                                                                                          // Load OneNote document
                                                                                                                          Document doc = new Document(dataDir + "Aspose.one", new LoadOptions { LoadHistory = true });

                                                                                                                          var history = doc.GetPageHistory(doc.FirstChild);
                                                                                                                          for (int i = 0; i < history.Count; i++)
                                                                                                                          {
                                                                                                                              var historyPage = history[i];
                                                                                                                              Console.Write("    {0}. Author: {1}, {2:dd.MM.yyyy hh.mm.ss}",
                                                                                                                                              i,
                                                                                                                                              historyPage.PageContentRevisionSummary.AuthorMostRecent,
                                                                                                                                              historyPage.PageContentRevisionSummary.LastModifiedTime);
                                                                                                                              Console.WriteLine(historyPage.IsConflictPage ? ", IsConflict: true" : string.Empty);

                                                                                                                              // By default conflict pages are just skipped on saving.
                                                                                                                              // If mark it as non-conflict then it will be saved as usual one in the history.
                                                                                                                              if (historyPage.IsConflictPage)
                                                                                                                                  historyPage.IsConflictPage = false;
                                                                                                                          }

                                                                                                                          doc.Save(dataDir + "ConflictPageManipulation_out.one", SaveFormat.One);
 日本語