Help Center

CTextRange2.SetInlineObjectmethod

Sets the text of this range.

Windowsmethoddocumented

Syntax

FUNCTION SetInlineObject (BYVAL nType AS Long, BYVAL Align AS LONG, BYVAL Char AS LONG, BYVAL Char1 AS LONG, BYVAL Char2 AS LONG, BYVAL Count AS LONG, BYVAL TeXStyle AS LONG, BYVAL cCol AS LONG) AS HRESULT

Parameters

NameDescription
nTypeThe object type as defined in GetInlineObject.
AlignThe object alignment as defined in GetInlineObject.
CharThe object character as defined in GetInlineObject.
Char1The closing bracket (tomBrackets) character. See Unicode Technical Note 28 for a list of characters.
Char2The separator character for tomBracketsWithSeps, which can be one of the following values.
CountThe number of arguments in the inline object.
TeXStyleThe TeX style, as defined in GetInlineObject.
cColThe number of columns in the inline object. For tomMatrix only.

Return value

If the method succeeds, it returns NOERROR. Otherwise, it returns an HRESULT error code.

Description

Sets or inserts the properties of an inline object for a degenerate range.

Reference

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