# VisioShapeStyleFluent

The fluent methods of VisioShapeStyle, 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 [VisioShapeStyle](/api/visio/officeimo-visio-visioshapestyle/), 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
- VisioShapeStyleFluent

Filter members 

Show inherited

## Methods

`public static VisioShapeStyle FillColor(VisioShapeStyle visioShapeStyle, OfficeColor value)` [#](#method-fillcolor-officeimo-visio-visioshapestyle-officeimo-officecolor)

Sets [VisioShapeStyle.FillColor](/api/visio/officeimo-visio-visioshapestyle/): Fill color.

Parameters

**visioShapeStyle OfficeIMO.Visio.VisioShapeStyle required**

The instance.

**value OfficeIMO.OfficeColor required**

The value.

Returns

`VisioShapeStyle` The same instance.

Examples

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

`public static VisioShapeStyle FillPattern(VisioShapeStyle visioShapeStyle, int value)` [#](#method-fillpattern-officeimo-visio-visioshapestyle-int32)

Sets [VisioShapeStyle.FillPattern](/api/visio/officeimo-visio-visioshapestyle/): Fill pattern index.

Parameters

**visioShapeStyle OfficeIMO.Visio.VisioShapeStyle required**

The instance.

**value int required**

The value.

Returns

`VisioShapeStyle` The same instance.

Examples

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

`public static VisioShapeStyle LineColor(VisioShapeStyle visioShapeStyle, OfficeColor value)` [#](#method-linecolor-officeimo-visio-visioshapestyle-officeimo-officecolor)

Sets [VisioShapeStyle.LineColor](/api/visio/officeimo-visio-visioshapestyle/): Line color.

Parameters

**visioShapeStyle OfficeIMO.Visio.VisioShapeStyle required**

The instance.

**value OfficeIMO.OfficeColor required**

The value.

Returns

`VisioShapeStyle` The same instance.

Examples

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

`public static VisioShapeStyle LinePattern(VisioShapeStyle visioShapeStyle, int value)` [#](#method-linepattern-officeimo-visio-visioshapestyle-int32)

Sets [VisioShapeStyle.LinePattern](/api/visio/officeimo-visio-visioshapestyle/): Line pattern index.

Parameters

**visioShapeStyle OfficeIMO.Visio.VisioShapeStyle required**

The instance.

**value int required**

The value.

Returns

`VisioShapeStyle` The same instance.

Examples

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

`public static VisioShapeStyle LineWeight(VisioShapeStyle visioShapeStyle, double value)` [#](#method-lineweight-officeimo-visio-visioshapestyle-double)

Sets [VisioShapeStyle.LineWeight](/api/visio/officeimo-visio-visioshapestyle/): Line weight in inches.

Parameters

**visioShapeStyle OfficeIMO.Visio.VisioShapeStyle required**

The instance.

**value double required**

The value.

Returns

`VisioShapeStyle` The same instance.

Examples

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

TextStyle 2 overloads

`public static VisioShapeStyle TextStyle(VisioShapeStyle visioShapeStyle, VisioTextStyle? value)` [#](#method-textstyle-officeimo-visio-visioshapestyle-officeimo-visio-visiotextstyle)

Sets [VisioShapeStyle.TextStyle](/api/visio/officeimo-visio-visioshapestyle/): Optional text style to apply with this shape style.

Parameters

**visioShapeStyle OfficeIMO.Visio.VisioShapeStyle required**

The instance.

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

The value.

Returns

`VisioShapeStyle` The same instance.

Examples

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

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

Configures [VisioShapeStyle.TextStyle](/api/visio/officeimo-visio-visioshapestyle/) in place (creating it when not set): Optional text style to apply with this shape style.

Parameters

**visioShapeStyle OfficeIMO.Visio.VisioShapeStyle required**

The instance.

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

Configures the value.

Returns

`VisioShapeStyle` The same instance.

## 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:12155AF53BE2D4AEB6C30A61F6EEF63591B2CAF8E8ABE2A77CA9DF71F051363C -->
