我想CommandButton在 devexpress 表单上使用。我将其设置.glyph为大图像。然后我将PaintStyle(我发现也显示标题的唯一方法)设置为CaptionGlyph值。它将标题放在图标旁边。我怎样才能把它放在图标下面(见左边的大按钮)。

我想CommandButton在 devexpress 表单上使用。我将其设置.glyph为大图像。然后我将PaintStyle(我发现也显示标题的唯一方法)设置为CaptionGlyph值。它将标题放在图标旁边。我怎样才能把它放在图标下面(见左边的大按钮)。

我只需要. .command_ 唯一的问题是,我只能通过修改 .designer.cs 文件将它放在表单上,什么是 lamme,但可以工作。CommandButtonBarLargeButtonItemISupportReportCommand
下面是代码,以防其他人需要这样的东西:
使用 DevExpress.XtraBars;
使用 DevExpress.XtraReports.UserDesigner;
使用系统;
使用 System.Collections.Generic;
使用 System.Linq;
使用 System.Text;
命名空间 StefaniaNET.Nyomtatvanyok.Komponensek
{
公共类 Gomb : BarLargeButtonItem, ISupportReportCommand
{
公共贡布()
{
#region alapbeállítások
PaintStyle = BarItemPaintStyle.CaptionGlyph;
CaptionAlignment = BarItemCaptionAlignment.Bottom;
#endregion
}
#region ISupportReportCommand 实施
公共 ReportCommand 命令 { 获取;放; }
//public ReportCommand 命令
//{
// get { throw new NotImplementedException(); }
//}
#endregion
}
}