RightMargin 屬性

此頁沒有內(nèi)容條目
內(nèi)容

expandtri全部顯示

blueup應用于 LabelTextBox 對象的 RightMargin 屬性。

TopMargin、Left MarginBottomMargin 屬性一起,指定信息在標簽文本框控件中的顯示位置。Integer 型,可讀寫。

expression.RightMargin

expression     必需。返回上述對象之一的一個表達式。

說明

控件顯示信息的位置是從控件的左、上、右或下端邊界到顯示信息的左、上、右或下端邊沿之間的距離。若要使用不同于 Windows 區(qū)域設(shè)置中設(shè)置的度量單位,請指定單位(例如,厘米或英寸)。

在 Visual Basic 中,使用數(shù)值表達式設(shè)置該屬性的值,值以為單位表示。

可以使用屬性表、Visual Basic 來設(shè)置這些屬性。

blueup應用于 Printer 對象的 RightMargin 屬性。

TopMargin、LeftMarginBottomMargin 屬性一起,指定打印頁的邊距。Long 型,可讀寫。

expression.RightMargin

expression     必需。返回 Printer 對象的表達式。

示例

blueup應用于 LabelTextBox 對象時。

下面的示例從“Purchase Orders”窗體的“EmployeeID_Label”標簽的邊框右邊,將其中的標題偏移 100 緹。

With Forms.Item("Purchase Orders").Controls.Item("EmployeeID_Label")

   .RightMargin = 100

End With