[]
Adds a new ILabel.
Use this method to place a label control on the worksheet by specifying its position and size.
ILabel AddLabel(double left, double top, double width, double height)
Function AddLabel(left As Double, top As Double, width As Double, height As Double) As ILabel
| Type | Name | Description |
|---|---|---|
| double | left | The distance between the left edge of the worksheet and the label. |
| double | top | The distance between the top edge of the worksheet and the label. |
| double | width | The width of the label. |
| double | height | The height of the label. |
| Type | Description |
|---|---|
| ILabel | The newly added label control. |
ILabel label = worksheet.Controls.AddLabel(20, 20, 100, 24);
label.Text = "Resolution";