|
|
|
SftMaskCaption.Text Property |
Defines the caption text.
Syntax
VB.NET |
String = object.Text As String |
||
VB |
String = object.Text As String |
||
C#.NET |
string String = object.Text; |
||
VC++ |
_bstr_t String = object->Text;
|
||
C |
HRESULT object->get_Text(BSTR* String); |
||
Delphi |
String := object.Text : WideString; |
||
VB.NET |
object.Text = String As String |
||
VB |
object.Text = String As String |
||
C#.NET |
string object.Text = String; |
||
VC++ |
_bstr_t object->Text = String;
|
||
C |
HRESULT object->put_Text(BSTR String); |
||
Delphi |
object.Text := String : WideString; |
object
A SftMaskCaption object.
String
Defines the caption text.
Comments
The Text property defines the caption text.
The caption can include an accelerator key. By using the & character in the Text property, the following character becomes an accelerator key. If the user types Alt plus the defined accelerator key, the control receives the input focus. For example, if the Text property is set to "Todays &Date", the displayed caption will read "Todays Date", i.e., the D is underlined. If the user types Alt+d, the edit control receives the input focus. To display an & character use "&&".
The caption area position and size are defined using a combination of the Caption.SizePercent or Caption.Width, Caption.Position and AutoSize properties. For a detailed description of the various combinations, please see the chapter Built-In Caption.