XlBordersIndex 枚举 (Excel)XlBordersIndex enumeration (Excel)

指定要检索的边框。Specifies the border to be retrieved.

名称Name Value 说明Description
xlDiagonalDownxlDiagonalDown 5 5 从区域中每个单元格的左上角到右下角的边框。Border running from the upper-left corner to the lower-right of each cell in the range.
xlDiagonalUpxlDiagonalUp 6 6 从区域中每个单元格的左下角到右上角的边框。Border running from the lower-left corner to the upper-right of each cell in the range.
xlEdgeBottomxlEdgeBottom 9 9 区域底部的边框。Border at the bottom of the range.
xlEdgeLeftxlEdgeLeft 7 7 区域左边缘的边框。Border at the left edge of the range.
xlEdgeRightxlEdgeRight 10 10 区域右边缘的边框。Border at the right edge of the range.
xlEdgeTopxlEdgeTop 8 8 区域顶部的边框。Border at the top of the range.
xlInsideHorizontalxlInsideHorizontal 12 12 区域中所有单元格的水平边框(区域以外的边框除外)。Horizontal borders for all cells in the range except borders on the outside of the range.
xlInsideVerticalxlInsideVertical 11 11 区域中所有单元格的垂直边框(区域以外的边框除外)。Vertical borders for all the cells in the range except borders on the outside of the range.

支持和反馈Support and feedback

有关于 Office VBA 或本文档的疑问或反馈?Have questions or feedback about Office VBA or this documentation? 请参阅 Office VBA 支持和反馈,获取有关如何接收支持和提供反馈的指南。Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.