# VisioShapeProtection

Shape-specific view over native Visio ShapeSheet protection cells.

Class 

`OfficeIMO.Visio`

**Namespace**

`OfficeIMO.Visio`

**Assembly**

`OfficeIMO.Visio`

**Source revision**

`273d35d5ba8a` with working tree changes

**Source**

[VisioShapeProtection.cs:299](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Visio/VisioShapeProtection.cs#L299)

**Base**

`VisioProtection`

**Modifiers**

sealed

Shape-specific view over native Visio ShapeSheet protection cells.

## Inheritance

- [VisioProtection](/api/visio/officeimo-visio-visioprotection/)
- VisioShapeProtection

## Usage

Explore 8 API references to this type

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

### Returned or exposed by 1

- Property [VisioShape.Protection](/api/visio/officeimo-visio-visioshape/#property-protection)

### Accepted by parameters 7

- Extension method [VisioPage.SelectWithProtection](/api/visio/officeimo-visio-visiopage/#extension-selectwithprotection-officeimo-visio-visiopage-func-officeimo-visio-visioshapeprotection-system-boolean) parameter `predicate`
- Extension method [VisioPage.ShapesWithProtection](/api/visio/officeimo-visio-visiopage/#extension-shapeswithprotection-officeimo-visio-visiopage-func-officeimo-visio-visioshapeprotection-system-boolean) parameter `predicate`
- Method [VisioPage.ShapesWithProtection](/api/visio/officeimo-visio-visiopage/#method-shapeswithprotection-func-officeimo-visio-visioshapeprotection-system-boolean-action-officeimo-visio-visioshapeselection) parameter `predicate`
- Method [VisioPageQueryExtensions.SelectWithProtection](/api/visio/officeimo-visio-visiopagequeryextensions/#method-selectwithprotection-officeimo-visio-visiopage-func-officeimo-visio-visioshapeprotection-system-boolean) parameter `predicate`
- Method [VisioPageQueryExtensions.ShapesWithProtection](/api/visio/officeimo-visio-visiopagequeryextensions/#method-shapeswithprotection-officeimo-visio-visiopage-func-officeimo-visio-visioshapeprotection-system-boolean) parameter `predicate`
- Method [VisioShape.Protect](/api/visio/officeimo-visio-visioshape/#method-protect-action-officeimo-visio-visioshapeprotection) parameter `configure`
- Method [VisioShapeSelection.Protect](/api/visio/officeimo-visio-visioshapeselection/#method-protect-action-officeimo-visio-visioshapeprotection) parameter `configure`

Filter members 

Show inherited

## Constructors

`public VisioShapeProtection()` [#](#constructor-ctor)

## Inherited Methods

`public VisioProtection Clear()` [#](#method-clear)

[VisioShapeProtection.cs:161](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Visio/VisioShapeProtection.cs#L161)

Inherited from [VisioProtection](/api/visio/officeimo-visio-visioprotection/)

Returns

`VisioProtection`

`public VisioProtection Deletion(bool locked = true)` [#](#method-deletion-boolean)

[VisioShapeProtection.cs:128](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Visio/VisioShapeProtection.cs#L128)

Inherited from [VisioProtection](/api/visio/officeimo-visio-visioprotection/)

Parameters

**locked bool = true optional**

Returns

`VisioProtection`

`public VisioProtection Endpoints(bool locked = true)` [#](#method-endpoints-boolean)

[VisioShapeProtection.cs:152](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Visio/VisioShapeProtection.cs#L152)

Inherited from [VisioProtection](/api/visio/officeimo-visio-visioprotection/)

Parameters

**locked bool = true optional**

Returns

`VisioProtection`

`public virtual bool Equals(object? obj)` [#](#method-equals-object)

Inherited from object

Parameters

**obj object? required**

Returns

`bool`

`public VisioProtection Formatting(bool locked = true)` [#](#method-formatting-boolean)

[VisioShapeProtection.cs:136](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Visio/VisioShapeProtection.cs#L136)

Inherited from [VisioProtection](/api/visio/officeimo-visio-visioprotection/)

Parameters

**locked bool = true optional**

Returns

`VisioProtection`

`public virtual int GetHashCode()` [#](#method-gethashcode)

Inherited from object

Returns

`int`

`public Type GetType()` [#](#method-gettype)

Inherited from object

Returns

`Type`

`public VisioProtection Position(bool locked = true)` [#](#method-position-boolean)

[VisioShapeProtection.cs:111](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Visio/VisioShapeProtection.cs#L111)

Inherited from [VisioProtection](/api/visio/officeimo-visio-visioprotection/)

Parameters

**locked bool = true optional**

Returns

`VisioProtection`

`public VisioProtection Selection(bool locked = true)` [#](#method-selection-boolean)

[VisioShapeProtection.cs:144](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Visio/VisioShapeProtection.cs#L144)

Inherited from [VisioProtection](/api/visio/officeimo-visio-visioprotection/)

Parameters

**locked bool = true optional**

Returns

`VisioProtection`

`public VisioProtection Size(bool locked = true)` [#](#method-size-boolean)

[VisioShapeProtection.cs:102](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Visio/VisioShapeProtection.cs#L102)

Inherited from [VisioProtection](/api/visio/officeimo-visio-visioprotection/)

Parameters

**locked bool = true optional**

Returns

`VisioProtection`

`public VisioProtection Text(bool locked = true)` [#](#method-text-boolean)

[VisioShapeProtection.cs:120](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Visio/VisioShapeProtection.cs#L120)

Inherited from [VisioProtection](/api/visio/officeimo-visio-visioprotection/)

Parameters

**locked bool = true optional**

Returns

`VisioProtection`

`public virtual string? ToString()` [#](#method-tostring)

Inherited from object

Returns

`string?`

## Inherited Properties

`public bool? LockWidth { get; set; }` [#](#property-lockwidth)

[VisioShapeProtection.cs:31](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Visio/VisioShapeProtection.cs#L31)

Inherited from [VisioProtection](/api/visio/officeimo-visio-visioprotection/)

`public bool? LockHeight { get; set; }` [#](#property-lockheight)

[VisioShapeProtection.cs:34](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Visio/VisioShapeProtection.cs#L34)

Inherited from [VisioProtection](/api/visio/officeimo-visio-visioprotection/)

`public bool? LockAspect { get; set; }` [#](#property-lockaspect)

[VisioShapeProtection.cs:37](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Visio/VisioShapeProtection.cs#L37)

Inherited from [VisioProtection](/api/visio/officeimo-visio-visioprotection/)

`public bool? LockMoveX { get; set; }` [#](#property-lockmovex)

[VisioShapeProtection.cs:40](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Visio/VisioShapeProtection.cs#L40)

Inherited from [VisioProtection](/api/visio/officeimo-visio-visioprotection/)

`public bool? LockMoveY { get; set; }` [#](#property-lockmovey)

[VisioShapeProtection.cs:43](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Visio/VisioShapeProtection.cs#L43)

Inherited from [VisioProtection](/api/visio/officeimo-visio-visioprotection/)

`public bool? LockDelete { get; set; }` [#](#property-lockdelete)

[VisioShapeProtection.cs:46](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Visio/VisioShapeProtection.cs#L46)

Inherited from [VisioProtection](/api/visio/officeimo-visio-visioprotection/)

`public bool? LockTextEdit { get; set; }` [#](#property-locktextedit)

[VisioShapeProtection.cs:49](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Visio/VisioShapeProtection.cs#L49)

Inherited from [VisioProtection](/api/visio/officeimo-visio-visioprotection/)

`public bool? LockFormat { get; set; }` [#](#property-lockformat)

[VisioShapeProtection.cs:52](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Visio/VisioShapeProtection.cs#L52)

Inherited from [VisioProtection](/api/visio/officeimo-visio-visioprotection/)

`public bool? LockGroup { get; set; }` [#](#property-lockgroup)

[VisioShapeProtection.cs:55](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Visio/VisioShapeProtection.cs#L55)

Inherited from [VisioProtection](/api/visio/officeimo-visio-visioprotection/)

`public bool? LockUngroup { get; set; }` [#](#property-lockungroup)

[VisioShapeProtection.cs:58](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Visio/VisioShapeProtection.cs#L58)

Inherited from [VisioProtection](/api/visio/officeimo-visio-visioprotection/)

`public bool? LockSelect { get; set; }` [#](#property-lockselect)

[VisioShapeProtection.cs:61](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Visio/VisioShapeProtection.cs#L61)

Inherited from [VisioProtection](/api/visio/officeimo-visio-visioprotection/)

`public bool? LockRotate { get; set; }` [#](#property-lockrotate)

[VisioShapeProtection.cs:64](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Visio/VisioShapeProtection.cs#L64)

Inherited from [VisioProtection](/api/visio/officeimo-visio-visioprotection/)

`public bool? LockCrop { get; set; }` [#](#property-lockcrop)

[VisioShapeProtection.cs:67](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Visio/VisioShapeProtection.cs#L67)

Inherited from [VisioProtection](/api/visio/officeimo-visio-visioprotection/)

`public bool? LockVtxEdit { get; set; }` [#](#property-lockvtxedit)

[VisioShapeProtection.cs:70](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Visio/VisioShapeProtection.cs#L70)

Inherited from [VisioProtection](/api/visio/officeimo-visio-visioprotection/)

`public bool? LockBegin { get; set; }` [#](#property-lockbegin)

[VisioShapeProtection.cs:73](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Visio/VisioShapeProtection.cs#L73)

Inherited from [VisioProtection](/api/visio/officeimo-visio-visioprotection/)

`public bool? LockEnd { get; set; }` [#](#property-lockend)

[VisioShapeProtection.cs:76](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Visio/VisioShapeProtection.cs#L76)

Inherited from [VisioProtection](/api/visio/officeimo-visio-visioprotection/)

`public bool? LockCalcWH { get; set; }` [#](#property-lockcalcwh)

[VisioShapeProtection.cs:79](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Visio/VisioShapeProtection.cs#L79)

Inherited from [VisioProtection](/api/visio/officeimo-visio-visioprotection/)

`public bool? LockCustProp { get; set; }` [#](#property-lockcustprop)

[VisioShapeProtection.cs:82](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Visio/VisioShapeProtection.cs#L82)

Inherited from [VisioProtection](/api/visio/officeimo-visio-visioprotection/)

`public bool? LockFromGroupFormat { get; set; }` [#](#property-lockfromgroupformat)

[VisioShapeProtection.cs:85](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Visio/VisioShapeProtection.cs#L85)

Inherited from [VisioProtection](/api/visio/officeimo-visio-visioprotection/)

`public bool? LockThemeColors { get; set; }` [#](#property-lockthemecolors)

[VisioShapeProtection.cs:88](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Visio/VisioShapeProtection.cs#L88)

Inherited from [VisioProtection](/api/visio/officeimo-visio-visioprotection/)

`public bool? LockThemeEffects { get; set; }` [#](#property-lockthemeeffects)

[VisioShapeProtection.cs:91](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Visio/VisioShapeProtection.cs#L91)

Inherited from [VisioProtection](/api/visio/officeimo-visio-visioprotection/)

`public bool HasAnyLocks { get; }` [#](#property-hasanylocks)

[VisioShapeProtection.cs:96](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Visio/VisioShapeProtection.cs#L96)

Inherited from [VisioProtection](/api/visio/officeimo-visio-visioprotection/)

<!-- PowerForge markdown artifact sha256:42C600F736F520C2C1986F2A3D5939D53E455C18F82F713BACDFD9941671A88F -->
