Active Users: 21 / Visits Today: 27
Highest Active Users: 21
Print Preview ActiveX
Home
|
Profile
|
Register
|
Active Topics
|
Members
|
Search
|
FAQ
|
RSS
Username:
Password:
Save Password
Forgot your Password?
All Forums
Print Preview
Help file
TextHeight - Function
New Topic
Topic Locked
Printer Friendly
Author
Topic
emiel
Administrator
Belgium
327 Posts
Posted - 07/24/2005 : 12:07:05
Function TextHeight
Action:
This Function returns the height of a text string using the current font in twips.
Syntax:
TextHeight
(
strText
As String ) As Long
Remarks:
The value returned is the height in twips of the specified string, depending on the current font (Name, Size) properties.
In general all characters of a font have the same height.
Example:
The following code:
lTxtHgt =
Preview.TextHeight
("A line")
lTxtUcHgt =
Preview.TextHeight
("A")
lTxtLcHgt =
Preview.TextHeight
("a")
Preview.AddText = "TextLine height is " & str(lTxtHgt) & " twips"
Preview.AddText = "UpperCase height is " & str(lTxtUcHgt) & " twips"
Preview.AddText = "Lowercase height is " & str(lTxtLcHgt) & " twips"
produces in most cases:
TextLine height is 200 twips
UpperCase height is 200 twips
LowerCase height is 200 twips
See also:
TextWidth
Come and visit :
www.immoassist.com
www.ppreview.net
www.vbdiamond.com
www.d2dsources.com
www.mandix.com
Topic
New Topic
Topic Locked
Printer Friendly
Jump To:
Select Forum
Print Preview
Patches and beta to download
Download the latest version of Print Preview
Questions about Print Preview
Suggestions & Enhancments
Tips & Tricks
Bugs
Help file
Sample of use in other langages than VB
New features, API, Methods description
Beta Testers
--------------------
Home
Active Topics
Frequently Asked Questions
Member Information
Search Page
Print Preview ActiveX
© Mandix
This page was generated in 0.08 seconds.