JavaScript Editor JavaScript Editor     JavaScript Debugger

Previous Section Next Section

Main Page

Labels

We've discussed labels in the In Depth section of this chapter. Take a look at Table 5.11 to see the notable properties of the Label class. (There aren't any truly notable methods or events of this class that it doesn't inherit from the Control class.) This table does not include all the notable properties, methods, and events this class inherits from the Control class—you'll find them in Tables 5.1, 5.2, and 5.3.

Table 5.11: Noteworthy public properties of Label objects.

Property

Means

AutoSize

Sets/gets a value specifying if the control should be automatically resized to display all its contents.

BorderStyle

Sets/gets the border style for the control.

FlatStyle

Sets/gets the flat style appearance of the label control.

Image

Sets/gets the image that is displayed on a Label.

ImageAlign

Sets/gets the alignment of an image that is displayed in the control.

PreferredHeight

Gets the preferred height of the control.

PreferredWidth

Gets the preferred width of the control.

TextAlign

Sets/gets the alignment of text in the control.

UseMnemonic

Sets/gets a value specifying if the control treats an ampersand character (&) in the control's Text property to be an access key character.

Previous Section Next Section




JavaScript Editor Free JavaScript Editor     JavaScript Editor