SubDocument.Shapes Property
Provides access to a collection of Shapes (pictures, text boxes) in the current SubDocument.
Namespace: DevExpress.XtraRichEdit.API.Native
Assembly: DevExpress.RichEdit.v18.2.Core.dll
Declaration
Property Value
Type | Description |
---|---|
ShapeCollection | A ShapeCollection object that is the collection of shapes. |
Example
This code snippet accesses the first shape in the document and selects it.
Note
A complete sample project is available at https://github.com/DevExpress-Examples/winforms-richedit-document-api-e5219
document.LoadDocument("Grimm.docx", DevExpress.XtraRichEdit.DocumentFormat.OpenXml)
document.Selection = document.Shapes(0).Range
Related GitHub Examples
The following code snippets (auto-collected from DevExpress Examples) contain references to the Shapes property.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.