Presentation
Przegląd
Presentation jest klasą w Aspose.Slides FOSS dla Java. Dziedziczy po: IPresentation.
Reprezentuje PowerPoint prezentację.
Ta klasa zapewnia 30 metod do pracy z obiektami Presentation w programach Java. Dostępne metody obejmują: Presentation, asIPresentationComponent, close, dispose, getCommentAuthors, getCurrentDateTime, getDocumentProperties, getFirstSlideNumber, getImages, getLayoutSlides, getMasters, getNotesSize oraz 6 dodatkowych metod. Wszystkie publiczne członki są dostępne dla każdej aplikacji Java po zainstalowaniu pakietu Aspose.Slides FOSS dla Java. Właściwości: commentAuthors, currentDateTime, documentProperties, firstSlideNumber, images, layoutSlides oraz 5 kolejnych.
Właściwości
| Nazwa | Typ | Dostęp | Opis |
|---|---|---|---|
presentation | IPresentation | Odczyt | Pobiera prezentację. |
currentDateTime | LocalDateTime | Odczyt | Pobiera bieżącą datę i godzinę. |
documentProperties | IDocumentProperties | Odczyt | Pobiera właściwości dokumentu. |
commentAuthors | ICommentAuthorCollection | Odczyt | Pobiera autorów komentarzy. |
slides | ISlideCollection | Odczyt | Zwraca slajdy. |
notesSize | INotesSize | Odczyt | Pobiera rozmiar notatek. |
layoutSlides | IGlobalLayoutSlideCollection | Odczyt | Zwraca slajdy układu. |
masters | IMasterSlideCollection | Odczyt | Pobiera mastery. |
images | IImageCollection | Odczyt | Pobiera obrazy. |
sourceFormat | SourceFormat | Odczyt | Pobiera format źródłowy. |
firstSlideNumber | int | Odczyt | Pobiera numer pierwszego slajdu. |
Metody
| Sygnatura | Opis |
|---|---|
Presentation() | Tworzy nową pustą prezentację z jednym slajdem. |
Presentation(path: String) | Otwiera prezentację z podanej ścieżki pliku. |
Presentation(in: InputStream) | Otwiera prezentację z podanego strumienia wejściowego. |
save(path: String) | Zapisuje jedynie wymienione indeksy slajdów do strumienia w formacie z opcjami |
save(stream: OutputStream) | |
getPresentation() → IPresentation | Zwraca prezentację. |
getCurrentDateTime() → LocalDateTime | Zwraca bieżącą datę i czas. |
setCurrentDateTime(value: LocalDateTime) | Ustawia bieżącą wartość daty i czasu. |
getDocumentProperties() → IDocumentProperties | Zwraca właściwości dokumentu. |
getCommentAuthors() → ICommentAuthorCollection | Zwraca autorów komentarzy. |
getSlides() → ISlideCollection | Zwraca slajdy. |
getNotesSize() → INotesSize | Zwraca rozmiar notatek. |
getLayoutSlides() → IGlobalLayoutSlideCollection | Zwraca slajdy układu. |
getMasters() → IMasterSlideCollection | Zwraca mastery. |
getImages() → IImageCollection | Zwraca obrazy. |
getSourceFormat() → SourceFormat | Zwraca format źródłowy. |
getFirstSlideNumber() → int | Zwraca numer pierwszego slajdu. |
setFirstSlideNumber(value: int) | Ustawia wartość pierwszego numeru slajdu. |
asIPresentationComponent() → IPresentationComponent | Zwraca prezentację jako IPresentationComponent |
save(path: String, format: SaveFormat) | |
save(stream: OutputStream, format: SaveFormat) | |
save(path: String, format: SaveFormat, options: ISaveOptions) | |
save(stream: OutputStream, format: SaveFormat, options: ISaveOptions) | |
save(path: String, slides: int[], format: SaveFormat) | |
save(path: String, slides: int[], format: SaveFormat, options: ISaveOptions) | |
save(stream: OutputStream, slides: int[], format: SaveFormat) | |
save(stream: OutputStream, slides: int[], format: SaveFormat, options: ISaveOptions) | |
save(options: ISaveOptions) | Niezaimplementowane w edycji FOSS — rzuca w czasie wykonywania. |
dispose() | Zwalnia wszystkie zasoby używane przez prezentację |
close() | Zamyka prezentację i zwalnia zasoby |