API Documentation > CorelDRAW > 2025-v26 > TextRange > IVGTextRange
TextRange.SetOpenTypeFeature method
Changes the state of the OpenType feature for the text range
Syntax:
Sub SetOpenTypeFeature(ByVal Feature As String, ByVal State As Long)
Parameters:
Name Type Description
Feature
String
State
Long
Remarks:
The SetOpenTypeFeature method changes the state of the OpenType feature applied to the text range.