Help Center

CTextRange2.SetStartmethod

Sets the character position for the start of this range.

Windowsmethoddocumented

Syntax

FUNCTION SetStart (BYVAL cpFirst AS LONG) AS HRESULT

Parameters

NameDescription
cpFirstThe new character position for the start of the range.

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 character position for the start of this range.

Reference

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