Macro Reference — CharacterRanges Collection — AddCharacterRange Method (CharacterRanges Collection)

# AddCharacterRange Method (CharacterRanges Collection)

Adds a character range.

##

### [JavaScript]

    list.AddCharacterRange( nMin, nMax, sProperties, sTreatAs );

### [VBScript]

    list.AddCharacterRange nMin, nMax, sProperties, sTreatAs

## Parameters

nMin

Specifies the minimum character of a range.

nMax

Specifies the maximum character of a range.

sProperties

Specifies a string representing Unicode Script and/or Unicode General Category properties.

sTreatAs

Specifies a string to be substituted for. If an empty string is specified, the specified range will be ignored.

## Version

Supported on EmEditor Professional Version 22.0 or later.