# VisioProtectionFluent

The fluent methods of VisioProtection, generated from its public properties: A property-named method sets a property and a singular-named method adds…

Class 

`OfficeIMO.Visio`

**Namespace**

`OfficeIMO.Visio`

**Assembly**

`OfficeIMO.Visio`

**Modifiers**

static

The fluent methods of [VisioProtection](/api/visio/officeimo-visio-visioprotection/), generated from its public properties: A property-named method sets a property and a singular-named method adds to a collection, both returning the same instance.

## Inheritance

- object
- VisioProtectionFluent

Filter members 

Show inherited

## Methods

`public static TSelf LockAspect<TSelf>(TSelf visioProtection, bool? value = true)` [#](#method-lockaspect-nullable-system-boolean)

Sets [VisioProtection.LockAspect](/api/visio/officeimo-visio-visioprotection/): Locks the shape aspect ratio.

Type Parameters

**TSelf**

Parameters

**visioProtection TSelf required**

The instance.

**value bool? = true optional**

The value; true when omitted.

Returns

`TSelf` The same instance.

Examples

```csharp
// C# initializer or property                                          // C# fluent
new global::OfficeIMO.Visio.VisioProtection { LockAspect = value };    visioProtection.LockAspect(value);
```

`public static TSelf LockBegin<TSelf>(TSelf visioProtection, bool? value = true)` [#](#method-lockbegin-nullable-system-boolean)

Sets [VisioProtection.LockBegin](/api/visio/officeimo-visio-visioprotection/): Locks the begin endpoint for one-dimensional shapes.

Type Parameters

**TSelf**

Parameters

**visioProtection TSelf required**

The instance.

**value bool? = true optional**

The value; true when omitted.

Returns

`TSelf` The same instance.

Examples

```csharp
// C# initializer or property                                         // C# fluent
new global::OfficeIMO.Visio.VisioProtection { LockBegin = value };    visioProtection.LockBegin(value);
```

`public static TSelf LockCalcWH<TSelf>(TSelf visioProtection, bool? value = true)` [#](#method-lockcalcwh-nullable-system-boolean)

Sets [VisioProtection.LockCalcWH](/api/visio/officeimo-visio-visioprotection/): Locks recalculation of width and height.

Type Parameters

**TSelf**

Parameters

**visioProtection TSelf required**

The instance.

**value bool? = true optional**

The value; true when omitted.

Returns

`TSelf` The same instance.

Examples

```csharp
// C# initializer or property                                          // C# fluent
new global::OfficeIMO.Visio.VisioProtection { LockCalcWH = value };    visioProtection.LockCalcWH(value);
```

`public static TSelf LockCrop<TSelf>(TSelf visioProtection, bool? value = true)` [#](#method-lockcrop-nullable-system-boolean)

Sets [VisioProtection.LockCrop](/api/visio/officeimo-visio-visioprotection/): Locks cropping operations.

Type Parameters

**TSelf**

Parameters

**visioProtection TSelf required**

The instance.

**value bool? = true optional**

The value; true when omitted.

Returns

`TSelf` The same instance.

Examples

```csharp
// C# initializer or property                                        // C# fluent
new global::OfficeIMO.Visio.VisioProtection { LockCrop = value };    visioProtection.LockCrop(value);
```

`public static TSelf LockCustProp<TSelf>(TSelf visioProtection, bool? value = true)` [#](#method-lockcustprop-nullable-system-boolean)

Sets [VisioProtection.LockCustProp](/api/visio/officeimo-visio-visioprotection/): Locks custom properties / Shape Data editing.

Type Parameters

**TSelf**

Parameters

**visioProtection TSelf required**

The instance.

**value bool? = true optional**

The value; true when omitted.

Returns

`TSelf` The same instance.

Examples

```csharp
// C# initializer or property                                            // C# fluent
new global::OfficeIMO.Visio.VisioProtection { LockCustProp = value };    visioProtection.LockCustProp(value);
```

`public static TSelf LockDelete<TSelf>(TSelf visioProtection, bool? value = true)` [#](#method-lockdelete-nullable-system-boolean)

Sets [VisioProtection.LockDelete](/api/visio/officeimo-visio-visioprotection/): Prevents deleting the shape.

Type Parameters

**TSelf**

Parameters

**visioProtection TSelf required**

The instance.

**value bool? = true optional**

The value; true when omitted.

Returns

`TSelf` The same instance.

Examples

```csharp
// C# initializer or property                                          // C# fluent
new global::OfficeIMO.Visio.VisioProtection { LockDelete = value };    visioProtection.LockDelete(value);
```

`public static TSelf LockEnd<TSelf>(TSelf visioProtection, bool? value = true)` [#](#method-lockend-nullable-system-boolean)

Sets [VisioProtection.LockEnd](/api/visio/officeimo-visio-visioprotection/): Locks the end endpoint for one-dimensional shapes.

Type Parameters

**TSelf**

Parameters

**visioProtection TSelf required**

The instance.

**value bool? = true optional**

The value; true when omitted.

Returns

`TSelf` The same instance.

Examples

```csharp
// C# initializer or property                                       // C# fluent
new global::OfficeIMO.Visio.VisioProtection { LockEnd = value };    visioProtection.LockEnd(value);
```

`public static TSelf LockFormat<TSelf>(TSelf visioProtection, bool? value = true)` [#](#method-lockformat-nullable-system-boolean)

Sets [VisioProtection.LockFormat](/api/visio/officeimo-visio-visioprotection/): Prevents formatting changes.

Type Parameters

**TSelf**

Parameters

**visioProtection TSelf required**

The instance.

**value bool? = true optional**

The value; true when omitted.

Returns

`TSelf` The same instance.

Examples

```csharp
// C# initializer or property                                          // C# fluent
new global::OfficeIMO.Visio.VisioProtection { LockFormat = value };    visioProtection.LockFormat(value);
```

`public static TSelf LockFromGroupFormat<TSelf>(TSelf visioProtection, bool? value = true)` [#](#method-lockfromgroupformat-nullable-system-boolean)

Sets [VisioProtection.LockFromGroupFormat](/api/visio/officeimo-visio-visioprotection/): Locks formatting inherited from a group.

Type Parameters

**TSelf**

Parameters

**visioProtection TSelf required**

The instance.

**value bool? = true optional**

The value; true when omitted.

Returns

`TSelf` The same instance.

Examples

```csharp
// C# initializer or property                                                   // C# fluent
new global::OfficeIMO.Visio.VisioProtection { LockFromGroupFormat = value };    visioProtection.LockFromGroupFormat(value);
```

`public static TSelf LockGroup<TSelf>(TSelf visioProtection, bool? value = true)` [#](#method-lockgroup-nullable-system-boolean)

Sets [VisioProtection.LockGroup](/api/visio/officeimo-visio-visioprotection/): Prevents grouping the shape.

Type Parameters

**TSelf**

Parameters

**visioProtection TSelf required**

The instance.

**value bool? = true optional**

The value; true when omitted.

Returns

`TSelf` The same instance.

Examples

```csharp
// C# initializer or property                                         // C# fluent
new global::OfficeIMO.Visio.VisioProtection { LockGroup = value };    visioProtection.LockGroup(value);
```

`public static TSelf LockHeight<TSelf>(TSelf visioProtection, bool? value = true)` [#](#method-lockheight-nullable-system-boolean)

Sets [VisioProtection.LockHeight](/api/visio/officeimo-visio-visioprotection/): Locks the shape height.

Type Parameters

**TSelf**

Parameters

**visioProtection TSelf required**

The instance.

**value bool? = true optional**

The value; true when omitted.

Returns

`TSelf` The same instance.

Examples

```csharp
// C# initializer or property                                          // C# fluent
new global::OfficeIMO.Visio.VisioProtection { LockHeight = value };    visioProtection.LockHeight(value);
```

`public static TSelf LockMoveX<TSelf>(TSelf visioProtection, bool? value = true)` [#](#method-lockmovex-nullable-system-boolean)

Sets [VisioProtection.LockMoveX](/api/visio/officeimo-visio-visioprotection/): Locks horizontal movement.

Type Parameters

**TSelf**

Parameters

**visioProtection TSelf required**

The instance.

**value bool? = true optional**

The value; true when omitted.

Returns

`TSelf` The same instance.

Examples

```csharp
// C# initializer or property                                         // C# fluent
new global::OfficeIMO.Visio.VisioProtection { LockMoveX = value };    visioProtection.LockMoveX(value);
```

`public static TSelf LockMoveY<TSelf>(TSelf visioProtection, bool? value = true)` [#](#method-lockmovey-nullable-system-boolean)

Sets [VisioProtection.LockMoveY](/api/visio/officeimo-visio-visioprotection/): Locks vertical movement.

Type Parameters

**TSelf**

Parameters

**visioProtection TSelf required**

The instance.

**value bool? = true optional**

The value; true when omitted.

Returns

`TSelf` The same instance.

Examples

```csharp
// C# initializer or property                                         // C# fluent
new global::OfficeIMO.Visio.VisioProtection { LockMoveY = value };    visioProtection.LockMoveY(value);
```

`public static TSelf LockRotate<TSelf>(TSelf visioProtection, bool? value = true)` [#](#method-lockrotate-nullable-system-boolean)

Sets [VisioProtection.LockRotate](/api/visio/officeimo-visio-visioprotection/): Locks shape rotation.

Type Parameters

**TSelf**

Parameters

**visioProtection TSelf required**

The instance.

**value bool? = true optional**

The value; true when omitted.

Returns

`TSelf` The same instance.

Examples

```csharp
// C# initializer or property                                          // C# fluent
new global::OfficeIMO.Visio.VisioProtection { LockRotate = value };    visioProtection.LockRotate(value);
```

`public static TSelf LockSelect<TSelf>(TSelf visioProtection, bool? value = true)` [#](#method-lockselect-nullable-system-boolean)

Sets [VisioProtection.LockSelect](/api/visio/officeimo-visio-visioprotection/): Prevents selecting the shape.

Type Parameters

**TSelf**

Parameters

**visioProtection TSelf required**

The instance.

**value bool? = true optional**

The value; true when omitted.

Returns

`TSelf` The same instance.

Examples

```csharp
// C# initializer or property                                          // C# fluent
new global::OfficeIMO.Visio.VisioProtection { LockSelect = value };    visioProtection.LockSelect(value);
```

`public static TSelf LockTextEdit<TSelf>(TSelf visioProtection, bool? value = true)` [#](#method-locktextedit-nullable-system-boolean)

Sets [VisioProtection.LockTextEdit](/api/visio/officeimo-visio-visioprotection/): Prevents editing the shape text.

Type Parameters

**TSelf**

Parameters

**visioProtection TSelf required**

The instance.

**value bool? = true optional**

The value; true when omitted.

Returns

`TSelf` The same instance.

Examples

```csharp
// C# initializer or property                                            // C# fluent
new global::OfficeIMO.Visio.VisioProtection { LockTextEdit = value };    visioProtection.LockTextEdit(value);
```

`public static TSelf LockThemeColors<TSelf>(TSelf visioProtection, bool? value = true)` [#](#method-lockthemecolors-nullable-system-boolean)

Sets [VisioProtection.LockThemeColors](/api/visio/officeimo-visio-visioprotection/): Locks theme color changes.

Type Parameters

**TSelf**

Parameters

**visioProtection TSelf required**

The instance.

**value bool? = true optional**

The value; true when omitted.

Returns

`TSelf` The same instance.

Examples

```csharp
// C# initializer or property                                               // C# fluent
new global::OfficeIMO.Visio.VisioProtection { LockThemeColors = value };    visioProtection.LockThemeColors(value);
```

`public static TSelf LockThemeEffects<TSelf>(TSelf visioProtection, bool? value = true)` [#](#method-lockthemeeffects-nullable-system-boolean)

Sets [VisioProtection.LockThemeEffects](/api/visio/officeimo-visio-visioprotection/): Locks theme effect changes.

Type Parameters

**TSelf**

Parameters

**visioProtection TSelf required**

The instance.

**value bool? = true optional**

The value; true when omitted.

Returns

`TSelf` The same instance.

Examples

```csharp
// C# initializer or property                                                // C# fluent
new global::OfficeIMO.Visio.VisioProtection { LockThemeEffects = value };    visioProtection.LockThemeEffects(value);
```

`public static TSelf LockUngroup<TSelf>(TSelf visioProtection, bool? value = true)` [#](#method-lockungroup-nullable-system-boolean)

Sets [VisioProtection.LockUngroup](/api/visio/officeimo-visio-visioprotection/): Prevents ungrouping the shape.

Type Parameters

**TSelf**

Parameters

**visioProtection TSelf required**

The instance.

**value bool? = true optional**

The value; true when omitted.

Returns

`TSelf` The same instance.

Examples

```csharp
// C# initializer or property                                           // C# fluent
new global::OfficeIMO.Visio.VisioProtection { LockUngroup = value };    visioProtection.LockUngroup(value);
```

`public static TSelf LockVtxEdit<TSelf>(TSelf visioProtection, bool? value = true)` [#](#method-lockvtxedit-nullable-system-boolean)

Sets [VisioProtection.LockVtxEdit](/api/visio/officeimo-visio-visioprotection/): Locks vertex editing.

Type Parameters

**TSelf**

Parameters

**visioProtection TSelf required**

The instance.

**value bool? = true optional**

The value; true when omitted.

Returns

`TSelf` The same instance.

Examples

```csharp
// C# initializer or property                                           // C# fluent
new global::OfficeIMO.Visio.VisioProtection { LockVtxEdit = value };    visioProtection.LockVtxEdit(value);
```

`public static TSelf LockWidth<TSelf>(TSelf visioProtection, bool? value = true)` [#](#method-lockwidth-nullable-system-boolean)

Sets [VisioProtection.LockWidth](/api/visio/officeimo-visio-visioprotection/): Locks the shape width.

Type Parameters

**TSelf**

Parameters

**visioProtection TSelf required**

The instance.

**value bool? = true optional**

The value; true when omitted.

Returns

`TSelf` The same instance.

Examples

```csharp
// C# initializer or property                                         // C# fluent
new global::OfficeIMO.Visio.VisioProtection { LockWidth = value };    visioProtection.LockWidth(value);
```

## Inherited Methods

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

Inherited from object

Parameters

**obj object? required**

Returns

`bool`

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

Inherited from object

Returns

`int`

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

Inherited from object

Returns

`Type`

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

Inherited from object

Returns

`string?`

<!-- PowerForge markdown artifact sha256:4E336566BA7C16131E1A0E3F7908C1F61624C100D5ACF8E64D6E3F32BAA356D2 -->
