0

devexpress コンポーネントを試しているので、TextEdit と XtraGrid の標準オプションを定義するためのコードを記述できるかどうかを知りたいです。Form のテーマについては、Program.cs に次のコードを記述します。

UserLookAndFeel.Default.SetSkinStyle("Office 2007 Blue");

したがって、すべてのフォームにはこのスキンがあります... XtraGrid と TextEdit オプションで何かできることはありますか?

非常に悪い英語で申し訳ありません..

例:

        dataGrid.OptionsPrint.UsePrintStyles = true;
        dataGrid.OptionsPrint.EnableAppearanceEvenRow = true;
        dataGrid.OptionsPrint.EnableAppearanceOddRow = true;
4

1 に答える 1

0

あなたが求めているものにはオプションがありません(AFAIK)。を拡張しGridviewて簡単に実装できます。

public class MyGridView : GridView
{
    public MyGridView()
    {
        this.OptionsPrint.UsePrintStyles = true;
        this.OptionsPrint.EnableAppearanceEvenRow = true;
        this.OptionsPrint.EnableAppearanceOddRow = true;
    }
}

次に、プロジェクト全体でこのクラスを使用します

于 2013-10-09T20:31:09.803 に答える