Back to Devexpress

ShapeFill.SetNoFill() Method

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

latest1.6 KB
Original Source

ShapeFill.SetNoFill() Method

Removes a fill from a shape.

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 create a transparent rectangle.

csharp
// 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();
vb
' Add a rectangle to a document.
Dim rectangle As Shape = 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

ShapeFill Interface

ShapeFill Members

DevExpress.XtraRichEdit.API.Native Namespace