Remove Shape Protection
Remove Protection of the Visio Shape
Protecting Visio shapes allow users to lock specific aspects of shapes. Aspects of shapes that can be locked through shape protection include width, height, x-position, y-position, rotation and more. Developers can achieve this using Aspose.Diagram for .NET.
Edit the Visio Shape Protection
LockAspect, LockBegin, LockCalcWH, LockCrop, LockCustProp, LockDelete, LockEnd, LockFormat, LockFromGroupFormat, LockGroup, LockHeight, LockMoveX, LockMoveY, LockRotate, LockSelect, LockTextEdit, LockThemeColors, LockThemeEffects, LockVtxEdit and LockWidth properties exposed by Protection class support the Aspose.Diagram.BoolValue object. These properties can be used to protect and unprotect shapes.
In Microsoft Office Visio, user may perform following actions to protect any shape:
- Open diagram in Microsoft Office Visio
- Select any shape
- Select ‘Protection’ from the ‘Format’ menu if you are using Visio 2007 or select ‘Protection’ from the ‘Developer’ menu if you are using Visio 2010
- In the ‘Protection’ window, uncheck any text box to unlock any shape attribute
- Press ‘Ok’
Remove the Shape Protection Programming Sample
Use the following code in your .NET application to do the same thing (unlock any shape attribute) using Aspose.Diagram for .NET.