如何获得边框的坐标 [英] How to get the coordinates of the border

查看:87
本文介绍了如何获得边框的坐标的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨。我是迈克,我有问题,如何获取边框的坐标

Hi.I'm Mike, I have a problem ,How to get the coordinates of the border

zedGraph1.GraphPane.Chart.Border    //how to know this Border.width and Border.height ???

推荐答案

从内存Zedgraph边框获取当你想要绘制时发送给它的Pane对象(即Draw(Graphics,PaneBase,Single,RectangleF))



所以你需要询问窗格对象以获得大小等

但是Borner对象无法返回你想要的维度数据。





Pane.Rect就是你可能会追求的。



猜猜但我估计我' m close

Bryce
from memory Zedgraph border gets the Pane object sent to it when you want to draw (i.e. Draw(Graphics, PaneBase, Single, RectangleF))

And so you need to interrogate the Pane Object to get the size etc
But the Borner object cant return that dimension data you want.


Pane.Rect is what you're probably after.

guessing but i reckon i'm close
Bryce


感谢Bryce,你知道任何类似的房源吗?
thanks to Bryce, Do you know any similar properties directly ?


谢谢Bryce,问题已解决!
Thanks Bryce,The problem is resolved!


这篇关于如何获得边框的坐标的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆