Skip to content

ReplaceSmartLabelTextDataAsync

Description

Replaces the text data of the specified Smart Label object.

Syntax

public Task ReplaceSmartLabelTextDataAsync(int mapId, string text)

Warning

This method returns a Task. To ensure that the operation completes and any potential exceptions are properly captured, always call it with await. Omitting await may result in the operation being terminated midway or errors may go undetected.

Parameter

mapId

Specifies the map ID of the target object.
The map ID can be checked in the application's UI.

Text Object Map ID

text

The text content to replace the existing value with.