[]
Represents the common text-related members of form controls that display text.
Use this interface to work with text content shared by form controls such as IButton, ICheckBox, IGroupBox, ILabel, and IOptionButton. It provides members for reading or changing the displayed text and for controlling whether that text is locked.
public interface IContentControl : IControl
Public Interface IContentControl
Inherits IControl
IContentControl control = worksheet.Controls.AddLabel(20, 20, 120, 24);
control.Text = "Name";
control.LockedText = true;
string text = control.Text;
bool lockedText = control.LockedText;
| Name | Description |
|---|---|
| LockedText | Gets or sets whether the text is locked. Use this property to determine whether the displayed text of the control is currently locked. |
| Text | Gets or sets the text to display. Use this property to read the current text shown by the control. |