Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

PictureFill.TileFlip Property

Specifies how to mirror tiles when a texture fill is applied (the Stretch property is false).

Namespace: DevExpress.XtraRichEdit.API.Native

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

NuGet Package: DevExpress.RichEdit.Core

#Declaration

TileFlipType TileFlip { get; set; }

#Property Value

Type Description
TileFlipType

An enumeration member that specifies the mirror type.

Available values:

Name Description Example
None

Tiles are not flipped.

SpreadsheetTileFlip_None

Horizontal

Flips tiles horizontally.

SpreadsheetTileFlip_Horizontal

Vertical

Flips tiles vertically.

SpreadsheetTileFlip_Vertical

Both

Flips tiles both horizontally and vertically.

SpreadsheetTileFlip_HorizontalAndVertical

#Remarks

The example below shows to use a picture as texture to fill a rectangle.

Rich_TextureFill

// Create a rectangle.
Shape rectangle = document.Shapes.InsertShape(document.Range.Start, ShapeGeometryPreset.Rectangle, new RectangleF(300, 200, 500, 350));
// Use a picture to fill the rectangle.
rectangle.Fill.SetPictureFill(DocumentImageSource.FromFile("PictureFill_Leaf.png"));
// Access picture fill settings.
PictureFill pictureFill = rectangle.Fill.PictureFill;
// Tile the picture as texture.
pictureFill.Stretch = false;
// Scale the picture to 50% of its original size.
pictureFill.ScaleX = 0.5f;
pictureFill.ScaleY = 0.5f;
// Specify the first tile position.
pictureFill.TileAlign = TileAlignType.TopLeft;
// Specify the mirror type for tiles.
pictureFill.TileFlip = TileFlipType.Vertical;
See Also