Skip to main content

ApiSelection

Class representing the selection in the presentation.

Methods​

The following table lists the available methods.

MethodReturnsDescription
GetShapesApiDrawing[]Returns the selected shapes.
GetSlidesApiSlide[]Returns the selected slides.
GetTextRangeApiTextRange | nullReturns the selected text as a text range. With the cursor in the text and nothing selected, the range is empty and starts at the cursor.
GetTypeSelectionTypeReturns the type of the current selection.
IsEmptybooleanSpecifies whether the current selection is empty or not.