using DevExpress.XtraEditors;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace IStation.WinFormUI
{
public static class TokenEditExtend
{
///
/// 初始化默认设置
///
///
///
public static void InitDefaultSettings(this TokenEdit rhs, char SeparatorChar =',')
{
rhs.Properties.ShowDropDown = true;
rhs.Properties.DropDownRowCount = 5;
rhs.Properties.CheckMode = TokenEditCheckMode.Default;
rhs.Properties.MaxExpandLines = 5;
rhs.Properties.PopupPanelOptions.ShowPopupPanel = true;
rhs.Properties.PopupPanelOptions.Location = TokenEditPopupPanelLocation.BelowToken;
rhs.Properties.ShowRemoveTokenButtons = false;
rhs.Properties.PopupSizeable = false;
rhs.Properties.TokenGlyphLocation = TokenEditGlyphLocation.Left;
rhs.Properties.EditValueSeparatorChar = SeparatorChar;
rhs.Properties.AutoHeightMode = TokenEditAutoHeightMode.RestrictedExpand;
rhs.ShowPopup();
}
}
}