Skip to main content
A newer version of this page is available. .
.NET Framework 4.5.2+

LineFillFormat.SetSolidFill(Color) Method

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

Namespace: DevExpress.XtraRichEdit.API.Native

Assembly: DevExpress.RichEdit.v20.2.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