|
EvApplication > EvFile > EvRegionsCollection View the Echoview COM object hierarchy and the Echoview summary of COM objects. |
The EvRegionsCollection object gives you access to information about the set of regions defined, and the ability to import region definitions into an EV file. A region is an item in the EvRegionsCollection, which is accessed via the EvFile.Regions[] property.
The EvRegion object allows you to find specific information or modify specific information about a region in the EvRegionsCollection.
The following EvRegionsCollection methods and properties are detailed below:
|
ExportDefinitions |
Count |
EvRegionsCollection implements the following methods and properties:
|
Description |
|
|
FindByName |
FindByName(string RegionName) SummaryFind the Region object specified by RegionName in the RegionsCollection. Note: When two regions have the same name, the first one found is used. ReturnNull if RegionName can not be found. |
|
ExportDefinitions |
boolean ExportDefinitions(string FileName) SummaryExport the region definition of all regions (in the EV file) to the specified filename. Notes:
Parameters
ReturnTrue if successful. |
|
Delete |
boolean Delete(EvRegion RegionToDelete) SummaryDelete the Region object specified by the parameter RegionToDelete. The Region object is accessed through EvFile.Regions. ReturnIf successful. Example
|
|
DeleteByClass |
boolean DeleteByClass(EvRegionClass Class) SummaryDelete the regions in a Region class specified by Class. The Class parameter is a EvRegionClass object accessed through EvFile.RegionClasses. ReturnIf successful. Example
Option Explicit
Dim EvApp: Set EvApp = CreateObject("EchoviewCom.EvApplication")
Dim EvFile
Set EvFile = EvApp.EvFiles.Item(0)
Dim RC
Set RC = EvFile.RegionClasses.FindByName("Class1")
EvFile.Regions.DeleteByClass(RC)
|
|
Description |
|
|
Count |
(read-only) integer Count SummaryGet the number of regions in the collection. |
|
Item |
(read-only) Item[] SummaryGives access to a specific region in the EvRegionsCollection by index. Indexes are zero-based, so valid indexes are from 0 to Count-1. The result is an EvRegion object. Item is the default property for this interface. The examples on the EvFilesCollection page show several ways to use the Item property. |
Scripting with COM objects
EvRegion object
EvRegionClass object
EvRegionClassesCollection