Help Center

CTextRange2.SetLengthmethod

Windowsmethoddocumented

Syntax

FUNCTION SetLength (BYVAL Value AS LONG) AS HRESULT
Also documented as SetLenght — one description covers them all.

Parameters

NameDescription
ValueThe new length.

Return value

The method returns an HRESULT value. If the method succeeds, it returns S_OK. If the method fails, it returns S_FALSE.

Description

Sets the length of the range.

Reference

  • Defined in AfxNova/CTextRange2.inc:302
  • Documented in Windows/WIndows Controls/RichEdit/CTextRange2 Class.md
  • Topic: CTextRange2 Class