共用方式為


Selection Members

Include Protected Members
Include Inherited Members

Represents the selection in the specified document window. The Selection object is deleted whenever you change slides in an active slide view (the Type property will return ppSelectionNone).

The Selection type exposes the following members.

Properties

  Name Description
Public property Application Returns an Application object that represents the creator of the specified object.
Public property ChildShapeRange Returns a ShapeRange object that represents the child shapes of a selection.
Public property HasChildShapeRange true if the selection contains child shapes. Read-only.
Public property Parent Returns the parent object for the specified object.
Public property ShapeRange Returns a ShapeRange object that represents all the slide objects that have been selected on the specified slide. Read-only.
Public property SlideRange Returns a SlideRange object that represents a range of selected slides. Read-only.
Public property TextRange Returns a TextRange object that represents the selected text. Read-only.
Public property TextRange2 Returns the TextRange2 object of the current Selection object. Read-only.
Public property Type Represents the type of objects in a selection. Read-only.

Top

Methods

  Name Description
Public method Copy Copies the specified object to the Clipboard.
Public method Cut Deletes the specified object and places it on the Clipboard.
Public method Delete Deletes the specified Selection object.
Public method Unselect Cancels the current selection.

Top

See Also

Reference

Selection Interface

Microsoft.Office.Interop.PowerPoint Namespace