本文介绍了矩形工具中的标注的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

只想知道如何向矩形工具添加标注。下面是我添加的代码,但未绘制Arrow。仅一个点出现在(0,0)。

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));

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));

谢谢
Akshay

ThanksAkshay

推荐答案

我认为您要查找的属性是 Callout.Arrow。可见

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)用于指针

这篇关于矩形工具中的标注的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

06-10 20:51