Skip to main content
.NET Framework 4.5.2+

ShapeFormat.Preset Property

Gets or sets the shape’s geometry type.

Namespace: DevExpress.XtraRichEdit.API.Native

Assembly: DevExpress.RichEdit.v22.2.Core.dll

NuGet Package: DevExpress.RichEdit.Core


ShapeGeometryPreset Preset { get; set; }

Property Value

Type Description

An enumeration member that specifies the shape’s geometry.


Use the Preset property to change an existing shape’s form. The example below shows how to transform a rectangle into a rectangular callout.

// Create a rectangle.
Shape shape = document.Shapes.InsertShape(document.Range.Start, ShapeGeometryPreset.Rectangle, new RectangleF(300, 200, 500, 350));
// Change the shape's form.
shape.ShapeFormat.Preset = ShapeGeometryPreset.RectangularCallout;
See Also