Rectangle Object Members

Access Developer Reference

This object corresponds to a rectangle control. The rectangle control displays a rectangle on a form or report.

Methods

  Name Description
Bb257415.methods(en-us,office.12).gif Move Moves the specified object to the coordinates specified by the argument values.
Bb257415.methods(en-us,office.12).gif SizeToFit You can use the SizeToFit method to size a control so it fits the text or image that it contains.

Properties

  Name Description
Bb257415.properties(en-us,office.12).gif Application You can use the Application property to access the active Microsoft Access Application object and its related properties. Read-only Application object.
Bb257415.properties(en-us,office.12).gif BackColor Gets or sets the interior color of the specified object. Read/write Long.
Bb257415.properties(en-us,office.12).gif BackStyle You can use the BackStyle property to specify whether a control will be transparent. Read/write Byte.
Bb257415.properties(en-us,office.12).gif BorderColor You can use the BorderColor property to specify the color of a control's border. Read/write Long.
Bb257415.properties(en-us,office.12).gif BorderStyle Specifies how a control's border appears.Read/write Byte.
Bb257415.properties(en-us,office.12).gif BorderWidth You can use the BorderWidth property to specify the width of a control's border. Read/write Byte.
Bb257415.properties(en-us,office.12).gif ControlType You can use the ControlType property in Visual Basic to determine the type of a control on a form or report. Read/write Byte.
Bb257415.properties(en-us,office.12).gif DisplayWhen You can use the DisplayWhen property to specify which of a form's controls you want displayed on screen and in print. Read/write Byte.
Bb257415.properties(en-us,office.12).gif EventProcPrefix Gets or sets the prefix portion of an event procedure name. Read/write String.
Bb257415.properties(en-us,office.12).gif Height Gets or sets the height of the specified object in twips. Read/write Integer.
Bb257415.properties(en-us,office.12).gif HorizontalAnchor Gets or sets an AcHorizontalAnchor constant that indicates how the rectangle is anchored horizontally within its layout. Read/write.
Bb257415.properties(en-us,office.12).gif InSelection You can use the InSelection property to determine or specify whether a control on a form in Design view is selected. Read/write Boolean.
Bb257415.properties(en-us,office.12).gif IsVisible You can use the IsVisible property in to determine whether a control on a report is visible. Read/write Boolean.
Bb257415.properties(en-us,office.12).gif Left You can use the Left property to specify an object's location on a form or report. Read/write Integer.
Bb257415.properties(en-us,office.12).gif Name You can use the Name property to specify or determine the string expression that identifies the name of an object. Read/write String.
Bb257415.properties(en-us,office.12).gif OldBorderStyle You can use this property to set or returns 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. Read/write Byte.
Bb257415.properties(en-us,office.12).gif OnClick Sets or returns the value of the On Click box in the Properties window. Read/write String.
Bb257415.properties(en-us,office.12).gif OnDblClick Sets or returns the value of the On Dbl Click box in the Properties window. Read/write String.
Bb257415.properties(en-us,office.12).gif OnMouseDown Sets or returns the value of the On Mouse Down box in the Properties window. Read/write String.
Bb257415.properties(en-us,office.12).gif OnMouseMove Sets or returns the value of the On Mouse Move box in the Properties window. Read/write String.
Bb257415.properties(en-us,office.12).gif OnMouseUp Sets or returns the value of the On Mouse Up box in the Properties window. Read/write String.
Bb257415.properties(en-us,office.12).gif Parent Returns the parent object for the specified object. Read-only.
Bb257415.properties(en-us,office.12).gif Properties Returns a reference to a control's Properties collection object. Read-only.
Bb257415.properties(en-us,office.12).gif Section You can identify these controls by the section of a form or report where the control appears. Read/write Integer.
Bb257415.properties(en-us,office.12).gif SpecialEffect You can use the SpecialEffect property to specify whether special formatting will apply to the specified object. Read/write Byte.
Bb257415.properties(en-us,office.12).gif Tag Stores extra information about a form, report, section, or control needed by a Microsoft Access application. Read/write String.
Bb257415.properties(en-us,office.12).gif Top You can use the Top property to specify an object's location on a form or report. Read/write Integer.
Bb257415.properties(en-us,office.12).gif VerticalAnchor Gets or sets an AcVerticalAnchor constant that indicates how the specified rectangle is anchored vertically within its layout. Read/write.
Bb257415.properties(en-us,office.12).gif Visible Returns or sets whether the object is visible. Read/write Boolean.
Bb257415.properties(en-us,office.12).gif Width Gets or sets the width of the specified object in twips. Read/write Integer.

Events

  Name Description
Bb257415.events(en-us,office.12).gif Click The Click event occurs when the user presses and then releases a mouse button over an object.
Bb257415.events(en-us,office.12).gif DblClick The DblClick event occurs when the user presses and releases the left mouse button twice over an object within the double-click time limit of the system.
Bb257415.events(en-us,office.12).gif MouseDown The MouseDown event occurs when the user presses a mouse button.
Bb257415.events(en-us,office.12).gif MouseMove The MouseMove event occurs when the user moves the mouse.
Bb257415.events(en-us,office.12).gif MouseUp The MouseUp event occurs when the user releases a mouse button.