CommonTools/LabelRotate.cs
(开头部分) 4KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Drawing.Drawing2D;
using System.Data;
using System.Text;
using System.Windows.Forms;
namespace CommonTools
{
public class LabelRotate : Control
{
float m_textAngle = 0;
ContentAlignment m_rotatePointAlignment = ContentAlignment.MiddleCenter;
ContentAlignment m_textAlignment = ContentAlignment.MiddleLeft;
public new string Text
{
get { return base.Text; }
set
{
base.Text = value;
Refresh();
}
}
public float TextAngle
{
get { return m_textAngle; }
set
{
m_textAngle = value;
Invalidate();
}
}
public ContentAlignment TextAlign
{
get { return m_textAlignment; }
set
{
m_textAlignment = value;
Invalidate();
}
}
public ContentAlignment RotatePointAlignment
{
get { return m_rotatePointAlignment; }
set
{
m_rotatePointAlignment = value;
Invalidate();
}
}
Color m_frameColor = Color.CadetBlue;
public LabelRotate()
{
SetStyle(ControlStyles.SupportsTransparentBackColor, true);
this.Text = string.Empty;
this.DoubleBuffered = true;
后面还有 110 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。