Graphisoft®

API Development KitVersion: 18

VectorImage::AddTextRec


Adds a text to the VectorImage.


GSErrCode  AddTextRec (
    const Sy_TextType&  text,
    const GSPtr         conPtr,
    const GSPtr         lstPtr
);

Parameters

text
The text to be added.
conPtr
The text string content with an ending zero (C style).
lstPtr
The line start indices in shorts. The size should be ([count of lines] + 1) * [sizeof (short) = 4]. The last index should be the length of the whole string.

Return value

If the function succeeds, the return value is NoError. If the function fails, the return value is the error code.

Description

All of the fields of the structure should be filled, this function won't update any of them.
Addition always merges the new record to the end of the primitives list but drawing order can differ from placing order.

Requirements

Version:API 10.0 or later, ModelerGraphics 8 or later
Library:ModelerGraphicsImp.lib (Win) or ModelerGraphics.framework (Mac)
Header:VectorImage.hpp