lineutil.cs

来自「C#自定义查询控件」· CS 代码 · 共 60 行

CS
60
字号
// 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 + =
减小字号Ctrl + -
显示快捷键?