📄 lineutil.cs
字号:
// Disclaimer and Copyright Information
// LineUtil.cs :
//
// All rights reserved.
//
// Written by Pardesi Services, LLC
// Version 0.9
//
// Distribute freely, except: don't remove our name from the source or
// documentation (don't take credit for my work), mark your changes (don't
// get me blamed for your possible bugs), don't alter or remove this
// notice.
// No warrantee of any kind, express or implied, is included with this
// software; use at your own risk, responsibility for damages (if any) to
// anyone resulting from the use of this software rests entirely with the
// user.
//
// Send bug reports, bug fixes, enhancements, requests, flames, etc. to
// softomatix@CommonComponent.com
///////////////////////////////////////////////////////////////////////////////
//
using System;
using System.Drawing;
using System.Drawing.Drawing2D;
namespace CommonComponent.CommonChart
{
/// <summary>
/// Summary description for LineUtil.
/// </summary>
public class LineUtil
{
internal LineUtil()
{
//
// TODO: Add constructor logic here
//
}
internal static DashStyle GetDashStyle(LineType lt)
{
switch(lt)
{
case LineType.DashDot:
return DashStyle.DashDot;
case LineType.DashDotDot:
return DashStyle.DashDotDot;
case LineType.Dashed:
return DashStyle.Dash;
case LineType.Dot:
return DashStyle.Dot;
case LineType.Solid:
default:
return DashStyle.Solid;
}
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -