The requested page is not available for the requested platform. You are viewing the content for .NET Framework 4.5.2+ platform.
.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+

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.v19.1.Core.dll

Declaration

ShapeCollection Shapes { get; }
ReadOnly Property Shapes As ShapeCollection
ShapeCollection Shapes { get; }
ReadOnly Property Shapes As ShapeCollection

Property Value

Type Description
ShapeCollection

A ShapeCollection object that is the collection of shapes.

Property Value

Type Description
ShapeCollection

A ShapeCollection object that is the collection of shapes.

Examples

Document document = server.Document;
document.AppendText("Line One\nLine Two\nLine Three");
Shape myPicture = document.Shapes.InsertPicture(document.CreatePosition(15),
    System.Drawing.Image.FromFile("Documents\\beverages.png"));
myPicture.HorizontalAlignment = ShapeHorizontalAlignment.Center;
See Also