Back to Devexpress

LineFillFormat.SetNoFill() Method

officefileapi-devexpress-dot-xtrarichedit-dot-api-dot-native-dot-linefillformat.md

latest1.8 KB
Original Source

LineFillFormat.SetNoFill() Method

Removes a fill from a shape line.

Namespace : DevExpress.XtraRichEdit.API.Native

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

NuGet Package : DevExpress.RichEdit.Core

Declaration

csharp
void SetNoFill()
vb
Sub SetNoFill

Remarks

The example below shows how to use the SetNoFill method to remove an outline from a rectangle.

csharp
// Create a rectangle.
Shape rectangle = document.Shapes.InsertShape(document.Range.Start, ShapeGeometryPreset.Rectangle, new RectangleF(300, 200, 500, 300));
rectangle.Fill.SetSolidFill(Color.FromArgb(0xFF, 0xEE, 0xAD));
// Remove the rectangle's outline.
rectangle.Line.Fill.SetNoFill();
vb
' Create a rectangle.
Dim rectangle As Shape = document.Shapes.InsertShape(document.Range.Start, ShapeGeometryPreset.Rectangle, New RectangleF(300, 200, 500, 300))
rectangle.Fill.SetSolidFill(Color.FromArgb(&HFF, &HEE, &HAD))
' Remove the rectangle's outline.
rectangle.Line.Fill.SetNoFill()

See Also

LineFillFormat Interface

LineFillFormat Members

DevExpress.XtraRichEdit.API.Native Namespace