# VisioShapeFluent

The fluent methods of VisioShape, 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 [VisioShape](/api/visio/officeimo-visio-visioshape/), 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
- VisioShapeFluent

Filter members 

Show inherited

## Methods

`public static TSelf AllowHorizontalConnectorRoutingThrough<TSelf>(TSelf visioShape, bool? value = true)` [#](#method-allowhorizontalconnectorroutingthrough-nullable-system-boolean)

Sets [VisioShape.AllowHorizontalConnectorRoutingThrough](/api/visio/officeimo-visio-visioshape/): Gets or sets whether connectors may route horizontally through this shape.

Type Parameters

**TSelf**

Parameters

**visioShape 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
visioShape.AllowHorizontalConnectorRoutingThrough = value;    visioShape.AllowHorizontalConnectorRoutingThrough(value);
```

`public static TSelf AllowPlacementOnTop<TSelf>(TSelf visioShape, bool? value = true)` [#](#method-allowplacementontop-nullable-system-boolean)

Sets [VisioShape.AllowPlacementOnTop](/api/visio/officeimo-visio-visioshape/): Gets or sets whether other placeable shapes may be placed on top of this shape during layout.

Type Parameters

**TSelf**

Parameters

**visioShape 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
visioShape.AllowPlacementOnTop = value;    visioShape.AllowPlacementOnTop(value);
```

`public static TSelf AllowVerticalConnectorRoutingThrough<TSelf>(TSelf visioShape, bool? value = true)` [#](#method-allowverticalconnectorroutingthrough-nullable-system-boolean)

Sets [VisioShape.AllowVerticalConnectorRoutingThrough](/api/visio/officeimo-visio-visioshape/): Gets or sets whether connectors may route vertically through this shape.

Type Parameters

**TSelf**

Parameters

**visioShape 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
visioShape.AllowVerticalConnectorRoutingThrough = value;    visioShape.AllowVerticalConnectorRoutingThrough(value);
```

`public static TSelf Angle<TSelf>(TSelf visioShape, double value)` [#](#method-angle-double)

Sets [VisioShape.Angle](/api/visio/officeimo-visio-visioshape/): Gets or sets the rotation angle of the shape in radians.

Type Parameters

**TSelf**

Parameters

**visioShape TSelf required**

The instance.

**value double required**

The value.

Returns

`TSelf` The same instance.

Examples

```csharp
// C# initializer or property    // C# fluent
visioShape.Angle = value;        visioShape.Angle(value);
```

`public static TSelf Baseline<TSelf>(TSelf visioShape, OfficeTextBaseline baseline)` [#](#method-baseline-officeimo-drawing-officetextbaseline)

Sets the native baseline placement for the whole-shape text.

Type Parameters

**TSelf**

Parameters

**visioShape TSelf required**

The instance.

**baseline OfficeIMO.Drawing.OfficeTextBaseline required**

The value.

Returns

`TSelf` The same instance.

`public static TSelf Bold<TSelf>(TSelf visioShape, bool enabled = true)` [#](#method-bold-boolean)

Sets whether the whole-shape text is bold.

Type Parameters

**TSelf**

Parameters

**visioShape TSelf required**

The instance.

**enabled bool = true optional**

The value.

Returns

`TSelf` The same instance.

`public static TSelf CanBeSplit<TSelf>(TSelf visioShape, bool? value = true)` [#](#method-canbesplit-nullable-system-boolean)

Sets [VisioShape.CanBeSplit](/api/visio/officeimo-visio-visioshape/): Gets or sets whether this shape can be split by another shape.

Type Parameters

**TSelf**

Parameters

**visioShape 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
visioShape.CanBeSplit = value;    visioShape.CanBeSplit(value);
```

`public static TSelf CanSplitShapes<TSelf>(TSelf visioShape, bool? value = true)` [#](#method-cansplitshapes-nullable-system-boolean)

Sets [VisioShape.CanSplitShapes](/api/visio/officeimo-visio-visioshape/): Gets or sets whether this shape may split other splittable shapes.

Type Parameters

**TSelf**

Parameters

**visioShape 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
visioShape.CanSplitShapes = value;    visioShape.CanSplitShapes(value);
```

`public static TSelf Capitalization<TSelf>(TSelf visioShape, VisioTextCapitalization capitalization)` [#](#method-capitalization-officeimo-visio-visiotextcapitalization)

Sets Visio's native display-time capitalization for the whole-shape text.

Type Parameters

**TSelf**

Parameters

**visioShape TSelf required**

The instance.

**capitalization OfficeIMO.Visio.VisioTextCapitalization required**

The value.

Returns

`TSelf` The same instance.

`public static TSelf Children<TSelf>(TSelf visioShape, IEnumerable<VisioShape> items)` [#](#method-children-collections-generic-ienumerable-officeimo-visio-visioshape)

Adds items to [VisioShape.Children](/api/visio/officeimo-visio-visioshape/): Child shapes when this shape represents a group.

Type Parameters

**TSelf**

Parameters

**visioShape TSelf required**

The instance.

**items System.Collections.Generic.IEnumerable<OfficeIMO.Visio.VisioShape> required**

The items, in order.

Returns

`TSelf` The same instance.

`public static TSelf Child<TSelf>(TSelf visioShape, VisioShape item)` [#](#method-child-officeimo-visio-visioshape)

Adds an item to [VisioShape.Children](/api/visio/officeimo-visio-visioshape/): Child shapes when this shape represents a group.

Type Parameters

**TSelf**

Parameters

**visioShape TSelf required**

The instance.

**item OfficeIMO.Visio.VisioShape required**

The item.

Returns

`TSelf` The same instance.

`public static TSelf ConnectionPoints<TSelf>(TSelf visioShape, IEnumerable<VisioConnectionPoint> items)` [#](#method-connectionpoints-collections-generic-ienumerable-officeimo-visio-visioconnectionpoint)

Adds items to [VisioShape.ConnectionPoints](/api/visio/officeimo-visio-visioshape/): Connection points associated with the shape.

Type Parameters

**TSelf**

Parameters

**visioShape TSelf required**

The instance.

**items System.Collections.Generic.IEnumerable<OfficeIMO.Visio.VisioConnectionPoint> required**

The items, in order.

Returns

`TSelf` The same instance.

`public static TSelf ConnectionPoint<TSelf>(TSelf visioShape, VisioConnectionPoint item)` [#](#method-connectionpoint-officeimo-visio-visioconnectionpoint)

Adds an item to [VisioShape.ConnectionPoints](/api/visio/officeimo-visio-visioshape/): Connection points associated with the shape.

Type Parameters

**TSelf**

Parameters

**visioShape TSelf required**

The instance.

**item OfficeIMO.Visio.VisioConnectionPoint required**

The item.

Returns

`TSelf` The same instance.

`public static TSelf ConnectorPermeability<TSelf>(TSelf visioShape, bool horizontal = true, bool vertical = true)` [#](#method-connectorpermeability-boolean-boolean)

Allows or disallows connector routing through this shape.

Type Parameters

**TSelf**

Parameters

**visioShape TSelf required**

The instance.

**horizontal bool = true optional**

The value.

**vertical bool = true optional**

The value.

Returns

`TSelf` The same instance.

`public static TSelf ContainerMemberIds<TSelf>(TSelf visioShape, IEnumerable<string> items)` [#](#method-containermemberids-collections-generic-ienumerable-system-string)

Adds items to [VisioShape.ContainerMemberIds](/api/visio/officeimo-visio-visioshape/): Shape identifiers this shape contains when it is used as a container.

Type Parameters

**TSelf**

Parameters

**visioShape TSelf required**

The instance.

**items System.Collections.Generic.IEnumerable<string> required**

The items, in order.

Returns

`TSelf` The same instance.

`public static TSelf ContainerMemberId<TSelf>(TSelf visioShape, string item)` [#](#method-containermemberid-string)

Adds an item to [VisioShape.ContainerMemberIds](/api/visio/officeimo-visio-visioshape/): Shape identifiers this shape contains when it is used as a container.

Type Parameters

**TSelf**

Parameters

**visioShape TSelf required**

The instance.

**item string required**

The item.

Returns

`TSelf` The same instance.

`public static TSelf ContainerOwnerIds<TSelf>(TSelf visioShape, IEnumerable<string> items)` [#](#method-containerownerids-collections-generic-ienumerable-system-string)

Adds items to [VisioShape.ContainerOwnerIds](/api/visio/officeimo-visio-visioshape/): Container shape identifiers this shape belongs to.

Type Parameters

**TSelf**

Parameters

**visioShape TSelf required**

The instance.

**items System.Collections.Generic.IEnumerable<string> required**

The items, in order.

Returns

`TSelf` The same instance.

`public static TSelf ContainerOwnerId<TSelf>(TSelf visioShape, string item)` [#](#method-containerownerid-string)

Adds an item to [VisioShape.ContainerOwnerIds](/api/visio/officeimo-visio-visioshape/): Container shape identifiers this shape belongs to.

Type Parameters

**TSelf**

Parameters

**visioShape TSelf required**

The instance.

**item string required**

The item.

Returns

`TSelf` The same instance.

`public static TSelf FillColor<TSelf>(TSelf visioShape, OfficeColor value)` [#](#method-fillcolor-officeimo-officecolor)

Sets [VisioShape.FillColor](/api/visio/officeimo-visio-visioshape/): Fill color of the shape.

Type Parameters

**TSelf**

Parameters

**visioShape TSelf required**

The instance.

**value OfficeIMO.OfficeColor required**

The value.

Returns

`TSelf` The same instance.

Examples

```csharp
// C# initializer or property    // C# fluent
visioShape.FillColor = value;    visioShape.FillColor(value);
```

`public static TSelf FillPattern<TSelf>(TSelf visioShape, int value)` [#](#method-fillpattern-int32)

Sets [VisioShape.FillPattern](/api/visio/officeimo-visio-visioshape/): Fill pattern (0=None, 1=Solid, etc.).

Type Parameters

**TSelf**

Parameters

**visioShape TSelf required**

The instance.

**value int required**

The value.

Returns

`TSelf` The same instance.

Examples

```csharp
// C# initializer or property      // C# fluent
visioShape.FillPattern = value;    visioShape.FillPattern(value);
```

`public static TSelf Fill<TSelf>(TSelf visioShape, OfficeColor color, int pattern = 1)` [#](#method-fill-officeimo-officecolor-int32)

Sets fill color and optional pattern.

Type Parameters

**TSelf**

Parameters

**visioShape TSelf required**

The instance.

**color OfficeIMO.OfficeColor required**

Fill color.

**pattern int = 1 optional**

Fill pattern index (default 1=Solid).

Returns

`TSelf` The same instance.

`public static TSelf FontFamily<TSelf>(TSelf visioShape, string fontFamily)` [#](#method-fontfamily-string)

Sets the whole-shape text font family.

Type Parameters

**TSelf**

Parameters

**visioShape TSelf required**

The instance.

**fontFamily string required**

The value.

Returns

`TSelf` The same instance.

`public static TSelf FontSize<TSelf>(TSelf visioShape, double size)` [#](#method-fontsize-double)

Sets the whole-shape text size in points.

Type Parameters

**TSelf**

Parameters

**visioShape TSelf required**

The instance.

**size double required**

The value.

Returns

`TSelf` The same instance.

`public static TSelf Height<TSelf>(TSelf visioShape, OfficeLength value)` [#](#method-height-officeimo-officelength)

Sets [VisioShape.Height](/api/visio/officeimo-visio-visioshape/): Gets or sets the physical Height.

Type Parameters

**TSelf**

Parameters

**visioShape TSelf required**

The instance.

**value OfficeIMO.OfficeLength required**

The value.

Returns

`TSelf` The same instance.

Examples

```csharp
// C# initializer or property    // C# fluent
visioShape.Height = value;       visioShape.Height(value);
```

`public static TSelf Hyperlinks<TSelf>(TSelf visioShape, IEnumerable<VisioHyperlink> items)` [#](#method-hyperlinks-collections-generic-ienumerable-officeimo-visio-visiohyperlink)

Adds items to [VisioShape.Hyperlinks](/api/visio/officeimo-visio-visioshape/): Hyperlinks attached to this shape.

Type Parameters

**TSelf**

Parameters

**visioShape TSelf required**

The instance.

**items System.Collections.Generic.IEnumerable<OfficeIMO.Visio.VisioHyperlink> required**

The items, in order.

Returns

`TSelf` The same instance.

`public static TSelf Hyperlink<TSelf>(TSelf visioShape, VisioHyperlink item)` [#](#method-hyperlink-officeimo-visio-visiohyperlink)

Adds an item to [VisioShape.Hyperlinks](/api/visio/officeimo-visio-visioshape/): Hyperlinks attached to this shape.

Type Parameters

**TSelf**

Parameters

**visioShape TSelf required**

The instance.

**item OfficeIMO.Visio.VisioHyperlink required**

The item.

Returns

`TSelf` The same instance.

`public static TSelf Italic<TSelf>(TSelf visioShape, bool enabled = true)` [#](#method-italic-boolean)

Sets whether the whole-shape text is italic.

Type Parameters

**TSelf**

Parameters

**visioShape TSelf required**

The instance.

**enabled bool = true optional**

The value.

Returns

`TSelf` The same instance.

`public static TSelf LayerNames<TSelf>(TSelf visioShape, IEnumerable<string> items)` [#](#method-layernames-collections-generic-ienumerable-system-string)

Adds items to [VisioShape.LayerNames](/api/visio/officeimo-visio-visioshape/): Page layer names this shape belongs to.

Type Parameters

**TSelf**

Parameters

**visioShape TSelf required**

The instance.

**items System.Collections.Generic.IEnumerable<string> required**

The items, in order.

Returns

`TSelf` The same instance.

`public static TSelf LayerName<TSelf>(TSelf visioShape, string item)` [#](#method-layername-string)

Adds an item to [VisioShape.LayerNames](/api/visio/officeimo-visio-visioshape/): Page layer names this shape belongs to.

Type Parameters

**TSelf**

Parameters

**visioShape TSelf required**

The instance.

**item string required**

The item.

Returns

`TSelf` The same instance.

`public static TSelf LineColor<TSelf>(TSelf visioShape, OfficeColor value)` [#](#method-linecolor-officeimo-officecolor)

Sets [VisioShape.LineColor](/api/visio/officeimo-visio-visioshape/): Line (border) color of the shape.

Type Parameters

**TSelf**

Parameters

**visioShape TSelf required**

The instance.

**value OfficeIMO.OfficeColor required**

The value.

Returns

`TSelf` The same instance.

Examples

```csharp
// C# initializer or property    // C# fluent
visioShape.LineColor = value;    visioShape.LineColor(value);
```

`public static TSelf LinePattern<TSelf>(TSelf visioShape, int value)` [#](#method-linepattern-int32)

Sets [VisioShape.LinePattern](/api/visio/officeimo-visio-visioshape/): Line pattern (0=None, 1=Solid, 2=Dashed, etc.).

Type Parameters

**TSelf**

Parameters

**visioShape TSelf required**

The instance.

**value int required**

The value.

Returns

`TSelf` The same instance.

Examples

```csharp
// C# initializer or property      // C# fluent
visioShape.LinePattern = value;    visioShape.LinePattern(value);
```

`public static TSelf LineWeight<TSelf>(TSelf visioShape, double value)` [#](#method-lineweight-double)

Sets [VisioShape.LineWeight](/api/visio/officeimo-visio-visioshape/): Gets or sets the line weight of the shape.

Type Parameters

**TSelf**

Parameters

**visioShape TSelf required**

The instance.

**value double required**

The value.

Returns

`TSelf` The same instance.

Examples

```csharp
// C# initializer or property     // C# fluent
visioShape.LineWeight = value;    visioShape.LineWeight(value);
```

`public static TSelf LocPinX<TSelf>(TSelf visioShape, OfficeLength value)` [#](#method-locpinx-officeimo-officelength)

Sets [VisioShape.LocPinX](/api/visio/officeimo-visio-visioshape/): Gets or sets the physical LocPinX.

Type Parameters

**TSelf**

Parameters

**visioShape TSelf required**

The instance.

**value OfficeIMO.OfficeLength required**

The value.

Returns

`TSelf` The same instance.

Examples

```csharp
// C# initializer or property    // C# fluent
visioShape.LocPinX = value;      visioShape.LocPinX(value);
```

`public static TSelf LocPinY<TSelf>(TSelf visioShape, OfficeLength value)` [#](#method-locpiny-officeimo-officelength)

Sets [VisioShape.LocPinY](/api/visio/officeimo-visio-visioshape/): Gets or sets the physical LocPinY.

Type Parameters

**TSelf**

Parameters

**visioShape TSelf required**

The instance.

**value OfficeIMO.OfficeLength required**

The value.

Returns

`TSelf` The same instance.

Examples

```csharp
// C# initializer or property    // C# fluent
visioShape.LocPinY = value;      visioShape.LocPinY(value);
```

`public static TSelf MasterShape<TSelf>(TSelf visioShape, Action<VisioShape> configure)` [#](#method-mastershape-action-officeimo-visio-visioshape)

Configures [VisioShape.MasterShape](/api/visio/officeimo-visio-visioshape/) in place: Gets the master shape instance referenced by [VisioShape.MasterShapeId](/api/visio/officeimo-visio-visioshape/), if any.

Type Parameters

**TSelf**

Parameters

**visioShape TSelf required**

The instance.

**configure System.Action<OfficeIMO.Visio.VisioShape> required**

Configures the value.

Returns

`TSelf` The same instance.

`public static TSelf Master<TSelf>(TSelf visioShape, VisioMaster? value)` [#](#method-master-officeimo-visio-visiomaster)

Sets [VisioShape.Master](/api/visio/officeimo-visio-visioshape/): Gets or sets the master associated with the shape.

Type Parameters

**TSelf**

Parameters

**visioShape TSelf required**

The instance.

**value OfficeIMO.Visio.VisioMaster? required**

The value.

Returns

`TSelf` The same instance.

Examples

```csharp
// C# initializer or property    // C# fluent
visioShape.Master = value;       visioShape.Master(value);
```

`public static TSelf NameU<TSelf>(TSelf visioShape, string? value)` [#](#method-nameu-string)

Sets [VisioShape.NameU](/api/visio/officeimo-visio-visioshape/): Gets or sets the universal name of the shape.

Type Parameters

**TSelf**

Parameters

**visioShape TSelf required**

The instance.

**value string? required**

The value.

Returns

`TSelf` The same instance.

Examples

```csharp
// C# initializer or property    // C# fluent
visioShape.NameU = value;        visioShape.NameU(value);
```

`public static TSelf Name<TSelf>(TSelf visioShape, string? value)` [#](#method-name-string)

Sets [VisioShape.Name](/api/visio/officeimo-visio-visioshape/): Gets or sets the shape name.

Type Parameters

**TSelf**

Parameters

**visioShape TSelf required**

The instance.

**value string? required**

The value.

Returns

`TSelf` The same instance.

Examples

```csharp
// C# initializer or property    // C# fluent
visioShape.Name = value;         visioShape.Name(value);
```

`public static TSelf Parent<TSelf>(TSelf visioShape, Action<VisioShape> configure)` [#](#method-parent-action-officeimo-visio-visioshape)

Configures [VisioShape.Parent](/api/visio/officeimo-visio-visioshape/) in place: Parent shape when part of a group hierarchy.

Type Parameters

**TSelf**

Parameters

**visioShape TSelf required**

The instance.

**configure System.Action<OfficeIMO.Visio.VisioShape> required**

Configures the value.

Returns

`TSelf` The same instance.

`public static TSelf PinX<TSelf>(TSelf visioShape, OfficeLength value)` [#](#method-pinx-officeimo-officelength)

Sets [VisioShape.PinX](/api/visio/officeimo-visio-visioshape/): Gets or sets the physical PinX.

Type Parameters

**TSelf**

Parameters

**visioShape TSelf required**

The instance.

**value OfficeIMO.OfficeLength required**

The value.

Returns

`TSelf` The same instance.

Examples

```csharp
// C# initializer or property    // C# fluent
visioShape.PinX = value;         visioShape.PinX(value);
```

`public static TSelf PinY<TSelf>(TSelf visioShape, OfficeLength value)` [#](#method-piny-officeimo-officelength)

Sets [VisioShape.PinY](/api/visio/officeimo-visio-visioshape/): Gets or sets the physical PinY.

Type Parameters

**TSelf**

Parameters

**visioShape TSelf required**

The instance.

**value OfficeIMO.OfficeLength required**

The value.

Returns

`TSelf` The same instance.

Examples

```csharp
// C# initializer or property    // C# fluent
visioShape.PinY = value;         visioShape.PinY(value);
```

PlacementFlip``1 2 overloads

`public static TSelf PlacementFlip<TSelf>(TSelf visioShape, VisioPlacementFlip flip)` [#](#method-placementflip-officeimo-visio-visioplacementflip)

Sets the shape-level Visio placement flip behavior.

Type Parameters

**TSelf**

Parameters

**visioShape TSelf required**

The instance.

**flip OfficeIMO.Visio.VisioPlacementFlip required**

The value.

Returns

`TSelf` The same instance.

`public static TSelf PlacementFlip<TSelf>(TSelf visioShape, VisioPlacementFlip? value)` [#](#method-placementflip-nullable-officeimo-visio-visioplacementflip)

Sets [VisioShape.PlacementFlip](/api/visio/officeimo-visio-visioshape/): Gets or sets how Visio may flip or rotate this shape during page layout.

Type Parameters

**TSelf**

Parameters

**visioShape TSelf required**

The instance.

**value OfficeIMO.Visio.VisioPlacementFlip? required**

The value.

Returns

`TSelf` The same instance.

Examples

```csharp
// C# initializer or property        // C# fluent
visioShape.PlacementFlip = value;    visioShape.PlacementFlip(value);
```

`public static TSelf PlacementOnTop<TSelf>(TSelf visioShape, bool allowed = true)` [#](#method-placementontop-boolean)

Allows or disallows placing other shapes on top of this shape during layout.

Type Parameters

**TSelf**

Parameters

**visioShape TSelf required**

The instance.

**allowed bool = true optional**

The value.

Returns

`TSelf` The same instance.

PlacementStyle``1 2 overloads

`public static TSelf PlacementStyle<TSelf>(TSelf visioShape, VisioPlacementStyle style)` [#](#method-placementstyle-officeimo-visio-visioplacementstyle)

Sets the shape-level Visio placement style.

Type Parameters

**TSelf**

Parameters

**visioShape TSelf required**

The instance.

**style OfficeIMO.Visio.VisioPlacementStyle required**

The value.

Returns

`TSelf` The same instance.

`public static TSelf PlacementStyle<TSelf>(TSelf visioShape, VisioPlacementStyle? value)` [#](#method-placementstyle-nullable-officeimo-visio-visioplacementstyle)

Sets [VisioShape.PlacementStyle](/api/visio/officeimo-visio-visioshape/): Gets or sets the shape-level placement style Visio uses during page layout.

Type Parameters

**TSelf**

Parameters

**visioShape TSelf required**

The instance.

**value OfficeIMO.Visio.VisioPlacementStyle? required**

The value.

Returns

`TSelf` The same instance.

Examples

```csharp
// C# initializer or property         // C# fluent
visioShape.PlacementStyle = value;    visioShape.PlacementStyle(value);
```

`public static TSelf PlowCode<TSelf>(TSelf visioShape, VisioShapePlowCode? value)` [#](#method-plowcode-nullable-officeimo-visio-visioshapeplowcode)

Sets [VisioShape.PlowCode](/api/visio/officeimo-visio-visioshape/): Gets or sets whether this shape moves away when another placeable shape is dropped nearby.

Type Parameters

**TSelf**

Parameters

**visioShape TSelf required**

The instance.

**value OfficeIMO.Visio.VisioShapePlowCode? required**

The value.

Returns

`TSelf` The same instance.

Examples

```csharp
// C# initializer or property    // C# fluent
visioShape.PlowCode = value;     visioShape.PlowCode(value);
```

`public static TSelf Plow<TSelf>(TSelf visioShape, VisioShapePlowCode code)` [#](#method-plow-officeimo-visio-visioshapeplowcode)

Sets the shape-level Visio plow behavior.

Type Parameters

**TSelf**

Parameters

**visioShape TSelf required**

The instance.

**code OfficeIMO.Visio.VisioShapePlowCode required**

The value.

Returns

`TSelf` The same instance.

`public static TSelf Protection<TSelf>(TSelf visioShape, Action<VisioShapeProtection> configure)` [#](#method-protection-action-officeimo-visio-visioshapeprotection)

Configures [VisioShape.Protection](/api/visio/officeimo-visio-visioshape/) in place: Visio ShapeSheet protection cells controlling interactive editing in Visio.

Type Parameters

**TSelf**

Parameters

**visioShape TSelf required**

The instance.

**configure System.Action<OfficeIMO.Visio.VisioShapeProtection> required**

Configures the value.

Returns

`TSelf` The same instance.

ShapeData``1 2 overloads

`public static TSelf ShapeData<TSelf>(TSelf visioShape, VisioShapeDataRow item)` [#](#method-shapedata-officeimo-visio-visioshapedatarow)

Adds an item to [VisioShape.ShapeData](/api/visio/officeimo-visio-visioshape/): Visio Shape Data rows attached to this shape.

Type Parameters

**TSelf**

Parameters

**visioShape TSelf required**

The instance.

**item OfficeIMO.Visio.VisioShapeDataRow required**

The item.

Returns

`TSelf` The same instance.

`public static TSelf ShapeData<TSelf>(TSelf visioShape, IEnumerable<VisioShapeDataRow> items)` [#](#method-shapedata-collections-generic-ienumerable-officeimo-visio-visioshapedatarow)

Adds items to [VisioShape.ShapeData](/api/visio/officeimo-visio-visioshape/): Visio Shape Data rows attached to this shape.

Type Parameters

**TSelf**

Parameters

**visioShape TSelf required**

The instance.

**items System.Collections.Generic.IEnumerable<OfficeIMO.Visio.VisioShapeDataRow> required**

The items, in order.

Returns

`TSelf` The same instance.

`public static TSelf ShapeSheetSection<TSelf>(TSelf visioShape, VisioShapeSheetSection section)` [#](#method-shapesheetsection-officeimo-visio-visioshapesheetsection)

Sets a typed ShapeSheet section without disturbing other preserved sections.

Type Parameters

**TSelf**

Parameters

**visioShape TSelf required**

The instance.

**section OfficeIMO.Visio.VisioShapeSheetSection required**

Section to write.

Returns

`TSelf` The same instance.

`public static TSelf ShapeSplitting<TSelf>(TSelf visioShape, bool canSplit = true, bool canBeSplit = true)` [#](#method-shapesplitting-boolean-boolean)

Allows or disallows this shape splitting other shapes.

Type Parameters

**TSelf**

Parameters

**visioShape TSelf required**

The instance.

**canSplit bool = true optional**

The value.

**canBeSplit bool = true optional**

The value.

Returns

`TSelf` The same instance.

`public static TSelf SmallCaps<TSelf>(TSelf visioShape, bool enabled = true)` [#](#method-smallcaps-boolean)

Enables or disables Visio's native small-capital style.

Type Parameters

**TSelf**

Parameters

**visioShape TSelf required**

The instance.

**enabled bool = true optional**

The value.

Returns

`TSelf` The same instance.

`public static TSelf Strikethrough<TSelf>(TSelf visioShape, OfficeTextDecorationStyle style = Single)` [#](#method-strikethrough-officeimo-drawing-officetextdecorationstyle)

Sets the native strikethrough variant for the whole-shape text.

Type Parameters

**TSelf**

Parameters

**visioShape TSelf required**

The instance.

**style OfficeIMO.Drawing.OfficeTextDecorationStyle = Single optional**

The value.

Returns

`TSelf` The same instance.

`public static TSelf Stroke<TSelf>(TSelf visioShape, OfficeColor color, double weight = 0.0138889, int pattern = 1)` [#](#method-stroke-officeimo-officecolor-double-int32)

Sets stroke color, weight (inches), and optional pattern.

Type Parameters

**TSelf**

Parameters

**visioShape TSelf required**

The instance.

**color OfficeIMO.OfficeColor required**

Line color.

**weight double = 0.0138889 optional**

Line weight in inches.

**pattern int = 1 optional**

Line pattern index (default 1=Solid).

Returns

`TSelf` The same instance.

`public static TSelf TextAlignment<TSelf>(TSelf visioShape, OfficeAlignment horizontal, VisioTextVerticalAlignment? vertical = null)` [#](#method-textalignment-officeimo-officealignment-nullable-officeimo-visio-visiotextverticalalignment)

Sets whole-shape text alignment.

Type Parameters

**TSelf**

Parameters

**visioShape TSelf required**

The instance.

**horizontal OfficeIMO.OfficeAlignment required**

The value.

**vertical OfficeIMO.Visio.VisioTextVerticalAlignment? = null optional**

The value.

Returns

`TSelf` The same instance.

`public static TSelf TextColor<TSelf>(TSelf visioShape, OfficeColor color)` [#](#method-textcolor-officeimo-officecolor)

Sets the whole-shape text color.

Type Parameters

**TSelf**

Parameters

**visioShape TSelf required**

The instance.

**color OfficeIMO.OfficeColor required**

The value.

Returns

`TSelf` The same instance.

TextStyle``1 2 overloads

`public static TSelf TextStyle<TSelf>(TSelf visioShape, VisioTextStyle? value)` [#](#method-textstyle-officeimo-visio-visiotextstyle)

Sets [VisioShape.TextStyle](/api/visio/officeimo-visio-visioshape/): Gets or sets whole-shape text formatting.

Type Parameters

**TSelf**

Parameters

**visioShape TSelf required**

The instance.

**value OfficeIMO.Visio.VisioTextStyle? required**

The value.

Returns

`TSelf` The same instance.

Examples

```csharp
// C# initializer or property    // C# fluent
visioShape.TextStyle = value;    visioShape.TextStyle(value);
```

`public static TSelf TextStyle<TSelf>(TSelf visioShape, Action<VisioTextStyle> configure)` [#](#method-textstyle-action-officeimo-visio-visiotextstyle)

Configures [VisioShape.TextStyle](/api/visio/officeimo-visio-visioshape/) in place (creating it when not set): Gets or sets whole-shape text formatting.

Type Parameters

**TSelf**

Parameters

**visioShape TSelf required**

The instance.

**configure System.Action<OfficeIMO.Visio.VisioTextStyle> required**

Configures the value.

Returns

`TSelf` The same instance.

`public static TSelf Text<TSelf>(TSelf visioShape, string text)` [#](#method-text-string)

Sets shape text.

Type Parameters

**TSelf**

Parameters

**visioShape TSelf required**

The instance.

**text string required**

Text content.

Returns

`TSelf` The same instance.

`public static TSelf Underline<TSelf>(TSelf visioShape, OfficeTextDecorationStyle style = Single)` [#](#method-underline-officeimo-drawing-officetextdecorationstyle)

Sets the native underline variant for the whole-shape text.

Type Parameters

**TSelf**

Parameters

**visioShape TSelf required**

The instance.

**style OfficeIMO.Drawing.OfficeTextDecorationStyle = Single optional**

The value.

Returns

`TSelf` The same instance.

`public static TSelf UserCells<TSelf>(TSelf visioShape, IEnumerable<VisioUserCell> items)` [#](#method-usercells-collections-generic-ienumerable-officeimo-visio-visiousercell)

Adds items to [VisioShape.UserCells](/api/visio/officeimo-visio-visioshape/): User-defined ShapeSheet cells attached to this shape.

Type Parameters

**TSelf**

Parameters

**visioShape TSelf required**

The instance.

**items System.Collections.Generic.IEnumerable<OfficeIMO.Visio.VisioUserCell> required**

The items, in order.

Returns

`TSelf` The same instance.

`public static TSelf UserCell<TSelf>(TSelf visioShape, VisioUserCell item)` [#](#method-usercell-officeimo-visio-visiousercell)

Adds an item to [VisioShape.UserCells](/api/visio/officeimo-visio-visioshape/): User-defined ShapeSheet cells attached to this shape.

Type Parameters

**TSelf**

Parameters

**visioShape TSelf required**

The instance.

**item OfficeIMO.Visio.VisioUserCell required**

The item.

Returns

`TSelf` The same instance.

`public static TSelf Width<TSelf>(TSelf visioShape, OfficeLength value)` [#](#method-width-officeimo-officelength)

Sets [VisioShape.Width](/api/visio/officeimo-visio-visioshape/): Gets or sets the physical Width.

Type Parameters

**TSelf**

Parameters

**visioShape TSelf required**

The instance.

**value OfficeIMO.OfficeLength required**

The value.

Returns

`TSelf` The same instance.

Examples

```csharp
// C# initializer or property    // C# fluent
visioShape.Width = value;        visioShape.Width(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:79C8D9BA746474178652CEC1AB7043A76B34BD59DB1F9E6055355C539632B745 -->
