CheckedListBox
コントロールの項目の文字列を描画または変更しようとしています。だから私はCheckedListBox
から派生したカスタムコントロールを作成しました。CheckedBoxListコントロールのアイテムに文字列を描画するにはどうすればよいですか?
public class CheckedListBoxAdv : CheckedListBox
{
public CheckedListBoxAdv()
:base()
{
}
protected override void OnDrawItem(DrawItemEventArgs e)
{
base.OnDrawItem(e);
//I want to change the text alone this place. But I cannot access the text part of the item.
}
}
テキストのみを変更する方法はありますか?
は、あなたがにCheckedListBox上に描画する必要がありますか?単純に項目のテキストを変更しないのはなぜですか? –
私は特定の条件に基づいてテキストを変更する必要があるので。何か方法はありますか? –
図面は必要ありません。単に商品テキストを変更するだけです。 –