Skip to main content
.NET Framework 4.5.2+

LineFillFormat.SetPatternFill(PatternFillType, Color, Color) Method

Applies a pattern fill to a line or a shape’s border.

Namespace: DevExpress.XtraRichEdit.API.Native

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

NuGet Package: DevExpress.RichEdit.Core


void SetPatternFill(
    PatternFillType pattern,
    Color foregroundColor,
    Color backgroundColor


Name Type Description
pattern PatternFillType

One of the preset patterns.

foregroundColor Color

A foreground color.

backgroundColor Color

A background color.


Use the SetPatternFill method to fill a shape line with a repeated pattern defined by the PatternFillType enumeration value.

See Also