|
|
|
SftButton.Text Property |
Defines the control's caption.
Syntax
VB.NET |
Text = object.Text As String |
||
VB |
Text = object.Text As String |
||
C#.NET |
string Text = object.Text; |
||
VC++ |
_bstr_t Text = object->Text;
|
||
C |
HRESULT object->get_Text(BSTR* Text); |
||
Delphi |
Text := object.Text : WideString; |
||
VB.NET |
object.Text = Text As String |
||
VB |
object.Text = Text As String |
||
C#.NET |
string object.Text = Text; |
||
VC++ |
_bstr_t object->Text = Text;
|
||
C |
HRESULT object->put_Text(BSTR Text); |
||
Delphi |
object.Text := Text : WideString; |
object
A SftButton object.
Text
Defines the control's caption.
Comments
The Text property defines the control's caption.
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 and the Click event occurs.
For example, if the Text property is set to “&Help”, the displayed caption will read "Help", i.e., the H is underlined. If the user types Alt+h, the Click event occurs. To display an & character use "&&".
If the AllowFocus property is set to False, the control does not support accelerator keys.
The text component of the button label can contain more than one line of text. By using carriage-return and line-feed characters, multiple lines can be defined.
The layout of the button label and the position and alignment of the text component are defined using the Orientation, TextAlignHorz and Image1AlignVert properties.
For detailed information on the use of the Orientation, Image1, Image1AlignHorz, Image1AlignVert, Image2, Image2AlignHorz, Image2AlignVert, Text, TextAlignHorz, TextAlignVert properties, please see "Button Label".