應用于 Label 和 TextBox 對象的 RightMargin 屬性。
與 TopMargin、Left Margin 和 BottomMargin 屬性一起,指定信息在標簽或文本框控件中的顯示位置。Integer 型,可讀寫。
expression.RightMargin
expression 必需。返回上述對象之一的一個表達式。
說明
控件顯示信息的位置是從控件的左、上、右或下端邊界到顯示信息的左、上、右或下端邊沿之間的距離。若要使用不同于 Windows 區(qū)域設(shè)置中設(shè)置的度量單位,請指定單位(例如,厘米或英寸)。
在 Visual Basic 中,使用數(shù)值表達式設(shè)置該屬性的值,值以緹為單位表示。
可以使用屬性表、宏或 Visual Basic 來設(shè)置這些屬性。
應用于 Printer 對象的 RightMargin 屬性。
與 TopMargin、LeftMargin 和 BottomMargin 屬性一起,指定打印頁的邊距。Long 型,可讀寫。
expression.RightMargin
expression 必需。返回 Printer 對象的表達式。
下面的示例從“Purchase Orders”窗體的“EmployeeID_Label”標簽的邊框右邊,將其中的標題偏移 100 緹。
With Forms.Item("Purchase Orders").Controls.Item("EmployeeID_Label")
.RightMargin = 100
End With