TileOffsetY

IPictureFillFormat.TileOffsetY property

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

public float TileOffsetY { 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 vertical offset of the texture to -50 points
    pictureFillFormat.TileOffsetY = -50;
}

See Also