如果 WebEx 或 WebFile 对象使用了任何共享边框,则为 True。可读写,Variant 类型。
expression.SharedBorders(BorderIndex)
expression 必选。返回 WebEx 或 WebFile 对象的表达式。
BorderIndex 可选,FpSharedBorders 常数。边框索引是枚举类型,可以是下表中的常数之一。默认常数是 fpBorderTop。
FpSharedBorders | 值 | 说明 |
---|---|---|
fpBorderTop | 1 | 设置或返回网页顶端的边框。 |
fpBorderLeft | 2 | 设置或返回网页左侧的边框。 |
fpBorderRight | 4 | 设置或返回网页右侧的边框。 |
fpBorderBottom | 8 | 设置或返回网页底部的边框。 |
fpBorderAll | 255 或 &HFF | 设置或返回网页所有各边的边框。 |
SharedBorders(例如常数 fpBorderLeft)可用于设置单个边框的值。
注意 如果没有指定共享边框,则使用默认共享边框。
本示例设置活动站点的共享边框。
Private Sub SetSharedBorders()
Dim myPage As PageWindowEx
ActiveWeb.SharedBorders(fpBorderLeft) = True
End Sub