回复 13楼iceman的帖子
Active X 的帮助文件里:
TXTextControl.FontSize Property
Returns or sets a value that specifies the size of the font used to display text. This value is in points. At design time this property changes or gets the font size of the complete text. At runtime this property determines the font size of the selected text when the FormatSelection property has been set to True. When the FormatSelection property has been set to False the font size of the complete text is set or returned.
Syntax
TXTextControl.FontSize [= value]
Remarks
The property returns 0 if the selected text contains fonts with different sizes. This can happen only at runtime and when the FormatSelection property has been set to True.
Data Types
Integer.
================你看data types是integer型。我在程序里写成10.5的话,也是自动被默认成10的。 |