# ExcelWorksheetCopyOptionsFluent

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

Class 

`OfficeIMO.Excel`

**Namespace**

`OfficeIMO.Excel`

**Assembly**

`OfficeIMO.Excel`

**Modifiers**

static

The fluent methods of [ExcelWorksheetCopyOptions](/api/excel/officeimo-excel-excelworksheetcopyoptions/), 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
- ExcelWorksheetCopyOptionsFluent

Filter members 

Show inherited

## Methods

`public static ExcelWorksheetCopyOptions CopyExternalWorkbookReferences(ExcelWorksheetCopyOptions excelWorksheetCopyOptions, bool value = true)` [#](#method-copyexternalworkbookreferences-officeimo-excel-excelworksheetcopyoptions-boolean)

Sets [ExcelWorksheetCopyOptions.CopyExternalWorkbookReferences](/api/excel/officeimo-excel-excelworksheetcopyoptions/): Gets or sets whether package-mode copies may preserve external-workbook references. External links are rejected unless callers opt in explicitly.

Parameters

**excelWorksheetCopyOptions OfficeIMO.Excel.ExcelWorksheetCopyOptions required**

The instance.

**value bool = true optional**

The value; true when omitted.

Returns

`ExcelWorksheetCopyOptions` The same instance.

Examples

```csharp
// C# initializer or property                                                                        // C# fluent
new global::OfficeIMO.Excel.ExcelWorksheetCopyOptions { CopyExternalWorkbookReferences = value };    excelWorksheetCopyOptions.CopyExternalWorkbookReferences(value);
```

`public static ExcelWorksheetCopyOptions CopyMode(ExcelWorksheetCopyOptions excelWorksheetCopyOptions, ExcelWorksheetCopyMode value)` [#](#method-copymode-officeimo-excel-excelworksheetcopyoptions-officeimo-excel-excelworksheetcopymode)

Sets [ExcelWorksheetCopyOptions.CopyMode](/api/excel/officeimo-excel-excelworksheetcopyoptions/): Gets or sets the copy strategy. Package copy preserves worksheet XML and avoids object materialization.

Parameters

**excelWorksheetCopyOptions OfficeIMO.Excel.ExcelWorksheetCopyOptions required**

The instance.

**value OfficeIMO.Excel.ExcelWorksheetCopyMode required**

The value.

Returns

`ExcelWorksheetCopyOptions` The same instance.

Examples

```csharp
// C# initializer or property                                                  // C# fluent
new global::OfficeIMO.Excel.ExcelWorksheetCopyOptions { CopyMode = value };    excelWorksheetCopyOptions.CopyMode(value);
```

`public static ExcelWorksheetCopyOptions MaxDefinedNameCharacters(ExcelWorksheetCopyOptions excelWorksheetCopyOptions, int value)` [#](#method-maxdefinednamecharacters-officeimo-excel-excelworksheetcopyoptions-int32)

Sets [ExcelWorksheetCopyOptions.MaxDefinedNameCharacters](/api/excel/officeimo-excel-excelworksheetcopyoptions/): Gets or sets the maximum aggregate formula characters across copied defined names.

Parameters

**excelWorksheetCopyOptions OfficeIMO.Excel.ExcelWorksheetCopyOptions required**

The instance.

**value int required**

The value.

Returns

`ExcelWorksheetCopyOptions` The same instance.

Examples

```csharp
// C# initializer or property                                                                  // C# fluent
new global::OfficeIMO.Excel.ExcelWorksheetCopyOptions { MaxDefinedNameCharacters = value };    excelWorksheetCopyOptions.MaxDefinedNameCharacters(value);
```

`public static ExcelWorksheetCopyOptions MaxDefinedNames(ExcelWorksheetCopyOptions excelWorksheetCopyOptions, int value)` [#](#method-maxdefinednames-officeimo-excel-excelworksheetcopyoptions-int32)

Sets [ExcelWorksheetCopyOptions.MaxDefinedNames](/api/excel/officeimo-excel-excelworksheetcopyoptions/): Gets or sets the maximum number of referenced defined names copied in package mode.

Parameters

**excelWorksheetCopyOptions OfficeIMO.Excel.ExcelWorksheetCopyOptions required**

The instance.

**value int required**

The value.

Returns

`ExcelWorksheetCopyOptions` The same instance.

Examples

```csharp
// C# initializer or property                                                         // C# fluent
new global::OfficeIMO.Excel.ExcelWorksheetCopyOptions { MaxDefinedNames = value };    excelWorksheetCopyOptions.MaxDefinedNames(value);
```

`public static ExcelWorksheetCopyOptions MaxInCellImageBytes(ExcelWorksheetCopyOptions excelWorksheetCopyOptions, long value)` [#](#method-maxincellimagebytes-officeimo-excel-excelworksheetcopyoptions-int64)

Sets [ExcelWorksheetCopyOptions.MaxInCellImageBytes](/api/excel/officeimo-excel-excelworksheetcopyoptions/): Gets or sets the maximum payload size of one in-cell image copied in package mode.

Parameters

**excelWorksheetCopyOptions OfficeIMO.Excel.ExcelWorksheetCopyOptions required**

The instance.

**value long required**

The value.

Returns

`ExcelWorksheetCopyOptions` The same instance.

Examples

```csharp
// C# initializer or property                                                             // C# fluent
new global::OfficeIMO.Excel.ExcelWorksheetCopyOptions { MaxInCellImageBytes = value };    excelWorksheetCopyOptions.MaxInCellImageBytes(value);
```

`public static ExcelWorksheetCopyOptions MaxInCellImages(ExcelWorksheetCopyOptions excelWorksheetCopyOptions, int value)` [#](#method-maxincellimages-officeimo-excel-excelworksheetcopyoptions-int32)

Sets [ExcelWorksheetCopyOptions.MaxInCellImages](/api/excel/officeimo-excel-excelworksheetcopyoptions/): Gets or sets the maximum number of in-cell image references copied in package mode.

Parameters

**excelWorksheetCopyOptions OfficeIMO.Excel.ExcelWorksheetCopyOptions required**

The instance.

**value int required**

The value.

Returns

`ExcelWorksheetCopyOptions` The same instance.

Examples

```csharp
// C# initializer or property                                                         // C# fluent
new global::OfficeIMO.Excel.ExcelWorksheetCopyOptions { MaxInCellImages = value };    excelWorksheetCopyOptions.MaxInCellImages(value);
```

`public static ExcelWorksheetCopyOptions MaxTotalInCellImageBytes(ExcelWorksheetCopyOptions excelWorksheetCopyOptions, long value)` [#](#method-maxtotalincellimagebytes-officeimo-excel-excelworksheetcopyoptions-int64)

Sets [ExcelWorksheetCopyOptions.MaxTotalInCellImageBytes](/api/excel/officeimo-excel-excelworksheetcopyoptions/): Gets or sets the maximum aggregate resolved in-cell image bytes copied in package mode. Shared image assets are charged once per referencing cell.

Parameters

**excelWorksheetCopyOptions OfficeIMO.Excel.ExcelWorksheetCopyOptions required**

The instance.

**value long required**

The value.

Returns

`ExcelWorksheetCopyOptions` The same instance.

Examples

```csharp
// C# initializer or property                                                                  // C# fluent
new global::OfficeIMO.Excel.ExcelWorksheetCopyOptions { MaxTotalInCellImageBytes = value };    excelWorksheetCopyOptions.MaxTotalInCellImageBytes(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:42697309981D0C7B64994C7EAA758F605C99E9FD0A8B15540BCECC8A29601AEA -->
