Type | Description | |||
Name as EditorOptionEnum | An EditorOptionEnum expression that indicates the editor's option being changed. | |||
Variant | A Variant expression that indicates the value for editor's option |
The following sample adds a password editor:
With XMLGrid1 .BeginUpdate With .Editors.Add("Password", EditType) .Option(exEditPassword) = True End With With .Nodes With .Add("Password", "") .Editor = "Password" End With End With .EndUpdate End With
The following sample specifies that the editor "A" requires all arrow keys. By default, the control uses the arrow key to navigate through the nodes.
With XMLGrid1 .BeginUpdate With .Editors.Add("A", EditType) .Option(exLeftArrow) = False .Option(exRightArrow) = False .Option(exUpArrow) = False .Option(exDownArrow) = False .Option(exHomeKey) = False .Option(exEndKey) = False End With With .Nodes With .Add("Use Arrow Keys", "swssw") .Editor = "A" End With End With .EndUpdate End With