ShapeFormat.Preset Property | Office File API | DevExpress Documentation Skip to main content
All docs
V26.1
  • ShapeFormat.Preset Property

    Gets or sets the shape’s geometry type.

    Namespace: DevExpress.XtraRichEdit.API.Native

    Assembly: DevExpress.RichEdit.v26.1.Core.dll

    Declaration

    ShapeGeometryPreset Preset { get; set; }

    Property Value

    Available values:

    Show 178 items

    Remarks

    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
    Use of this site constitutes acceptance of our Website Terms of Use and Privacy Policy (Updated). Cookies Settings