Skip to main content
.NET Framework 4.5.2+

ShapeFill.SetNoFill() Method

Removes a fill from a shape.

Namespace: DevExpress.XtraRichEdit.API.Native

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

Declaration

void SetNoFill()

Remarks

The example below shows how to use the SetNoFill method to create a transparent rectangle.

Rich_ShapeFill_NoFill

// Add a rectangle to a document.
Shape rectangle = document.Shapes.InsertShape(document.Range.Start, ShapeGeometryPreset.Rectangle, new RectangleF(300, 200, 500, 300));
// Remove a color from the rectangle.
rectangle.Fill.SetNoFill();
See Also