TileAlignment
IPictureFillFormat.TileAlignment property
Returns or sets how the texture is aligned within the shape. This setting controls the starting point of the texture pattern and how it repeats across the shape. Read/write RectangleAlignment
.
public RectangleAlignment TileAlignment { get; set; }
Remarks
Default is TopLeft.
Examples
[C#]
using (Presentation presentation = new Presentation("demo.pptx"))
{
ISlide slide = presentation.Slides[0];
// Gets the picture fill format of the shape
IPictureFillFormat pictureFillFormat = slide.Shapes[0].FillFormat.PictureFillFormat;
// Sets the picture fill mode to Tile
pictureFillFormat.PictureFillMode = PictureFillMode.Tile;
// Sets the alignment for the tiling to the right bottom
pictureFillFormat.TileAlignment = RectangleAlignment.BottomRight;
}
See Also
- enum RectangleAlignment
- interface IPictureFillFormat
- namespace Aspose.Slides
- assembly Aspose.Slides