问题
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().SetVisible(TRUE); m_ctrlChart.GetTools().GetItems(0).GetAsRectangle().GetCallout().GetBrush().SetColor(RGB(255,0,0)); m_ctrlChart.GetTools().GetItems(0).GetAsRectangle().GetCallout().GetPen().SetColor(RGB(0,0,255)); m_ctrlChart.GetTools().GetItems(0).GetAsRectangle().GetCallout().GetArrow().SetColor(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().SetVisible(TRUE)
is for the Pointer
来源:https://stackoverflow.com/questions/26301069/callout-in-rectangle-tool