Protection

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.

Properties

NameTypeDescription
DelintA flag indicating whether the element has been deleted locally. A value of 1 indicates that the element was deleted loca
LockWidthBoolValueSpecifies whether the width of the shape is locked so that it remains unchanged when the shape is resized.
LockHeightBoolValueSpecifies whether the height of the shape is locked. If locked, its height remains unchanged when the shape is resized.
LockMoveXBoolValueSpecifies whether the horizontal position of the shape is locked so that it cannot be moved horizontally.
LockMoveYBoolValueSpecifies whether the vertical position of the shape is locked so that it cannot be moved vertically.
LockAspectBoolValueSpecifies whether the aspect ratio of the shape is locked. If locked, the shape can only be sized proportionally; it can
LockDeleteBoolValueSpecifies whether a shape is locked against being deleted.
LockBeginBoolValueSpecifies whether the begin point of a 1-D shape is locked to a specific location.
LockEndBoolValueSpecifies whether the end point of a 1-D shape is locked to a specific location.
LockRotateBoolValueSpecifies whether the shape is locked against being rotated with the Rotation tool or the Rotate Left or Rotate Right co
LockCropBoolValueSpecifies whether a foreign object is locked against being cropped with the Crop tool in Microsoft Visio.
LockVtxEditBoolValueSpecifies whether the vertices of a shape are locked so that they cannot be edited with any tools on the toolbar.
LockTextEditBoolValueSpecifies whether the text of a shape is locked so that it cannot be edited. However, the text may still be formatted by
LockFormatBoolValueSpecifies whether the formatting of a shape is locked so it cannot be changed. Specifically, this element protects again
LockGroupBoolValueSpecifies whether a group is locked so that it cannot be ungrouped.
LockCalcWHBoolValueSpecifies whether a shape’s selection rectangle is locked so it cannot be recalculated when a vertex is edited or an ele
LockSelectBoolValueSpecifies whether a shape’s selection rectangle is locked so it cannot be recalculated when a vertex is edited or an ele
LockCustPropBoolValueDetermines whether the user can add, delete, or modify custom properties in the user interface (UI) by using the Define
LockFromGroupFormatBoolValueAllows a subshape to block formatting changes that get applied to a parent group shape in the Visio user interface and w
LockThemeColorsBoolValuePrevents users from applying theme colors to the shape.
LockThemeEffectsBoolValuePrevents users from applying theme effects to the shape.