Class Line (Access VBA)

The line control displays a horizontal, vertical, or diagonal line on a form or report.

Methods

Move - Moves the specified object to the coordinates specified by the argument values.

SizeToFit - You can use the SizeToFit method to size a control so that it fits the text or image that it contains.

Properties

BorderColor you can use the BorderColor property to specify the color of a control's border.

BorderShade gets or sets the shade that is applied to the theme color in the BorderColor property of the specified object.

BorderStyle specifies how a control's border appears.

BorderThemeColorIndex gets or sets a value that represents a color in the applied color theme associated with the BorderColor property of the specified object.

BorderTint gets or sets the tint that is applied to the theme color in the BorderColor property of the specified object.

BorderWidth you can use the BorderWidth property to specify the width of a control's border.

ControlType you can use the ControlType property in Visual Basic to determine the type of control on a form or report.

DisplayWhen you can use the DisplayWhen property to specify which of a form's controls you want displayed on screen and in print.

EventProcPrefix gets or sets the prefix portion of an event procedure name.

Height gets or sets the height of the specified object in twips.

HorizontalAnchor gets or sets an AcHorizontalAnchor constant that indicates how the line is anchored horizontally within its layout.

InSelection you can use the InSelection property to determine or specify whether a control on a form in Design view is selected.

IsVisible you can use the IsVisible property to determine whether a control on a report is visible.

Left you can use the Left property to specify an object's location on a form or report.

LineSlant you use the LineSlant property to specify whether a line control slants from upper-left to lower-right or from upper-right to lower-left.

Name you can use the Name property to specify or determine the string expression that identifies the name of an object.

OldBorderStyle you can use this property to set or return the unedited value of the BorderStyle property for a form or control. This property is useful if you need to revert to an unedited or preferred border style.

Properties returns a reference to a control's Properties collection object.

Section you can identify these controls by the section of a form or report where the control appears.

SpecialEffect you can use the SpecialEffect property to specify whether special formatting will apply to the specified object.

Tag stores extra information about a form, report, section, or control needed by a Microsoft Access application.

Top you can use the Top property to specify an object's location on a form or report.

VerticalAnchor gets or sets an AcVerticalAnchor constant that indicates how the specified line is anchored vertically within its layout.

Visible returns or sets whether the object is visible.

Width gets or sets the width of the specified object in twips.

Properties - The Properties collection contains all the built-in properties in an instance of an open form, report, or control. These properties uniquely characterize that instance of the object.