C# Class OneNoteConversionTool.FormatReaders.PowerPointOpenXml

Obtains data from power point file using OpenXml
Show file Open project: OneNoteDev/OneNoteConversionTool Class Usage Examples

Public Methods

Method Description
GetAllSlideComments ( bool includeAuthors = true ) : List

Gets the comments of all the slides

GetAllSlideNotes ( ) : List

Gets the notes of all the slides

GetAllSlideTitles ( ) : List

Gets the titles of all the slides

GetSectionNames ( ) : List

Get names of all the sections

GetSlideComments ( int slideNumber, bool includeAuthor = true ) : string

Gets the comments of the slide

GetSlideNotes ( int slideNumber ) : string

Gets the notes of the slide

GetSlideTitle ( int slideNumber ) : string

Gets the title of the slide number

GetSlidesInSections ( ) : List>

Get the slides that are in each section

HasSections ( ) : bool

Get if the power point presentation has sections or not

IsHiddenSlide ( int slideNumber ) : bool

Gets if the slide is hidden or not

NumberOfSlides ( bool includeHidden = true ) : int

Get the number of slides

PowerPointOpenXml ( string filePath ) : System

Private Methods

Method Description
GetListOfSections ( PresentationDocument pDoc ) : List

Get list of all the sections

GetSectionName ( DocumentFormat.OpenXml.Office2010.PowerPoint.Section section ) : string

Get the name of the section

GetSlideComments ( DocumentFormat.OpenXml.Packaging.SlidePart slidePart, List authors, bool includeAuthor = true ) : string

Get the comments of the slide. Returns String.Empty if it can't find it

GetSlideIds ( PresentationDocument pDoc ) : List

Get the ids of the slides

GetSlideNotes ( DocumentFormat.OpenXml.Packaging.SlidePart slidePart ) : string

Get the notes of the slide. Returns String.Empty if it can't find it

GetSlidePart ( PresentationDocument pDoc, int slideNumber ) : DocumentFormat.OpenXml.Packaging.SlidePart

Gets the SlidePart based on the slide number

GetSlideRIds ( PresentationDocument pDoc ) : List

Get the relationship ids of the slides

GetSlideTitle ( DocumentFormat.OpenXml.Packaging.SlidePart slidePart ) : string

Get the title of the slide. Returns String.Empty if it can't find it

GetSlidesInSection ( PresentationDocument pDoc, DocumentFormat.OpenXml.Office2010.PowerPoint.Section section ) : List

Get the slides in a given section

IsBodyShape ( DocumentFormat.OpenXml.Presentation.Shape shape ) : bool

Gets if this shape is for body or not

IsHiddenSlide ( DocumentFormat.OpenXml.Presentation.Slide slide ) : bool

Gets if the slide is hidden or not

IsHiddenSlide ( DocumentFormat.OpenXml.Packaging.SlidePart slidePart ) : bool

Gets if the slide is hidden or not

IsRunBold ( DocumentFormat.OpenXml.Drawing run ) : bool

Gets if this run is bold or not

IsRunItalic ( DocumentFormat.OpenXml.Drawing run ) : bool

Gets if this run is italic or not

IsRunStrikeThrough ( DocumentFormat.OpenXml.Drawing run ) : bool

Gets if this run is Strike-through or not

IsRunUnderlined ( DocumentFormat.OpenXml.Drawing run ) : bool

Gets if this run is underlined or not

IsTitleShape ( DocumentFormat.OpenXml.Presentation.Shape shape ) : bool

Gets if this shape is for title or not

RunFontSize ( DocumentFormat.OpenXml.Drawing run ) : string

Gets the size of the text in the given run

Method Details

GetAllSlideComments() public method

Gets the comments of all the slides
public GetAllSlideComments ( bool includeAuthors = true ) : List
includeAuthors bool
return List

GetAllSlideNotes() public method

Gets the notes of all the slides
public GetAllSlideNotes ( ) : List
return List

GetAllSlideTitles() public method

Gets the titles of all the slides
public GetAllSlideTitles ( ) : List
return List

GetSectionNames() public method

Get names of all the sections
public GetSectionNames ( ) : List
return List

GetSlideComments() public method

Gets the comments of the slide
public GetSlideComments ( int slideNumber, bool includeAuthor = true ) : string
slideNumber int slide number (one index)
includeAuthor bool
return string

GetSlideNotes() public method

Gets the notes of the slide
public GetSlideNotes ( int slideNumber ) : string
slideNumber int slide number (one index)
return string

GetSlideTitle() public method

Gets the title of the slide number
public GetSlideTitle ( int slideNumber ) : string
slideNumber int slide number (one index)
return string

GetSlidesInSections() public method

Get the slides that are in each section
public GetSlidesInSections ( ) : List>
return List>

HasSections() public method

Get if the power point presentation has sections or not
public HasSections ( ) : bool
return bool

IsHiddenSlide() public method

Gets if the slide is hidden or not
public IsHiddenSlide ( int slideNumber ) : bool
slideNumber int slide number (one index)
return bool

NumberOfSlides() public method

Get the number of slides
public NumberOfSlides ( bool includeHidden = true ) : int
includeHidden bool True (default) if hidden slides should be included, false others
return int

PowerPointOpenXml() public method

public PowerPointOpenXml ( string filePath ) : System
filePath string
return System