Maptitude GISDK Help |
Creates a sample text object for use in a menu or dialog box.
sample_text = SampleText(string text, string font, array options)
Argument |
Contents |
text |
The text in the sample |
font |
The name and size of the font |
Option |
Type |
Contents |
Size |
2 reals |
The width and height (in points) of a rectangle in which the sample can be displayed |
Color |
Color |
The color of the text |
A sample text object.
Sample text objects can be used to preview how text will look from within a menu or dialog box.
sample_text = SampleText("Layer", "Arial|Bold|12", {{"Size", x, y}, {"Color", ColorRGB(0, 0, 0)}})
Error Type |
Meaning |
Error |
The type or one of the options is not valid |
Function |
Summary |
Gets a sample object indicating how features in a layer or selection set display on a map |
|
Gets sample objects indicating how features in a theme display on a map. |
|
Creates a sample line object for use in a menu or dialog box |
|
Creates a sample area object for use in a menu or dialog box |
|
Creates a sample point object for use in a menu or dialog box |
|
Creates a sample text object for use in a menu or dialog box |
|
Creates a sample object based on an input sample with the specified text for use in a menu or dialog box |
©2025 Caliper Corporation | www.caliper.com |