Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

ExcelTableOptionsFluent

OfficeIMO.Excel

Namespace
OfficeIMO.Excel
Assembly
OfficeIMO.Excel
Modifiers
static

The fluent methods of ExcelTableOptions, 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
  • ExcelTableOptionsFluent

Methods

public static ExcelTableOptions Alignment(ExcelTableOptions excelTableOptions, OfficeAlignment? item) #

Adds an item to OfficeTableOptions.Alignments.

Parameters

excelTableOptions OfficeIMO.Excel.ExcelTableOptions required
The instance.
item OfficeIMO.OfficeAlignment? required
The item.

Returns

ExcelTableOptions The same instance.
public static ExcelTableOptions Alignments(ExcelTableOptions excelTableOptions, IEnumerable<OfficeAlignment?> items) #

Adds items to OfficeTableOptions.Alignments.

Parameters

excelTableOptions OfficeIMO.Excel.ExcelTableOptions required
The instance.
items System.Collections.Generic.IEnumerable<OfficeIMO.OfficeAlignment?> required
The items, in order.

Returns

ExcelTableOptions The same instance.
public static ExcelTableOptions AutoFit(ExcelTableOptions excelTableOptions, bool value = true) #

Sets ExcelTableOptions.AutoFit: Gets or sets whether eligible table columns are automatically fitted. Defaults to true.

Parameters

excelTableOptions OfficeIMO.Excel.ExcelTableOptions required
The instance.
value bool = true optional
The value; true when omitted.

Returns

ExcelTableOptions The same instance.

Examples

// C# initializer or property                                         // C# fluent
new global::OfficeIMO.Excel.ExcelTableOptions { AutoFit = value };    excelTableOptions.AutoFit(value);
public static ExcelTableOptions CancellationToken(ExcelTableOptions excelTableOptions, CancellationToken value) #

Sets ExcelTableOptions.CancellationToken: Gets or sets cancellation for DataTable insertion.

Parameters

excelTableOptions OfficeIMO.Excel.ExcelTableOptions required
The instance.
value System.Threading.CancellationToken required
The value.

Returns

ExcelTableOptions The same instance.

Examples

// C# initializer or property                                                   // C# fluent
new global::OfficeIMO.Excel.ExcelTableOptions { CancellationToken = value };    excelTableOptions.CancellationToken(value);
public static ExcelTableOptions Caption(ExcelTableOptions excelTableOptions, string? value) #

Sets OfficeTableOptions.Caption.

Parameters

excelTableOptions OfficeIMO.Excel.ExcelTableOptions required
The instance.
value string? required
The value.

Returns

ExcelTableOptions The same instance.

Examples

// C# initializer or property                                         // C# fluent
new global::OfficeIMO.Excel.ExcelTableOptions { Caption = value };    excelTableOptions.Caption(value);
public static ExcelTableOptions Configure(ExcelTableOptions excelTableOptions, Action<ExcelTableOptions> configure) #

Assigns callbacks and related configuration without invoking delegate-valued properties.

Parameters

excelTableOptions OfficeIMO.Excel.ExcelTableOptions required
The instance.
configure System.Action<OfficeIMO.Excel.ExcelTableOptions> required
Assignments applied in order.

Returns

ExcelTableOptions The same instance.

Examples

// C# initializer or property                                                 // C# fluent
new global::OfficeIMO.Excel.ExcelTableOptions { HeaderTransform = value };    excelTableOptions.Configure(configured => configured.HeaderTransform = value);
Exclude 2 overloads
public static ExcelTableOptions Exclude(ExcelTableOptions excelTableOptions, string item) #

Adds an item to OfficeTableOptions.Exclude.

Parameters

excelTableOptions OfficeIMO.Excel.ExcelTableOptions required
The instance.
item string required
The item.

Returns

ExcelTableOptions The same instance.
public static ExcelTableOptions Exclude(ExcelTableOptions excelTableOptions, IEnumerable<string> items) #

Adds items to OfficeTableOptions.Exclude.

Parameters

excelTableOptions OfficeIMO.Excel.ExcelTableOptions required
The instance.
items System.Collections.Generic.IEnumerable<string> required
The items, in order.

Returns

ExcelTableOptions The same instance.
public static ExcelTableOptions ExecutionMode(ExcelTableOptions excelTableOptions, ExcelExecutionMode? value) #

Sets ExcelTableOptions.ExecutionMode: Gets or sets the execution policy for DataTable cell writes. Null uses the worksheet policy.

Parameters

excelTableOptions OfficeIMO.Excel.ExcelTableOptions required
The instance.
value OfficeIMO.Excel.ExcelExecutionMode? required
The value.

Returns

ExcelTableOptions The same instance.

Examples

// C# initializer or property                                               // C# fluent
new global::OfficeIMO.Excel.ExcelTableOptions { ExecutionMode = value };    excelTableOptions.ExecutionMode(value);
Include 2 overloads
public static ExcelTableOptions Include(ExcelTableOptions excelTableOptions, string item) #

Adds an item to OfficeTableOptions.Include.

Parameters

excelTableOptions OfficeIMO.Excel.ExcelTableOptions required
The instance.
item string required
The item.

Returns

ExcelTableOptions The same instance.
public static ExcelTableOptions Include(ExcelTableOptions excelTableOptions, IEnumerable<string> items) #

Adds items to OfficeTableOptions.Include.

Parameters

excelTableOptions OfficeIMO.Excel.ExcelTableOptions required
The instance.
items System.Collections.Generic.IEnumerable<string> required
The items, in order.

Returns

ExcelTableOptions The same instance.
public static ExcelTableOptions IncludeAutoFilter(ExcelTableOptions excelTableOptions, bool value = true) #

Sets ExcelTableOptions.IncludeAutoFilter: Gets or sets whether the table has filter buttons.

Parameters

excelTableOptions OfficeIMO.Excel.ExcelTableOptions required
The instance.
value bool = true optional
The value; true when omitted.

Returns

ExcelTableOptions The same instance.

Examples

// C# initializer or property                                                   // C# fluent
new global::OfficeIMO.Excel.ExcelTableOptions { IncludeAutoFilter = value };    excelTableOptions.IncludeAutoFilter(value);
public static ExcelTableOptions IncludeHeaders(ExcelTableOptions excelTableOptions, bool value = true) #

Sets OfficeTableOptions.IncludeHeaders.

Parameters

excelTableOptions OfficeIMO.Excel.ExcelTableOptions required
The instance.
value bool = true optional
The value; true when omitted.

Returns

ExcelTableOptions The same instance.

Examples

// C# initializer or property                                                // C# fluent
new global::OfficeIMO.Excel.ExcelTableOptions { IncludeHeaders = value };    excelTableOptions.IncludeHeaders(value);
public static ExcelTableOptions Name(ExcelTableOptions excelTableOptions, string? value) #

Sets OfficeTableOptions.Name.

Parameters

excelTableOptions OfficeIMO.Excel.ExcelTableOptions required
The instance.
value string? required
The value.

Returns

ExcelTableOptions The same instance.

Examples

// C# initializer or property                                      // C# fluent
new global::OfficeIMO.Excel.ExcelTableOptions { Name = value };    excelTableOptions.Name(value);
Order 2 overloads
public static ExcelTableOptions Order(ExcelTableOptions excelTableOptions, string item) #

Adds an item to OfficeTableOptions.Order.

Parameters

excelTableOptions OfficeIMO.Excel.ExcelTableOptions required
The instance.
item string required
The item.

Returns

ExcelTableOptions The same instance.
public static ExcelTableOptions Order(ExcelTableOptions excelTableOptions, IEnumerable<string> items) #

Adds items to OfficeTableOptions.Order.

Parameters

excelTableOptions OfficeIMO.Excel.ExcelTableOptions required
The instance.
items System.Collections.Generic.IEnumerable<string> required
The items, in order.

Returns

ExcelTableOptions The same instance.
Projection 2 overloads
public static ExcelTableOptions Projection(ExcelTableOptions excelTableOptions, ObjectFlattenerOptions? value) #

Sets ExcelTableOptions.Projection: Gets or sets flattening, column selection, formatting and materialization limits.

Parameters

excelTableOptions OfficeIMO.Excel.ExcelTableOptions required
The instance.
value OfficeIMO.Data.ObjectFlattenerOptions? required
The value.

Returns

ExcelTableOptions The same instance.

Examples

// C# initializer or property                                            // C# fluent
new global::OfficeIMO.Excel.ExcelTableOptions { Projection = value };    excelTableOptions.Projection(value);
public static ExcelTableOptions Projection(ExcelTableOptions excelTableOptions, Action<ObjectFlattenerOptions> configure) #

Configures ExcelTableOptions.Projection in place (creating it when not set): Gets or sets flattening, column selection, formatting and materialization limits.

Parameters

excelTableOptions OfficeIMO.Excel.ExcelTableOptions required
The instance.
configure System.Action<OfficeIMO.Data.ObjectFlattenerOptions> required
Configures the value.

Returns

ExcelTableOptions The same instance.
public static ExcelTableOptions Style(ExcelTableOptions excelTableOptions, ExcelTableStyle value) #

Sets ExcelTableOptions.Style: Gets or sets the native table style.

Parameters

excelTableOptions OfficeIMO.Excel.ExcelTableOptions required
The instance.
value OfficeIMO.Excel.ExcelTableStyle required
The value.

Returns

ExcelTableOptions The same instance.

Examples

// C# initializer or property                                       // C# fluent
new global::OfficeIMO.Excel.ExcelTableOptions { Style = value };    excelTableOptions.Style(value);