All docs
V20.2
20.2
20.1
19.2
The page you are viewing does not exist in version 19.2. This link will take you to the root page.
19.1
The page you are viewing does not exist in version 19.1. This link will take you to the root page.
18.2
The page you are viewing does not exist in version 18.2. This link will take you to the root page.
18.1
The page you are viewing does not exist in version 18.1. This link will take you to the root page.
17.2
The page you are viewing does not exist in version 17.2. This link will take you to the root page.
.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+

GradientFill.TileRect Property

Specifies the rectangular region to which a gradient is applied. This region is tiled to fill the shape.

Namespace: DevExpress.XtraRichEdit.API.Native

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

Declaration

RectangleOffset TileRect { get; set; }
Property TileRect As RectangleOffset

Property Value

Type Description
RectangleOffset

An object that specifies offsets (in percentage) from the edges of a shape's bounding box to the tile rectangle. A positive percentage specifies an inset, and a negative percentage defines an outset.

Remarks

The example below shows how to tile a linear gradient fill. The rightmost 25% of the shape contains the tile rectangle to which a gradient is applied. The gradient is tiled three times to cover the leftmost 75% of the shape. The tile rectangle is flipped horizontally to fill the shape.

Rich_GradientFill_TileRect_Example

// Add a rectangle to the document.
Shape rectangle = document.Shapes.InsertShape(document.Range.Start, ShapeGeometryPreset.Rectangle, new RectangleF(300, 200, 500, 300));
// Fill the rectangle with a gradient.
rectangle.Fill.SetGradientFill(GradientType.Linear, Color.FromArgb(0xF6, 0xCD, 0x61), Color.FromArgb(0xEE, 0x40, 0x35));
// Tile the gradient.
rectangle.Fill.GradientFill.TileRect = new RectangleOffset(0.75f, 0.0f, 0.0f, 0.0f);
See Also