2014-10-10 45 views
0

只想知道如何將標註添加到矩形工具。下面是我添加的代碼,但沒有繪製箭頭。 (0,0)處只出現一個圓點。 ()。GetItems(0).GetAsRectangle()。GetCallout()。SetVisibl e(TRUE); GetCallout()。SetVisibl e(TRUE); GetDialog()。 。m_ctrlChart.GetTools()GetItems(0).GetAsRectangle()GetCallout()GetBrush()SETC的olor(RGB(255,0,0))。。。; 。m_ctrlChart.GetTools()GetItems(0).GetAsRectangle()GetCallout()GetPen()SetCol或(RGB(0,0,255))。。。; 。。m_ctrlChart.GetTools()GetItems(0).GetAsRectangle()GetCallout()GetArrow()SETC的olor(RGB(0,255,0));矩形工具中的標註

感謝 阿克沙伊

回答

0

我認爲你正在尋找的屬性爲Callout.Arrow.Visible

m_ctrlChart.GetTools().GetItems(0).GetAsRectangle().GetCallout().GetArrow().SetVisible(TRUE); 

GetCallout().SetVisibl‌​e(TRUE)是指針