我试图这样做,当用户将鼠标悬停在如下所示的三角形上时,会弹出一个文本框,其中包含与该三角形相关的某些信息。
使用以下功能绘制三角形...
Public Sub drawTriangle(theRow As Integer, theColumn As Integer, Optional myColor As System.Drawing.Color = Nothing)
myColor = System.Drawing.Color.Black
Dim theShape As Microsoft.Office.Interop.Excel.Shape = xlWorkSheet.Shapes.AddShape(MsoAutoShapeType.msoShapeIsoscelesTriangle, (xlWorkSheet.Cells(theRow, theColumn)).Left + 18, (xlWorkSheet.Cells(theRow, theColumn)).Top, 15, 14)
theShape.Fill.ForeColor.RGB = ToBgr(myColor)
theShape.Line.ForeColor.RGB = ToBgr(myColor)
End Sub
我无法找到任何关于如何做到这一点的例子或文档,所以我想我会问这里。任何和所有的帮助非常感谢!!