📄 chateditprogressbarobject.cs
字号:
namespace Imps.Client.Pc.BizControls
{
using Imps.Utils;
using System;
using System.Drawing;
public class ChatEditProgressBarObject : ChatEditOleObject
{
private AmigoImage _barImage;
private string _barImageText;
private Size _barSize;
private bool _bCancel;
private Color _color;
private int _current;
private string _fontFamilyName;
private int _fontSize;
private int _height;
private Color _ProgressBarColor;
private Color _textColor;
private Color _TextColor;
private int _width;
internal int Vertical;
public ChatEditProgressBarObject(OleKey key, int index, string text) : base(key, index, text)
{
this._ProgressBarColor = Color.FromArgb(0x5f, 0xff, 0x3f);
this._TextColor = Color.FromArgb(0, 0, 0);
this._barImage = new AmigoImage();
this._barSize = new Size(250, 15);
this._fontFamilyName = "宋体";
this._fontSize = 12;
this.Vertical = 4;
this._width = 100;
this._height = 10;
this._color = this._ProgressBarColor;
this._textColor = this._TextColor;
}
public ChatEditProgressBarObject(OleKey key, int index, string text, int width) : base(key, index, text)
{
this._ProgressBarColor = Color.FromArgb(0x5f, 0xff, 0x3f);
this._TextColor = Color.FromArgb(0, 0, 0);
this._barImage = new AmigoImage();
this._barSize = new Size(250, 15);
this._fontFamilyName = "宋体";
this._fontSize = 12;
this.Vertical = 4;
this._width = width;
this._height = 10;
this._color = this._ProgressBarColor;
this._textColor = this._TextColor;
}
public ChatEditProgressBarObject(OleKey key, int index, string text, int width, int height) : base(key, index, text)
{
this._ProgressBarColor = Color.FromArgb(0x5f, 0xff, 0x3f);
this._TextColor = Color.FromArgb(0, 0, 0);
this._barImage = new AmigoImage();
this._barSize = new Size(250, 15);
this._fontFamilyName = "宋体";
this._fontSize = 12;
this.Vertical = 4;
this._width = width;
this._height = height;
this._color = this._ProgressBarColor;
this._textColor = this._TextColor;
}
public AmigoImage BarImage
{
get
{
return this._barImage;
}
set
{
this._barImage = value;
}
}
public string BarImageText
{
get
{
return this._barImageText;
}
set
{
this._barImageText = value;
}
}
public Size BarSize
{
get
{
return this._barSize;
}
}
public bool Canceled
{
get
{
return this._bCancel;
}
set
{
this._bCancel = value;
}
}
public int CurrentProgress
{
get
{
return this._current;
}
set
{
this._current = value;
}
}
public string FontFamilyName
{
get
{
return this._fontFamilyName;
}
}
public int FontSize
{
get
{
return this._fontSize;
}
}
public int Height
{
get
{
return this._height;
}
set
{
this._height = value;
}
}
public Color ProgressBarColor
{
get
{
return this._color;
}
set
{
this._color = value;
}
}
public Color ProgressBarTextColor
{
get
{
return this._textColor;
}
set
{
this._textColor = value;
}
}
public int Width
{
get
{
return (this._barSize.Width + 2);
}
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -