Aspose::Cells::Drawing::Shape::SetIsLocked method
Shape::SetIsLocked method
True means the object can not be modified when the sheet is protected. Note that this value is meaningful only if the worksheet or objects in the worksheet are protected.
void Aspose::Cells::Drawing::Shape::SetIsLocked(bool value)
Examples
//Sets the specified shape to unlocked state
if (shape.GetWorksheet().IsProtected() && shape.IsLocked())
{
shape.SetIsLocked(false);
}
//Sets the specified shape to a locked state
if (shape.GetWorksheet().IsProtected() && !shape.IsLocked())
{
shape.SetIsLocked(true);
}
See Also
- Class Vector
- Class Shape
- Namespace Aspose::Cells::Drawing
- Library Aspose.Cells for C++