Click or drag to resize
Ranorex

IDataContext Interface

Provides an interface for a context to enumerate through data from cascaded sources.

Namespace:  Ranorex.Core.Data
Assembly:  Ranorex.Core (in Ranorex.Core.dll) Version: 12.7.4-git.38314c06
Syntax
public interface IDataContext

The IDataContext type exposes the following members.

Properties
  NameDescription
Public propertyAvailableDataColumnNames
Gets a list of available data column names.
Public propertyCurrentRow
Gets the row the data context is currently positioned at.
Public propertyCurrentRowIndex
Gets the index of the current row.
Public propertyEffectiveRow
Gets the effective row the context is currently positioned at, that is the CurrentRow of this context concatenated with the current rows of all ancestor contexts.
Public propertyItem
Gets the value from the specified variable name.
Public propertyParameters
Gets the parameters set for this context.
Public propertyParent
Gets or sets the parent data context.
Public propertySource
Gets or sets the data source associated with this context.
Top
Methods
  NameDescription
Public methodClearData
Clears the data from the data Source associated with this context.
Public methodGet(IDataBindingInfo)
Gets the data value for the specified data binding info
Public methodGet(String)
Gets the data value for the specified variable name.
Public methodGetDataRangeInvalidString(Int32, Int32)
Checks if the data range is valid and returns an error message (using one-based indexing) if it is not.
Public methodGetDataRangeInvalidString(Int32, Int32, Boolean)
Checks if the data range is valid and returns an error message if it is not.
Public methodNext
Advances the context and its ancestors to the next data row.
Public methodNext(Boolean)
Advances the context to the next data row.
Public methodReloadData
Reloads the data from the data Source associated with this context and reloads data in ancestor contexts, too.
Public methodReloadData(Boolean)
Reloads the data from the data Source associated with this context and optionally reloads data in ancestor contexts, too.
Public methodRemoveParameter
Removes the parameter with the specified name from this context.
Public methodReset
Resets the data context, i.e. sets the context to its initial position which is before the first data row, and also its ancestors.
Public methodReset(Boolean)
Resets the data context, i.e. sets the context to its initial position which is before the first data row, and optionally also its ancestors.
Public methodSetFullRange
Instructs the data context to enumerate all rows in the data Source.
Public methodSetParameter
Sets a parameter value for this context.
Public methodSetRange(DataRange)
Sets the range of rows in the data Source that should be enumerated.
Public methodSetRange(Int32, Int32)
Sets the range of rows in the data Source that should be enumerated.
Top
See Also