Skip to main content
All docs
V25.1
  • LineFillFormat.SetSolidFill(Color) Method

    Applies a solid color to a line or a shape’s border.

    Namespace: DevExpress.XtraRichEdit.API.Native

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

    NuGet Package: DevExpress.RichEdit.Core

    Declaration

    void SetSolidFill(
        Color color
    )

    Parameters

    Name Type Description
    color Color

    A color to fill a line.

    Remarks

    The example below shows how to specify a color for a rectangle’s outline.

    Rich_ShapeLine_SolidFill

    // Create a rectangle.
    Shape rectangle = document.Shapes.InsertShape(document.Range.Start, ShapeGeometryPreset.Rectangle, new RectangleF(300, 200, 500, 300));
    rectangle.Fill.SetNoFill();
    // Format the rectangle's outline.
    ShapeLine border = rectangle.Line;
    // Fill the outline with a color.
    border.Fill.SetSolidFill(Color.FromArgb(0x4D, 0x64, 0x8D));
    // Set the line width.
    border.Thickness = 6;
    
    See Also