C#控制工程图的可见性和溢出 [英] C# Control drawing visibility & overflow

查看:133
本文介绍了C#控制工程图的可见性和溢出的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

早晨,傍晚,下午.

我正在开发控件,却偶然发现了一个小问题.

我该如何检测绘图动作是否会落在剪辑区域之外?
因为如果DrawString命令超出了Rectangle的范围,我必须在结束"处用"..."将其缩短.

Morning, evening, afternoon.

I''m working on a control and stumbled upon a little problem.

How can I detect if a draw action will falls outside of the clip area?
For if the DrawString command reaches beyond the Rectangle, I have to shorten it with a "..." at the ''end''.

推荐答案

不必.

看看 [
You don''t have to.

Take a look at this[^].


这篇关于C#控制工程图的可见性和溢出的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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