psTypeFace - DFBaseTextEdit
Sets or returns font typeface of all text in control
Type: Property
Access: Read/Write
Data Type: String
Parameters: None
Syntax
Property String psTypeFace
| Access Type | Syntax |
|---|---|
| Read Access: | Get psTypeFace to StringVariable |
| Write Access: | Set psTypeFace to StringVariable/Value |
Description
Sets or returns the font typeface of all text in the control.
Sample
This sample returns the typeface of the text in control oTextEdit1 to variable sTypeFace and then displays it in a message box to the user.
Procedure SetTypeFace
string sTypeFace
get psTypeFace of oTextEdit1 to sTypeFace
send Info_Box sTypeFace "Current TypeFace"
End_Procedure // SetTypeFace
Sample
This sample sets the typeface of the text of control oRichEdit1 to Courier.
Procedure SetTypeFace
set psTypeFace of oTextEdit1 to "Courier"
End_Procedure // SetTypeFace