Gets the style of the text.
Syntax: |
|---|
| FWiz.GetTextStyle(styleIndex) |
Parameters
| Parameter | Description |
|---|---|
| styleIndex | Index of the style. There are 10 styles available with indexes from 0 to 9. |
Return Value
Returns a DlxTextStyle object.
Example
Copy code
|
|
|---|---|
function OnBuild2DImage()
{
var ctx = FWiz.Get2DImageCtx();
var style = FWiz.GetTextStyle(0);
style.SetStyle("Attribute Text");
ctx.SetTextStyle(style);
ctx.DrawText(new DlxPoint(0,0), "Hello, World.");
}
|
|
