主题
BeginArrowheadStyle (属性)
返回或设置指定线条起点的箭头样式。MsoArrowheadStyle 类型,可读写。
示例
javascript
/*本示例向第一张工作表中添加直线。该直线的起点是一个短而窄的椭圆,而该直线的终点则是一个长而宽的三角形。*/
function test() {
let worksheet = Application.Worksheets.Item(1)
let line = worksheet.Shapes.AddLine(100, 100, 200, 300).Line
line.BeginArrowheadLength = msoArrowheadShort
line.BeginArrowheadStyle = msoArrowheadOval
line.BeginArrowheadWidth = msoArrowheadNarrow
line.EndArrowheadLength = msoArrowheadLong
line.EndArrowheadStyle = msoArrowheadTriangle
line.EndArrowheadWidth = msoArrowheadWide
}
javascript
/*本示例显示活动工作表的第一个形状线条始端的箭头样式是否为菱形。*/
function test() {
let line = ActiveSheet.Shapes.Item(1).Line
console.log(line.BeginArrowheadStyle == msoArrowheadDiamond)
}