using DevExpress.XtraEditors; namespace IStation.Win { 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(); } } }