Skip to content
This repository has been archived by the owner on Nov 16, 2023. It is now read-only.

Latest commit

 

History

History
52 lines (29 loc) · 1.31 KB

label-rightmargin-property-access.md

File metadata and controls

52 lines (29 loc) · 1.31 KB
title keywords f1_keywords ms.prod api_name ms.assetid ms.date
Label.RightMargin Property (Access)
vbaac10.chm10237
vbaac10.chm10237
access
Access.Label.RightMargin
03a7e1fa-bf05-dc29-be2f-f79f761d870d
06/08/2017

Label.RightMargin Property (Access)

Along with the TopMargin, Left Margin, and BottomMargin properties, specifies the location of information displayed within a label control. Read/write Integer.

Syntax

expression. RightMargin

expression A variable that represents a Label object.

Remarks

A control's displayed information location is measured from the control's left, top, right, or bottom border to the left, top, right, or bottom edge of the displayed information. To use a unit of measurement different from the setting in the regional settings of Windows, specify the unit (for example, cm or in).

In Visual Basic, use a numeric expression to set the value of this property. Values are expressed in twips.

Example

The following example offsets the caption in the label "EmployeeID_Label" in the "Purchase Orders" form by 100 twips from the right of the label's border.

With Forms.Item("Purchase Orders").Controls.Item("EmployeeID_Label") 
 .RightMargin = 100 
End With

See also

Concepts

Label Object