Visual Basic 命令对照表 B

   

ABCDEFGHIJKLMNOPRSTUVWY

B  
Beep Beep
Begin Dialog...End Dialog 创建并显示自定义窗体。有关在窗体中添加控件的信息,请参阅将控件添加至窗体
Bold, Bold() Selection.Font.Bold = True

x = Selection.Font.Bold

name = BookmarkName$(num) name = ActiveDocument.Bookmarks(num).Name
BorderBottom, BorderBottom() With ActiveDocument.Paragraphs(1).Borders(wdBorderBottom)

    .LineStyle = wdLineStyleSingle

    .LineWidth= wdLineWidth075pt

End With

x = ActiveDocument.Paragraphs(1).Borders(wdBorderBottom).LineStyle

BorderInside, BorderInside() With Selection.Borders

    .InsideLineStyle = wdLineStyleSingle

    .InsideLineWidth = wdLineWidth075pt

End With

x = Selection.Borders.InsideLineStyle

BorderLeft, BorderLeft() With ActiveDocument.Paragraphs(1).Borders(wdBorderLeft)

    .LineStyle = wdLineStyleSingle

    .LineWidth= wdLineWidth075pt

End With

x = ActiveDocument.Paragraphs(1).Borders(wdBorderLeft).LineStyle

BorderLineStyle, BorderLineStyle() Selection.Borders(wdBorderType).LineStyle = wdLineStyle

x = ActiveDocument.Paragraphs(1).Borders(wdBorderType).LineStyle

BorderNone, BorderNone() Selection.Borders.Enable = False

'或

Selection.Borders(wdBorderLeft).LineStyle = wdLineStyleNone

x = Selection.Range.Borders.Enable

BorderOutside, BorderOutside() With Selection.Borders

    .OutsideLineStyle = wdLineStyleSingle

    .OutsideLineWidth = wdLineWidth075pt

End With

x = Selection.Borders.OutsideLineStyle

BorderRight, BorderRight() With ActiveDocument.Paragraphs(1).Borders(wdBorderRight)

    .LineStyle = wdLineStyleSingle

    .LineWidth= wdLineWidth075pt

End With

x = ActiveDocument.Paragraphs(1).Borders(wdBorderRight).LineStyle

BorderTop, BorderTop() With Selection.Paragraphs(1).Borders(wdBorderTop)

    .LineStyle = wdLineStyleSingle

    .LineWidth= wdLineWidth075pt

End With

x = ActiveDocument.Paragraphs(1).Borders(wdBorderTop).LineStyle