Skip to main content
All docs
V25.1
  • DevExpress v25.1 Update — Your Feedback Matters

    Our What's New in v25.1 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

    Take the survey Not interested

    ShapeFill.SetNoFill() Method

    In This Article

    Removes a fill from a shape.

    Namespace: DevExpress.XtraRichEdit.API.Native

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

    NuGet Package: DevExpress.RichEdit.Core

    #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