FontEx Interface Reference

FontEx object represents the color and other options used to draw text. More...

Inheritance diagram for FontEx:

Inheritance graph
Collaboration diagram for FontEx:

Collaboration graph
List of all members.

Properties

VARIANT_BOOL RW Italic []
 Specifies that the font is an italic font.
VARIANT_BOOL RW Underline []
 Specifies that the font is an underlined font.
VARIANT_BOOL RW Strikethrough []
 Specifies that the font is an strikeout font.
VARIANT_BOOL RW Bold []
 Specifies that the font is an bold font.
SHORT RW Weight []
 Specifies the weight of the font.
BSTR RW Name []
 Specifies the name of the font.
CY RW Size []
 Specifies the size of the font.
SHORT RW CharSet []
 Specifies the charset of the font.
LONG RW Angle []
 Specifies the angle, that used for drawing text.

Detailed Description

FontEx object represents the color and other options used to draw text.

Example:

o = new ActiveXObject("Scripting.WindowSystemObject")

o.EnableVisualStyles = true

f = o.CreateForm(0,0,0,0)

f.Text = "WSO"
f.ClientWidth = 200
f.ClientHeight = 100
f.CenterControl()

Text = f.TextOut(10,10,"Test Message")

with (Text.Font)
{
        Bold = true
        Name = "Arial Black"
        Size = 14
        Color = 0x000000FF
        Bold = true
        Italic = true
        Angle = 5
}


f.Show()

o.Run()

Result:
Font.jpg


Property Documentation

LONG RW Angle

Specifies the angle, that used for drawing text.

Default value 0.

VARIANT_BOOL RW Bold

Specifies that the font is an bold font.

SHORT RW CharSet

Specifies the charset of the font.

This parameter can be a one of the following values:

VARIANT_BOOL RW Italic

Specifies that the font is an italic font.

BSTR RW Name

Specifies the name of the font.

CY RW Size

Specifies the size of the font.

VARIANT_BOOL RW Strikethrough

Specifies that the font is an strikeout font.

VARIANT_BOOL RW Underline

Specifies that the font is an underlined font.

SHORT RW Weight

Specifies the weight of the font.

The property value must be in the range 0 through 1000.


WSO 1.1 Documentation. Date modified:Wed Aug 12 18:12:36 2015. (C) Veretennikov A. B. 2004-2015