[]
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.
void PresetTextured(PresetTexture presetTexture)
Sub PresetTextured(presetTexture As PresetTexture)
| Type | Name | Description |
|---|---|---|
| PresetTexture | presetTexture | The PresetTexture to apply. |
IShape shape = worksheet.Shapes.AddShape(AutoShapeType.Rectangle, 20, 20, 100, 60);
IFillFormat fillFormat = shape.Fill;
fillFormat.PresetTextured(PresetTexture.Canvas);
fillFormat.TextureAlignment = TextureAlignment.Center;