TdxRichEditControlToggleFieldCodes Class
An action object that corresponds to the ToggleFieldCodes command provided by the Rich Edit control.
Declaration
TdxRichEditControlToggleFieldCodes = class(
TdxRichEditControlAction
)
Remarks
This class does not introduce any new public members. Executing a TdxRichEditControlToggleFieldCodes action object switches the currently selected document field between the value and code display modes.
UI elements linked to a TdxRichEditControlToggleFieldCodes action object are visible only if the following conditions are met:
The Rich Edit control’s Options.DocumentCapabilities.Fields property is set to TdxDocumentCapability.Default or TdxDocumentCapability.Enabled;
Either the caret is located within a document field or a single document field is included in the current selection.
To localize the caption and hint displayed by UI elements linked to a TdxRichEditControlToggleFieldCodes action object, use the sdxRichEditCommandToggleFieldCodesMenuCaption and sdxRichEditCommandToggleFieldCodesDescription resource strings, respectively.
Note
Normally, a TdxRichEditControlToggleFieldCodes action object is used to implement the ToggleFieldCodes command in context menus.