Help Center

CTextRange2.SetLenghtmethod

Sets the length of the range.

Windowsmethoddoc-orphan
No implementation located. This member is documented, but the source scan found no matching declaration. It is likely declared in a header this scan does not resolve, or provided by a macro.

Syntax

FUNCTION SetLength (BYVAL Value AS LONG) AS HRESULT

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

  • Documented in Windows/WIndows Controls/RichEdit/CTextRange2 Class.md
  • Topic: CTextRange2 Class