作成日: 2024/03/12 最終更新日: 2024/03/12
文書種別
不具合
状況
回避方法あり
詳細
C1ComboBoxの項目にテキストを設定して実行し、ドロップダウンリストから項目を選択したとき、C1ComboBoxのテキストボックス部とドロップダウン項目のテキストで、フォントの文字間隔が異なって表示されます。
回避方法
ItemModeプロパティを「HtmlPattern」にし、HtmlPatternプロパティに以下のようなコードを設定します。
◎サンプルコード(VB)
◎サンプルコード(VB)
C1ComboBox1.ItemMode = ComboItemMode.HtmlPattern
C1ComboBox1.HtmlPattern = "<div style='word-break: keep-all;'>{Text}</div>"
◎サンプルコード(C#)
c1ComboBox1.ItemMode = ComboItemMode.HtmlPattern;
c1ComboBox1.HtmlPattern = "<div style='word-break: keep-all;'>{Text}</div>";