📄 bliptype.cs
字号:
using System;
namespace Microsoft.Fawvw.Components.NExcel.Biff.Drawing
{
/// <summary> Enumeration for the BLIP type</summary>
sealed class BlipType
{
public string Description
{
get
{
return desc;
}
}
private int _Value;
private string desc;
private static BlipType[] types;
private BlipType(int val, string d)
{
_Value = val;
desc = d;
BlipType[] newtypes = new BlipType[types.Length + 1];
Array.Copy(types, 0, newtypes, 0, types.Length);
newtypes[types.Length] = this;
types = newtypes;
}
public int Value
{
get
{
return _Value;
}
}
public static BlipType getType(int val)
{
BlipType type = UNKNOWN;
for (int i = 0; i < types.Length; i++)
{
if (types[i]._Value == val)
{
type = types[i];
break;
}
}
return type;
}
public static readonly BlipType ERROR = new BlipType(0, "Error"); // An error occured during loading
public static readonly BlipType UNKNOWN = new BlipType(1, "Unknown"); // An unknown blip type
public static readonly BlipType EMF = new BlipType(2, "EMF"); // Windows Enhanced Metafile
public static readonly BlipType WMF = new BlipType(3, "WMF"); // Windows Metafile
public static readonly BlipType PICT = new BlipType(4, "PICT"); // Macintosh PICT
public static readonly BlipType JPEG = new BlipType(5, "JPEG"); // JFIF
public static readonly BlipType PNG = new BlipType(6, "PNG"); // PNG
public static readonly BlipType DIB = new BlipType(7, "DIB"); // Windows DIB
public static readonly BlipType FIRST_CLIENT = new BlipType(32, "FIRST"); // First client defined blip type
public static readonly BlipType LAST_CLIENT = new BlipType(255, "LAST"); // Last client defined blip type
static BlipType()
{
types = new BlipType[0];
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -