RayCraftDocs
v1.0.3
pt-BR
raycraft.dev
Nesta página

PresentationEditor

Complete

Um editor de apresentações que abre e salva arquivos .pptx (e o antigo .ppt) e OpenDocument (.odp). Slides com texto, formas, imagens e tabelas que podem ser movidos, redimensionados e girados, anotações do apresentador, layouts, apresentação em tela cheia, impressão e verificação de ortografia e gramática. O código de arquivos faz parte do RayCraft.Blazor.Office e não tem partes de terceiros.

Parâmetros

Files are read and written by the library itself, with no Office installation and no extra packages.

ParâmetroTipoDescrição
Feature.pptx.odp
Slides, layouts, hidden slides, slide sizeRead and writeLeitura e gravação
Text with bold, italic, underline, strikethrough, size, colour and fontRead and writeLeitura e gravação
Bullets, numbering and list levelsRead and writeLeitura e gravação
Links (http, https, mailto, tel)Read and writeLeitura e gravação
Shapes: rectangles, rounded rectangles, ellipses, triangles, diamonds, arrows in four directions, pentagons, hexagons, stars, parallelograms, plus signs, linesRead and writeLeitura e gravação
Freeform shapes (lines and curves, no arcs)Read and writeLeitura e gravação
Comments (classic format)Read and write (not shown)Não mantido
Fill and outline colours, rotationRead and writeLeitura e gravação
Pictures (PNG, JPEG, GIF, BMP)Read and writeLeitura e gravação
Tables with cell coloursRead and writeLeitura e gravação
GroupsRead (flattened)Leitura (achatada)
Slide backgroundsRead and writeLeitura e gravação
Speaker notesRead and writeLeitura e gravação
Theme colours and fonts, placeholders from layoutsReadNão usado pelo formato

Keys and gestures

ParâmetroTipoDescrição
Keys or gestureWhat it does
Click, Shift+click, drag on the slideSelect one element, add to the selection, select with a frame
Drag, arrow keys, Shift+arrow keysMove the selection (Shift moves 10 points, or keeps a drag straight)
Drag a handle, ShiftResize (Shift keeps the proportions); the top handle rotates (Shift snaps to 15°)
Double-click, Enter, F2Edit the text of the shape or table cell
EscStop editing text, or clear the selection
Tab / Shift+TabNext element; while editing a list: list level; in a table: next cell
Ctrl+B / I / U, Ctrl+] / [Bold, italic, underline; larger and smaller text
Ctrl+C / X / V / DCopy, cut, paste and duplicate; pasting a picture inserts it
Ctrl+Z / Ctrl+YUndo and redo
DeleteDelete the selection (in the slide list: the slide)
Ctrl+MNew slide
Page Up / Page DownPrevious and next slide
Drag a slide in the listMove the slide
F5 / Shift+F5Slide show from the start / from the current slide
F7Spelling and grammar
Ctrl+S, Ctrl+PSave as .pptx, print

API

ParâmetroTipoDescrição
AllowFileTransferboolMostra os comandos que abrem e salvam arquivos (true por padrão).
ClassstringClasses CSS extras adicionadas ao elemento raiz.
FileNamestringNome dado aos arquivos salvos, sem extensão (presentation por padrão).
FontsIReadOnlyList<string>As fontes oferecidas na lista de fontes.
HeightstringAltura do controle como comprimento CSS (40rem por padrão).
IgnoredWordsIReadOnlyCollection<string>Palavras que nunca são reportadas como erradas.
LabelstringNome acessível do slide. Por padrão, um Slide localizado.
MaxImageSizeInt64Maior imagem que pode ser inserida, em bytes (10.000.000 por padrão).
MaxImportSizeInt64Maior apresentação que pode ser aberta, em bytes (50.000.000 por padrão).
PdfFontsPdfFontSet
PresentationPresentationA apresentação mostrada no início; outra instância a substitui depois. Leia a editada com GetPresentationAsync.
ProofingboolOferece a verificação de ortografia, gramática e lógica para inglês e búlgaro: menu Review, botão da barra de ferramentas e F7 (true por padrão).
ReadOnlyboolMostra a apresentação sem permitir alterações; a apresentação de slides, a impressão e o salvamento continuam funcionando.
ShowMenuBarboolMostra a barra de menus (true por padrão).
ShowNotesboolMostra as anotações do apresentador sob o slide (true por padrão).
ShowSlideListboolMostra a lista de slides (true por padrão).
ShowStatusBarboolMostra o número do slide, o layout e o zoom (true por padrão).
ShowToolbarboolMostra a barra de ferramentas (true por padrão).
StylestringEstilo embutido adicionado ao elemento raiz.

Eventos

API

EventoTipoDescrição
OnChangedEventCallbackGerado depois que a apresentação mudou (uma edição, desfazer ou refazer).
OnNewEventCallback
OnSaveEventCallback<OfficeFileSave>
OnSaveAsEventCallback<OfficeFileSave>
OnSlideChangedEventCallback<int>Gerado quando outro slide é mostrado (índice base zero).

Pacote

PresentationEditor faz parte do RayCraft Complete. Pacote: RayCraft.Blazor.Complete. Vem do feed privado do RayCraft e requer uma licença ativa. Veja Primeiros passos.