namespace Yw.WinFrmUI
|
{
|
/// <summary>
|
///
|
/// </summary>
|
public static class TokenEditExtensions
|
{
|
/// <summary>
|
/// 初始化默认设置
|
/// </summary>
|
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();
|
}
|
}
|
}
|