Aspose.Slides.Examples.CSharp.Slides.Comments.AccessSlideComments.Run C# (CSharp) Метод

Run() публичный статический Метод

public static Run ( ) : void
Результат void
        public static void Run()
        {
            // The path to the documents directory.
            string dataDir = RunExamples.GetDataDir_Slides_Presentations_Comments();

            // ExStart:AccessSlideComments
            // Instantiate Presentation class
            using (Presentation presentation = new Presentation(dataDir + "Comments1.pptx"))
            {
                foreach (var commentAuthor in presentation.CommentAuthors)
                {
                    var author = (CommentAuthor) commentAuthor;
                    foreach (var comment1 in author.Comments)
                    {
                        var comment = (Comment) comment1;
                        // ExEnd:AccessSlideComments
                        Console.WriteLine("ISlide :" + comment.Slide.SlideNumber + " has comment: " + comment.Text + " with Author: " + comment.Author.Name + " posted on time :" + comment.CreatedTime + "\n");
                    }
                }
            }
        }
    }
AccessSlideComments