none
Accessing the PictureFill properties of PowerPoint presentation using Microsoft.Office.Interop.PowerPoint.dll in C# RRS feed

  • Question

  • Hi,

    I need to use the below highlighted properties of PictureFill in interop PowerPoint. I am trying this in C#. I found the below codes to set the slide background using Fill property.

    slide = presentation.Slides[1];

    slide.FollowMasterBackground = MsoTriState.msoFalse;           

    slide.Background.Fill.UserPicture("Image.jpg");

    Now the picture is stretched and center aligned. But I could not access the bounds as highlighted in the below screenshot,

    I expect any API to be as below.

    slide.Background.Fill.TextureTile = MsoTriState.msoFalse; // I hope this is to set the check box in above screenshot (Tile picture as texture)

    slide.Background.Fill.OffSetLeft // I could not find this API

    slide.Background.Fill.OffSetRight // I could not find this API

    slide.Background.Fill.OffSetTop // I could not find this API

    slide.Background.Fill.OffSetBottom // I could not find this API

    Any one of you help me to do this.           

    Thanks,

    Meikandan


    Meikandan

    Monday, October 16, 2017 6:47 AM

All replies