com.aspose.diagram

Class Protection

  • java.lang.Object
    • com.aspose.diagram.Protection
public class Protection 
extends java.lang.Object

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.

Property Getters/Setters Summary
intgetDel()
void
setDel(intvalue)
           A flag indicating whether the element has been deleted locally. A value of 1 indicates that the element was deleted locally. The value of the property is BOOL integer constant.
BoolValuegetLockAspect()
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.
BoolValuegetLockBegin()
Specifies whether the begin point of a 1-D shape is locked to a specific location.
BoolValuegetLockCalcWH()
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.
BoolValuegetLockCrop()
Specifies whether a foreign object is locked against being cropped with the Crop tool in Microsoft Visio.
BoolValuegetLockCustProp()
Determines whether the user can add, delete, or modify custom properties in the user interface (UI) by using the Define Custom Properties dialog box.
BoolValuegetLockDelete()
Specifies whether a shape is locked against being deleted.
BoolValuegetLockEnd()
Specifies whether the end point of a 1-D shape is locked to a specific location.
BoolValuegetLockFormat()
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.
BoolValuegetLockFromGroupFormat()
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.
BoolValuegetLockGroup()
Specifies whether a group is locked so that it cannot be ungrouped.
BoolValuegetLockHeight()
Specifies whether the height of the shape is locked. If locked, its height remains unchanged when the shape is resized.
BoolValuegetLockMoveX()
Specifies whether the horizontal position of the shape is locked so that it cannot be moved horizontally.
BoolValuegetLockMoveY()
Specifies whether the vertical position of the shape is locked so that it cannot be moved vertically.
BoolValuegetLockRotate()
Specifies whether the shape is locked against being rotated with the Rotation tool or the Rotate Left or Rotate Right commands in Microsoft Visio.
BoolValuegetLockSelect()
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.
BoolValuegetLockTextEdit()
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.
BoolValuegetLockThemeColors()
Prevents users from applying theme colors to the shape.
BoolValuegetLockThemeEffects()
Prevents users from applying theme effects to the shape.
BoolValuegetLockVtxEdit()
Specifies whether the vertices of a shape are locked so that they cannot be edited with any tools on the toolbar.
BoolValuegetLockWidth()
Specifies whether the width of the shape is locked so that it remains unchanged when the shape is resized.
 

    • Property Getters/Setters Detail

      • getDel/setDel

        public int getDel() / public void setDel(int value)
        
        A flag indicating whether the element has been deleted locally. A value of 1 indicates that the element was deleted locally. The value of the property is BOOL integer constant.
      • getLockWidth

        public BoolValue getLockWidth()
        
        Specifies whether the width of the shape is locked so that it remains unchanged when the shape is resized.
      • getLockHeight

        public BoolValue getLockHeight()
        
        Specifies whether the height of the shape is locked. If locked, its height remains unchanged when the shape is resized.
      • getLockMoveX

        public BoolValue getLockMoveX()
        
        Specifies whether the horizontal position of the shape is locked so that it cannot be moved horizontally.
      • getLockMoveY

        public BoolValue getLockMoveY()
        
        Specifies whether the vertical position of the shape is locked so that it cannot be moved vertically.
      • getLockAspect

        public BoolValue getLockAspect()
        
        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.
      • getLockDelete

        public BoolValue getLockDelete()
        
        Specifies whether a shape is locked against being deleted.
      • getLockBegin

        public BoolValue getLockBegin()
        
        Specifies whether the begin point of a 1-D shape is locked to a specific location.
      • getLockEnd

        public BoolValue getLockEnd()
        
        Specifies whether the end point of a 1-D shape is locked to a specific location.
      • getLockRotate

        public BoolValue getLockRotate()
        
        Specifies whether the shape is locked against being rotated with the Rotation tool or the Rotate Left or Rotate Right commands in Microsoft Visio.
      • getLockCrop

        public BoolValue getLockCrop()
        
        Specifies whether a foreign object is locked against being cropped with the Crop tool in Microsoft Visio.
      • getLockVtxEdit

        public BoolValue getLockVtxEdit()
        
        Specifies whether the vertices of a shape are locked so that they cannot be edited with any tools on the toolbar.
      • getLockTextEdit

        public BoolValue getLockTextEdit()
        
        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.
      • getLockFormat

        public BoolValue getLockFormat()
        
        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.
      • getLockGroup

        public BoolValue getLockGroup()
        
        Specifies whether a group is locked so that it cannot be ungrouped.
      • getLockCalcWH

        public BoolValue getLockCalcWH()
        
        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.
      • getLockSelect

        public BoolValue getLockSelect()
        
        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.
      • getLockCustProp

        public BoolValue getLockCustProp()
        
        Determines whether the user can add, delete, or modify custom properties in the user interface (UI) by using the Define Custom Properties dialog box.
      • getLockFromGroupFormat

        public BoolValue getLockFromGroupFormat()
        
        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.
      • getLockThemeColors

        public BoolValue getLockThemeColors()
        
        Prevents users from applying theme colors to the shape.
      • getLockThemeEffects

        public BoolValue getLockThemeEffects()
        
        Prevents users from applying theme effects to the shape.