Section Object Methods

Applies to TestComplete 15.70, last modified on December 17, 2024

The Section object contains the following methods:

Method List

Name Description
Clear Deletes the current section and all its subsections, keys and values.
DeleteSubSection Deletes a subsection from the current section.
DeleteSubSectionByIndex Deletes a subsection specified by its index from the current section.
GetOption Returns the value of an option in the current section.
GetOptionByIndex Returns the value of an option specified by its index.
GetOptionName Returns the name of an option in the current section.
GetOptionNames Returns the names of all options in the current section.
GetSectionName Returns the name of a subsection in the current section.
GetSectionNames Returns the names of all subsections in the current section.
GetSubSection Returns the Section object for a subsection of the current section.
GetSubSectionByIndex Returns the Section object for a subsection specified by its index.
OptionExists Obtains whether an option belongs to the option list of the current section.
RemoveOption Deletes an option from the current section.
RemoveOptionByIndex Deletes an option specified by its index from the current section.
SetOption Sets a new value for an option of the current section.
SetOptionByIndex Sets a new value for an option specified by its index.
SubSectionExists Obtains whether a section belongs to the subsection list of the current section.

See Also

Section Object

Highlight search results