The SGLabelStyle class denotes a style object for labels created using the SGWorld.creator.createLabel() method.
Constructor
Name |
Description |
Initializes a new instance of SGLabelStyle. |
Properties
Name |
Description |
The text color of the label. |
|
The background color of the label. |
|
Boolean. Indicates if the label will have a line from its pivot to the ground. |
|
If the lineToGround is set to true, this property indicates the line color. |
|
String. The name of the label font. |
|
A number indicating the font size. |
|
Boolean. Indicates if the text is bold. |
|
Boolean. Indicates if the text is italic. |
|
Boolean. Indicates if the text is underlined. |
|
A URL to a file containing frame patterns for the label. |
|
Frame pattern index in the frame file. |
|
The maximum height, above which the label will not be seen. |
|
The minimum height, below which the label will not be seen. |
|
If the label has both text and image, this property indicates if the text will be over the image or outside the image. |
|
String. Determines the justification of a multiline label. |
|
If the label has both text and image, this property determines how the text will be aligned in relation to the image |
|
Determines the point on the label that will serve as its pivot |
|
Normally, a label is always facing the viewer. This property lets the client change this by making the label face in a specific direction or to lie on the terrain surface |