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

    Gets or sets the picture’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 picture’s geometry. The example below shows how to insert a picture with rounded corners.

    Rich_PictureFormat_Preset

    // Insert a picture.
    Shape picture = document.Shapes.InsertPicture(document.Range.Start, DocumentImageSource.FromFile("Dog.png"));
    // Change the picture's form.
    picture.PictureFormat.Preset = ShapeGeometryPreset.RoundedRectangle;
    // Display a border around the picture.
    picture.Line.Color = Color.Black;
    picture.Line.Thickness = 3;
    // Align the picture.
    picture.VerticalAlignment = ShapeVerticalAlignment.Top;
    picture.HorizontalAlignment = ShapeHorizontalAlignment.Center;
    
    See Also
    Use of this site constitutes acceptance of our Website Terms of Use and Privacy Policy (Updated). Cookies Settings