[]
        
(Showing Draft Content)

GrapeCity.Documents.Excel.Drawing.IFillFormat.PresetTextured

PresetTextured Method

PresetTextured(PresetTexture)

Sets the specified fill format to a preset texture.

Use this method to apply one of the built-in PresetTexture values to a shape fill. After applying the texture, you can further adjust the texture layout by using methods such as TextureAlignment.

Declaration
void PresetTextured(PresetTexture presetTexture)
Sub PresetTextured(presetTexture As PresetTexture)
Parameters
Type Name Description
PresetTexture presetTexture

The PresetTexture to apply.

Examples
IShape shape = worksheet.Shapes.AddShape(AutoShapeType.Rectangle, 20, 20, 100, 60);
IFillFormat fillFormat = shape.Fill;
fillFormat.PresetTextured(PresetTexture.Canvas);
fillFormat.TextureAlignment = TextureAlignment.Center;