Condividi tramite


BorderStyle Property

Specifies the border style of an object. Available at design time and run time.

Object.BorderStyle[ = nStyle]

Return Value

  • nStyle
    For a CommandGroup, ComboBox, EditBox, Image, Label, OptionGroup, Spinner, or TextBox control, the settings for the BorderStyle property are:

    Setting

    Description

    0   

    None. Default for Image and Label controls.

    1   

    Fixed Single. Default for CommandGroup, EditBox, OptionGroup, and TextBox controls.

    For a line or shape, the settings for the BorderStyle property are:

    Setting

    Description

    0   

    Transparent

    1   

    (Default) Solid. The outer edge of the border is the outer edge of the Shape control.

    2   

    Dash

    3   

    Dot

    4   

    Dash-Dot

    5   

    Dash-Dot-Dot

    6   

    Inside Solid

    For a Form object, the settings for the BorderStyle property are:

    Setting

    Description

    0   

    No border

    1   

    Fixed Single

    2   

    Fixed Dialog

    3   

    (Default) Sizable

Remarks

Applies To: ComboBox Control | CommandGroup Control | EditBox Control | Form Object | Image Control (Visual FoxPro) | Label Control (Visual FoxPro) | Line Control | OptionGroup Control | _SCREEN System Variable | Shape Control | TextBox Control (Visual FoxPro) | Spinner Control

If the BorderWidth property setting is greater than 1, regardless of the BorderStyle setting, a solid border is drawn. If BorderWidth is set to 1, BorderStyle produces the effects described in the tables above.

See Also

Reference

BorderColor Property

BorderWidth Property

DrawStyle Property

DrawWidth Property

Other Resources

Properties (Visual FoxPro)

Language Reference (Visual FoxPro)