Aspose::Cells::Drawing::Shape::IsLocked method
Shape::IsLocked 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.
bool Aspose::Cells::Drawing::Shape::IsLocked()
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++