Protection Class
Locking helps prevent inadvertent changes to the shape but does not prevent Microsoft Visio from resetting values in other circumstances. It also does not protect against changes made in the ShapeSheet window.
Inheritance Hierarchy
SystemObject
  Aspose.DiagramProtection

Namespace: Aspose.Diagram
Assembly: Aspose.Diagram (in Aspose.Diagram.dll) Version: 20.2.0.0 (20.2)
Syntax
public class Protection

The Protection type exposes the following members.

Properties
  NameDescription
Public propertyDel
A flag indicating whether the element has been deleted locally. A value of 1 indicates that the element was deleted locally.
Public propertyLockAspect
Specifies whether the aspect ratio of the shape is locked. If locked, the shape can only be sized proportionally; it cannot be sized in a single dimension.
Public propertyLockBegin
Specifies whether the begin point of a 1-D shape is locked to a specific location.
Public propertyLockCalcWH
Specifies whether a shape's selection rectangle is locked so it cannot be recalculated when a vertex is edited or an element type is changed in the Geom element.
Public propertyLockCrop
Specifies whether a foreign object is locked against being cropped with the Crop tool in Microsoft Visio.
Public propertyLockCustProp
Determines whether the user can add, delete, or modify custom properties in the user interface (UI) by using the Define Custom Properties dialog box.
Public propertyLockDelete
Specifies whether a shape is locked against being deleted.
Public propertyLockEnd
Specifies whether the end point of a 1-D shape is locked to a specific location.
Public propertyLockFormat
Specifies whether the formatting of a shape is locked so it cannot be changed. Specifically, this element protects against changing text, line, and fill formatting, or changing which Style element the shape inherits from.
Public propertyLockFromGroupFormat
Allows a subshape to block formatting changes that get applied to a parent group shape in the Visio user interace and would otherwise cascade down to individual group shapes.
Public propertyLockGroup
Specifies whether a group is locked so that it cannot be ungrouped.
Public propertyLockHeight
Specifies whether the height of the shape is locked. If locked, its height remains unchanged when the shape is resized.
Public propertyLockMoveX
Specifies whether the horizontal position of the shape is locked so that it cannot be moved horizontally.
Public propertyLockMoveY
Specifies whether the vertical position of the shape is locked so that it cannot be moved vertically.
Public propertyLockRotate
Specifies whether the shape is locked against being rotated with the Rotation tool or the Rotate Left or Rotate Right commands in Microsoft Visio.
Public propertyLockSelect
Specifies whether a shape's selection rectangle is locked so it cannot be recalculated when a vertex is edited or an element type is changed in the Geom element.
Public propertyLockTextEdit
Specifies whether the text of a shape is locked so that it cannot be edited. However, the text may still be formatted by applying a style, using the Style options on the Font tab of the Text dialog box.
Public propertyLockThemeColors
Prevents users from applying theme colors to the shape.
Public propertyLockThemeEffects
Prevents users from applying theme effects to the shape.
Public propertyLockVtxEdit
Specifies whether the vertices of a shape are locked so that they cannot be edited with any tools on the toolbar.
Public propertyLockWidth
Specifies whether the width of the shape is locked so that it remains unchanged when the shape is resized.
Methods
  NameDescription
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetType
Gets the type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
See Also