Sets the pen style for the legend layer.
Syntax: |
|---|
|
FWizLegend.SetPenStyle(penStyle = null) FWizLegend.SetPenStyle(styleIndex = -1) |
Parameters
| Parameter | Description |
|---|---|
| penStyle | A DlxPenStyle object with the style of the pen. |
| styleIndex | Index of the style. There are 10 styles available with indexes from 0 to 9. Specifying -1 sets the default style for the legend layer. |
Return Value
If an error occurs it returns false otherwise it returns true.
Example
Copy code
|
|
|---|---|
var ctx = FWiz.GetLegendCtx();
var pen = FWiz.GetPenStyle(5);
pen.SetWidth(0.2);
ctx.SetPenStyle(pen);
ctx.DrawLine(new DlxPoint(-5, 0), new DlxPoint(5, 0));
|
|
