## siTextEditorCapability

### Introduced

v7.0

### Description

Determines the availability of the File menu functions for a text editor widget control (siControlTextEditor). By default, if you display the toolbar (explicitly set the siUIToolbar attribute to true), every function (entry) in the menu will be enabled. However, you can disable the loading and saving functions by setting the siUICapability attribute to one of these values.
Note: Using these values does not affect the Edit menu at all nor does it change the availability of the rest of the File menu functions (Recent Files, Preferences, and Print).

### C# Syntax

    siTextEditorCapability.siNoSaveLoad                                         // 0
    siTextEditorCapability.siCanSave                                            // 2
    siTextEditorCapability.siCanLoad                                            // 4

Constant | Value | Description
--- | --- | ---
siNoSaveLoad | 0 | Disables the following options in the File menu: New, Open, Save, Save As, Save Selection.
siCanSave | 0x00000002 | Disables the following options in the File menu: Save, Save As, Save Selection.
siCanLoad | 0x00000004 | Disables the following options in the File menu: New, Open.

### Applies To

PPGItem.GetAttribute PPGItem.SetAttribute PPGItem::GetAttribute PPGItem::PutAttribute

### See Also

siUICapability Text Editor Widget