# WordShapeFluent

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

Class 

`OfficeIMO.Word`

**Namespace**

`OfficeIMO.Word`

**Assembly**

`OfficeIMO.Word`

**Modifiers**

static

The fluent methods of [WordShape](/api/word/officeimo-word-wordshape/), 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
- WordShapeFluent

Filter members 

Show inherited

## Methods

`public static TSelf ArcSize<TSelf>(TSelf wordShape, double? value)` [#](#method-arcsize-nullable-system-double)

Sets [WordShape.ArcSize](/api/word/officeimo-word-wordshape/): Gets or sets the corner roundness of a VML rounded rectangle.

Type Parameters

**TSelf**

Parameters

**wordShape TSelf required**

The instance.

**value double? required**

The value.

Returns

`TSelf` The same instance.

Examples

```csharp
// C# initializer or property    // C# fluent
wordShape.ArcSize = value;       wordShape.ArcSize(value);
```

`public static TSelf Description<TSelf>(TSelf wordShape, string? value)` [#](#method-description-string)

Sets [WordShape.Description](/api/word/officeimo-word-wordshape/): Gets or sets the VML shape's alternative text.

Type Parameters

**TSelf**

Parameters

**wordShape TSelf required**

The instance.

**value string? required**

The value.

Returns

`TSelf` The same instance.

Examples

```csharp
// C# initializer or property     // C# fluent
wordShape.Description = value;    wordShape.Description(value);
```

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

Sets [WordShape.FillColor](/api/word/officeimo-word-wordshape/): Gets or sets the resolved fill color, retaining DrawingML theme references.

Type Parameters

**TSelf**

Parameters

**wordShape TSelf required**

The instance.

**value OfficeIMO.OfficeColor required**

The value.

Returns

`TSelf` The same instance.

Examples

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

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

Sets [WordShape.Height](/api/word/officeimo-word-wordshape/): Gets or sets the displayed shape height. Returns zero when no height is stored.

Type Parameters

**TSelf**

Parameters

**wordShape TSelf required**

The instance.

**value OfficeIMO.OfficeLength required**

The value.

Returns

`TSelf` The same instance.

Examples

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

`public static TSelf Hidden<TSelf>(TSelf wordShape, bool? value = true)` [#](#method-hidden-nullable-system-boolean)

Sets [WordShape.Hidden](/api/word/officeimo-word-wordshape/): Gets or sets the VML shape's visibility.

Type Parameters

**TSelf**

Parameters

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

`public static TSelf Id<TSelf>(TSelf wordShape, string value)` [#](#method-id-string)

Sets [WordShape.Id](/api/word/officeimo-word-wordshape/): Gets or sets the VML shape identifier.

Type Parameters

**TSelf**

Parameters

**wordShape TSelf required**

The instance.

**value string required**

The value.

Returns

`TSelf` The same instance.

Examples

```csharp
// C# initializer or property    // C# fluent
wordShape.Id = value;            wordShape.Id(value);
```

`public static TSelf Left<TSelf>(TSelf wordShape, OfficeLength? value)` [#](#method-left-nullable-officeimo-officelength)

Sets [WordShape.Left](/api/word/officeimo-word-wordshape/): Gets or sets the horizontal shape offset. Setting an inline shape's offset anchors it.

Type Parameters

**TSelf**

Parameters

**wordShape TSelf required**

The instance.

**value OfficeIMO.OfficeLength? required**

The value.

Returns

`TSelf` The same instance.

Examples

```csharp
// C# initializer or property    // C# fluent
wordShape.Left = value;          wordShape.Left(value);
```

`public static TSelf Rotation<TSelf>(TSelf wordShape, double? value)` [#](#method-rotation-nullable-system-double)

Sets [WordShape.Rotation](/api/word/officeimo-word-wordshape/): Rotation of the shape in degrees. Returns null when not set.

Type Parameters

**TSelf**

Parameters

**wordShape TSelf required**

The instance.

**value double? required**

The value.

Returns

`TSelf` The same instance.

Examples

```csharp
// C# initializer or property    // C# fluent
wordShape.Rotation = value;      wordShape.Rotation(value);
```

`public static TSelf StrokeColor<TSelf>(TSelf wordShape, OfficeColor value)` [#](#method-strokecolor-officeimo-officecolor)

Sets [WordShape.StrokeColor](/api/word/officeimo-word-wordshape/): Gets or sets the resolved outline color, retaining DrawingML theme references.

Type Parameters

**TSelf**

Parameters

**wordShape TSelf required**

The instance.

**value OfficeIMO.OfficeColor required**

The value.

Returns

`TSelf` The same instance.

Examples

```csharp
// C# initializer or property     // C# fluent
wordShape.StrokeColor = value;    wordShape.StrokeColor(value);
```

`public static TSelf Stroked<TSelf>(TSelf wordShape, bool? value = true)` [#](#method-stroked-nullable-system-boolean)

Sets [WordShape.Stroked](/api/word/officeimo-word-wordshape/): Gets or sets whether Word draws the VML outline.

Type Parameters

**TSelf**

Parameters

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

`public static TSelf StrokeWeight<TSelf>(TSelf wordShape, OfficeLength? value)` [#](#method-strokeweight-nullable-officeimo-officelength)

Sets [WordShape.StrokeWeight](/api/word/officeimo-word-wordshape/): Gets or sets the outline thickness while preserving other outline formatting.

Type Parameters

**TSelf**

Parameters

**wordShape TSelf required**

The instance.

**value OfficeIMO.OfficeLength? required**

The value.

Returns

`TSelf` The same instance.

Examples

```csharp
// C# initializer or property      // C# fluent
wordShape.StrokeWeight = value;    wordShape.StrokeWeight(value);
```

`public static TSelf Title<TSelf>(TSelf wordShape, string? value)` [#](#method-title-string)

Sets [WordShape.Title](/api/word/officeimo-word-wordshape/): Gets or sets the optional VML shape title.

Type Parameters

**TSelf**

Parameters

**wordShape TSelf required**

The instance.

**value string? required**

The value.

Returns

`TSelf` The same instance.

Examples

```csharp
// C# initializer or property    // C# fluent
wordShape.Title = value;         wordShape.Title(value);
```

`public static TSelf Top<TSelf>(TSelf wordShape, OfficeLength? value)` [#](#method-top-nullable-officeimo-officelength)

Sets [WordShape.Top](/api/word/officeimo-word-wordshape/): Gets or sets the vertical shape offset. Setting an inline shape's offset anchors it.

Type Parameters

**TSelf**

Parameters

**wordShape TSelf required**

The instance.

**value OfficeIMO.OfficeLength? required**

The value.

Returns

`TSelf` The same instance.

Examples

```csharp
// C# initializer or property    // C# fluent
wordShape.Top = value;           wordShape.Top(value);
```

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

Sets [WordShape.Width](/api/word/officeimo-word-wordshape/): Gets or sets the displayed shape width. Returns zero when no width is stored.

Type Parameters

**TSelf**

Parameters

**wordShape TSelf required**

The instance.

**value OfficeIMO.OfficeLength required**

The value.

Returns

`TSelf` The same instance.

Examples

```csharp
// C# initializer or property    // C# fluent
wordShape.Width = value;         wordShape.Width(value);
```

`public static TSelf ZIndex<TSelf>(TSelf wordShape, int? value)` [#](#method-zindex-nullable-system-int32)

Sets [WordShape.ZIndex](/api/word/officeimo-word-wordshape/): Gets or sets the z-index for VML shapes (style "z-index"). DrawingML is not affected.

Type Parameters

**TSelf**

Parameters

**wordShape TSelf required**

The instance.

**value int? required**

The value.

Returns

`TSelf` The same instance.

Examples

```csharp
// C# initializer or property    // C# fluent
wordShape.ZIndex = value;        wordShape.ZIndex(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:B4F554482AA8BA1B13D91B70C336357796C5126CA798C2FF90A78F948C1E9BC6 -->
