Click or drag to resize
Ranorex

ExcelDataConnector Class

Provides access to data in an Excel file.
Inheritance Hierarchy
SystemObject
  Ranorex.Core.DataDataConnector
    Ranorex.Core.DataFileDataConnector
      Ranorex.Core.DataExcelDataConnector

Namespace:  Ranorex.Core.Data
Assembly:  Ranorex.Plugin.Office (in Ranorex.Plugin.Office.dll) Version: 12.7.4-git.38314c06
Syntax
public class ExcelDataConnector : FileDataConnector

The ExcelDataConnector type exposes the following members.

Constructors
  NameDescription
Public methodExcelDataConnector(XmlNode)
Initializes a new instance of the ExcelDataConnector class.
Public methodExcelDataConnector(String, String, String, String, CheckState)
Initializes a new instance of the ExcelDataConnector class.
Top
Properties
  NameDescription
Public propertyFileName
Gets or sets the name of the file.
(Inherited from FileDataConnector.)
Public propertyId
Gets or sets the unique ID of the source.
(Inherited from DataConnector.)
Public propertyIncludeFile
Gets or sets a value specifying whether the file should be included into the associated project.
(Overrides FileDataConnectorIncludeFile.)
Public propertyIsReadOnly
Gets or sets a value indicating whether this instance is read-only.
(Inherited from DataConnector.)
Public propertyName
Gets or sets the name of the source.
(Inherited from DataConnector.)
Public propertyResolvedFileName
Gets the name of the resolved file that takes relative paths into account.
(Inherited from FileDataConnector.)
Public propertyWorksheetName
Gets or sets the name of the worksheet.
Public propertyWorksheetRange
Gets or sets the worksheet range.
Public propertyXmlIdentifier
Gets the unique identifier for serialization and deserialization purposes as well as factory creation.
(Overrides DataConnectorXmlIdentifier.)
Top
Methods
  NameDescription
Public methodStatic memberCloseWorkBook
Closes the workbook wrapped by the IWorkbookContext
Public methodDispose
Clean up any resources being used.
(Inherited from DataConnector.)
Protected methodDispose(Boolean)
Clean up any resources being used.
(Inherited from DataConnector.)
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodStatic memberGetActiveWorkSheetName
Gets an active work sheet name of the specified workbookFilename.
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodStatic memberGetWorkbookContext
This method is used internally to get a disposable workbook context. It is not intended for to be used in your code.
Public methodStatic memberGetWorkSheetNames
Gets a list containing the work sheet names of the specified workbookFilename.
Public methodStatic memberGetWorkSheetRangeNames
Gets a list of valid ranges from the specified the work sheet.
Public methodGetXMLNode
Gets an XML node containing the definition of this source.
(Inherited from DataConnector.)
Protected methodGetXMLNodeDerived(XmlNode)
Add DataSource specific information from derived classes to the node
(Inherited from DataConnector.)
Protected methodGetXMLNodeDerived(XmlNode)
Add DataSource specific information from derived classes to the node
Public methodStatic memberIsExcelInstalled
Determines whether Microsoft Excel is installed on this machine.
Public methodStatic memberIsRangeValid
Determines whether the specified range is a valid range in the specified workSheetName in the work book workbookFilename.
Public methodStatic memberIsWorkBookValid
Determines whether the specified workbookFilename is a valid work book.
Public methodStatic memberIsWorkSheetValid
Determines whether the specified workSheetName is a valid work sheet in the specified workbookFilename.
Public methodLoadColumns
Loads the data columns from the source.
(Inherited from DataConnector.)
Protected methodLoadColumnsImpl(ColumnCollection)
Loads the data columns from the source.
(Overrides DataConnectorLoadColumnsImpl(ColumnCollection).)
Protected methodLoadColumnsImpl(ColumnCollection, Int32)
Loads the data columns and number of rows from the source.
(Overrides DataConnectorLoadColumnsImpl(ColumnCollection, Int32).)
Public methodLoadData
Loads the data from the source.
(Inherited from DataConnector.)
Protected methodLoadDataImpl
Loads the data from the source.
(Overrides FileDataConnectorLoadDataImpl(ColumnCollection, RowCollection).)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Protected methodOnFileNameChanged
Called when the filename changes
(Inherited from FileDataConnector.)
Public methodStoreData
Stores the data to the data source.
(Inherited from DataConnector.)
Protected methodStoreDataImpl
Stores the data to the data source. Currently not supported.
(Overrides DataConnectorStoreDataImpl(ColumnCollection, RowCollection).)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Fields
  NameDescription
Public fieldStatic memberAutoRangeLocalizedString
Translation of AutoRange property for UI Localization
Public fieldStatic memberFactorySerializationKey
The unique key for serialization and factory creation (see XmlIdentifier).
Top
Remarks
Microsoft Excel needs to be installed in order to use this source.
See Also