Callout in Rectangle tool

谁都会走 提交于 2019-12-13 06:46:09

问题


Just want to know how can I add a callout to Rectangle tool. Below is the code which I have added but Arrow is not drawn. Only a Dot appears at (0,0).

m_ctrlChart.GetTools().GetItems(0).GetAsRectangle().GetCallout().SetVisibl‌​e(TRUE); m_ctrlChart.GetTools().GetItems(0).GetAsRectangle().GetCallout().GetBrush().SetC‌​olor(RGB(255,0,0)); m_ctrlChart.GetTools().GetItems(0).GetAsRectangle().GetCallout().GetPen().SetCol‌​or(RGB(0,0,255)); m_ctrlChart.GetTools().GetItems(0).GetAsRectangle().GetCallout().GetArrow().SetC‌​olor(RGB(0,255,0));

Thanks Akshay


回答1:


I think the property you are looking for is Callout.Arrow.Visible:

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

GetCallout().SetVisibl‌​e(TRUE) is for the Pointer



来源:https://stackoverflow.com/questions/26301069/callout-in-rectangle-tool

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!