TileOffsetX

IPictureFillFormat.TileOffsetX property

Returns or sets the horizontal offset of the texture from the shape’s origin in points. A positive value moves the texture to the right, while a negative value moves it to the left. Read/write Single.

public float TileOffsetX { get; set; }

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 horizontal offset of the texture to 20 points
    pictureFillFormat.TileOffsetX = 20f;
}

See Also