27 lines
633 B
C#
27 lines
633 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Drawing;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
using System.Windows.Forms;
|
|
|
|
namespace Exferia_Controles
|
|
{
|
|
public partial class Exferia_Label_Vertical : Label
|
|
{
|
|
public Exferia_Label_Vertical()
|
|
{
|
|
|
|
}
|
|
|
|
protected override void OnPaint(PaintEventArgs e)
|
|
{
|
|
var g = e.Graphics;
|
|
SolidBrush myBrush = new SolidBrush(ForeColor);
|
|
g.DrawString(Text, Font, myBrush, 0, 0,
|
|
new StringFormat(StringFormatFlags.DirectionVertical));
|
|
}
|
|
}
|
|
}
|