You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
kev/Drawer/UCDraw/SigmaDrawerWellStyle/ISymbolListBoxProvider.cs

27 lines
759 B
C#

using System;
namespace GeoSigma.SigmaDrawerStyle
{
/// <summary>
/// 符号列表 Provider
/// </summary>
public interface ISymbolListBoxProvider
{
/// <summary>
/// 获取所有可用项的名称
/// </summary>
/// <returns>符号名称列表</returns>
string[] GetNames();
/// <summary>
/// 将对应项绘制到指定 DC 上,返回是否成功
/// </summary>
/// <param name="name">符号名称</param>
/// <param name="hdc">HDC</param>
/// <param name="width">宽</param>
/// <param name="height">高</param>
/// <returns>成功,失败</returns>
bool Draw(string name, IntPtr hdc, int width, int height);
}
}