C# Class OneNoteConversionTool.FormatReaders.PowerPointOpenXml

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

Méthodes publiques

Méthode 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

Méthode 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 méthode

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

GetAllSlideNotes() public méthode

Gets the notes of all the slides
public GetAllSlideNotes ( ) : List
Résultat List

GetAllSlideTitles() public méthode

Gets the titles of all the slides
public GetAllSlideTitles ( ) : List
Résultat List

GetSectionNames() public méthode

Get names of all the sections
public GetSectionNames ( ) : List
Résultat List

GetSlideComments() public méthode

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

GetSlideNotes() public méthode

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

GetSlideTitle() public méthode

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

GetSlidesInSections() public méthode

Get the slides that are in each section
public GetSlidesInSections ( ) : List>
Résultat List>

HasSections() public méthode

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

IsHiddenSlide() public méthode

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

NumberOfSlides() public méthode

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

PowerPointOpenXml() public méthode

public PowerPointOpenXml ( string filePath ) : System
filePath string
Résultat System