Picture.Move
Picture.Move method
Moves the picture to a specified location.
public void Move(int upperLeftRow, int upperLeftColumn)
| Parameter | Type | Description | 
|---|---|---|
| upperLeftRow | Int32 | Upper left row index. | 
| upperLeftColumn | Int32 | Upper left column index. | 
Examples
using System;
using Aspose.Cells;
using Aspose.Cells.Drawing;
namespace AsposeCellsExamples
{
    public class PictureMethodMoveWithInt32Int32Demo
    {
        public static void Run()
        {
            Workbook workbook = new Workbook();
            Worksheet worksheet = workbook.Worksheets[0];
            
            int imgIndex = worksheet.Pictures.Add(1, 1, "example.jpeg");
            Picture pic = worksheet.Pictures[imgIndex];
            
            pic.Move(2, 4);
            
            workbook.Save("result.xlsx");
        }
    }
}
See Also
- class Picture
 - namespace Aspose.Cells.Drawing
 - assembly Aspose.Cells