Enum ShapeLockType

ShapeLockType enumeration

Represents type of the property to be locked.

public enum ShapeLockType

Values

NameValueDescription
Group0Group
AdjustHandles1AdjustHandles
Text2Text
Points3Points
Crop4Crop
Selection5Selection
Move6Move
AspectRatio7AspectRatio
Rotation8Rotation
Ungroup9Ungroup
Resize10Resize
ShapeType11ShapeType
Arrowhead12Arrowhead

Examples

using System;
using Aspose.Cells;
using Aspose.Cells.Drawing;

namespace AsposeCellsExamples
{
    public class DrawingClassShapeLockTypeDemo
    {
        public static void Run()
        {
            Workbook workbook = new Workbook();
            Worksheet worksheet = workbook.Worksheets[0];

            // Add a picture to the worksheet
            int index = worksheet.Pictures.Add(0, 0, "example.jpg");
            Aspose.Cells.Drawing.Picture picture = worksheet.Pictures[index];

            // Demonstrate ShapeLockType functionality
            picture.SetLockedProperty(Aspose.Cells.Drawing.ShapeLockType.AspectRatio, false);
            bool isAspectRatioLocked = picture.GetLockedProperty(Aspose.Cells.Drawing.ShapeLockType.AspectRatio);

            Console.WriteLine("Aspect Ratio locked: " + isAspectRatioLocked);

            // Save the workbook
            workbook.Save("output.xlsx");
        }
    }
}

See Also