CRichEditCtx.LimitTextproperty
Gets/sets the current text limit for a rich edit control.
Syntax
PRIVATE PROPERTY CRichEditCtx.LimitText () AS LONG
Parameters
| Name | Description | |
|---|---|---|
chMax | (SET) The maximum number of characters the user can enter. If this parameter is zero, the text length is set to 64,000 characters. |
Return value
(GET) The return value is the text limit.
(SET) The set property does not return a value.
Description
Gets/sets the current text limit for a rich edit control. The text limit is the maximum amount of text that the user can type into the edit control.
Remarks
(SET) LimitText limits only the text the user can enter. It does not affect any text already in the edit control when the message is sent, nor does it affect the length of the text copied to the edit control by the Text property. If an application uses the Text property to place more text into an edit control than is specified by the LimitText property, the user can edit the entire contents of the edit control.
Example
(GET) PROPERTY LimitText () AS LONG (SET) PROPERTY LimitText (BYVAL chMax AS DWORD)
Reference
- Defined in AfxNova/CRichEditCtx.inc:1358
- Documented in Windows/WIndows Controls/RichEdit/CRichEditCtx Class.md
- Topic: CRichEditCtx Class