19.12.2012 Views

Computer Programming Concepts and Visual Basic David I. Schneider

Computer Programming Concepts and Visual Basic David I. Schneider

Computer Programming Concepts and Visual Basic David I. Schneider

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

FONT.ITALIC or FONTITALIC These properties determine whether or not the characters<br />

Printed on a form, picture box, or printer, or assigned to a text box, comm<strong>and</strong> button, or label<br />

appear in italic or upright type. If the property is set to True, then for a form, picture box, or<br />

printer, subsequent characters appear in italic. For a text box, comm<strong>and</strong> button, or label, the<br />

text or caption is immediately changed to italic. If the property is set to False (the default),<br />

subsequent characters are Printed in upright type <strong>and</strong> characters assigned to the text or caption<br />

property change immediately to upright type.<br />

FONT.NAME or FONTNAME These properties determine what type face is used when<br />

characters are Printed on a form, picture box, or printer, or assigned to a text box, comm<strong>and</strong><br />

button, or label. If the property of a form, picture box, or printer is set to a font obtained from<br />

the Fonts property, all subsequently Printed characters will appear in the new type face.<br />

When the property of a text box, comm<strong>and</strong> button, or label is set to a new font, characters<br />

assigned to the text or caption property change immediately to the new type face.<br />

FONTS The value of the property Screen.Fonts(fontNum) is the name of a screen font available<br />

in the current Windows environment. The index fontNum can range from 0 to<br />

Screen.FontCount–1. Similarly, the value of the property Printer.Fonts(fontNum) is the name<br />

of an available printer font. The values in the Fonts property are set by your Windows environment<br />

<strong>and</strong> are generally used to determine which fonts are available for setting the Font-<br />

Name property.<br />

FONT.SIZE or FONTSIZE These properties determine the size, in points, of characters<br />

Printed on forms, picture boxes, <strong>and</strong> the printer or displayed in text boxes <strong>and</strong> on comm<strong>and</strong><br />

buttons <strong>and</strong> labels. Available font sizes depend on your Windows environment, but will<br />

always be between 1 <strong>and</strong> 2048. Default font sizes are usually between 8 <strong>and</strong> 12 point. Note:<br />

One point equals 1/72nd of an inch.<br />

FONT.STRIKETHROUGH or FONTSTRIKETHRU These properties determine whether or<br />

not the characters Printed on a form, picture box, or printer, or assigned to a text box, comm<strong>and</strong><br />

button, or label appear in a strikethru or st<strong>and</strong>ard font. If the property is set to True,<br />

then for a form, picture box, or printer, subsequent Printed characters appear with a horizontal<br />

line through the middle of each character. For a text box, comm<strong>and</strong> button, or label,<br />

the text or caption is immediately changed so that a horizontal line goes through the middle<br />

of each character. If the property is set to False (the default), subsequent characters are Printed<br />

in st<strong>and</strong>ard type <strong>and</strong> characters assigned to text or caption property change immediately<br />

to st<strong>and</strong>ard type.<br />

FONTTRANSPARENT The property FontTransparent determines the degree to which characters<br />

Printed to forms <strong>and</strong> picture boxes obscure existing text <strong>and</strong> graphics. If the Font-<br />

Transparent property is set to True (the default), the existing text <strong>and</strong> graphics are obscured<br />

only by the dots (pixels) needed to actually form the new character. If the FontTransparent<br />

property is set to False, then all text <strong>and</strong> graphics are obscured within the character box<br />

(small rectangle surrounding a character) associated with the new character. Those dots (pixels)<br />

not needed to form the character are changed to the background color.<br />

FONT.UNDERLINE or FONTUNDERLINE These properties determine whether or not the<br />

characters printed on a form, picture box, or printer, or assigned to a text box, comm<strong>and</strong> button,<br />

or label appear with an underline. If the property is set to True, then for a form, picture<br />

box, or printer, subsequent characters Printed appear underlined. For a text box, comm<strong>and</strong><br />

button, or label, the text or caption is immediately changed to underlined. If the property is<br />

set to False (the default), subsequent characters are Printed without underlines characters<br />

assigned to the text or caption property change immediately to nonunderlined.<br />

FOR EACH/NEXT A multistatement block beginning with For Each var In arrayName <strong>and</strong><br />

ending with Next var, where arrayName is an array of type variant <strong>and</strong> var is a variant variable,<br />

executes the statements inside the block for each element of the array.<br />

Appendix C 433

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!