Table of Contents

Class CadDataLinkSettings

Namespace
OpenCAD2D
Assembly
OpenCAD2D.Core.dll

What the New Excel Data Link and Modify Excel Link dialogs collect: the link's name, the file, how its path is kept, which cells it takes, and the options of "More Options", whether the table takes the workbook's formatting and whether the link may write the table back to the file. A test fills it with no window.

public sealed class CadDataLinkSettings
Inheritance
CadDataLinkSettings
Inherited Members

Properties

AllowWritingToSource

Gets or sets whether the link may write the table's cells back to the file; true as the dialog opens.

File

Gets or sets the file, an .xlsx workbook or a .csv file, as a full path.

Name

Gets or sets the name of the link, as the Data Link Manager lists it.

NamedRange

Gets or sets the name of the named range.

PathType

Gets or sets how the file's path is written in the connection string.

Range

Gets or sets the cells of the range, A1:D10, A:A or A:D.

RangeKind

Gets or sets which cells the link takes.

Sheet

Gets or sets the sheet of the entire sheet or of the range; for a CSV file empty or its own name.

UseExcelFormatting

Gets or sets whether the table takes the workbook's alignment, fill and text colour; true as the dialog opens.

Methods

ConnectionString(string)

Gives the connection string the settings make, the file as its path type says and then the sheet, the named range or the sheet and the range.