改变DevExpress.XtraEditors.GridLookUpEdit宽高

本文介绍了如何改变DevExpress.XtraEditors.GridLookUpEdit控件的宽高。通过设置PopupSizeable和PopupFormSize两个属性,可以实现控件大小的调整。文中展示了调整前后的效果对比。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

序言

阴差阳错的被调到另外一个winform项目中去了,遇到了GridLookUpEdit控件,不知道如何更改其大小。

问了同事也不知道如何搞,这是最的事情。

开始实战

  • PopupSizeable
//
// 摘要:
 //     Gets or sets a value indicating whether the dropdown window is sizeable.
 //
 // 值:
 //     true, if the dropdown is sizeable; otherwise, false.
 [DefaultValue(true)]
 [Description("Gets or sets a value indicating whether the dropdown window is sizeable.")]
 public override bool PopupSizeable { get; set; }
  • PopupFormSize
//
// 摘要:
//     Gets or sets the popup window's size.
//
// 值:
//     A System.Drawing.Size structure that specifies the popup window's size.
[Category("Behavior")]
[Description("Gets or sets the popup window's size.")]
public virtual Size PopupFormSize { get; set; }

两个属性配合使用

在这里插入图片描述

效果

  • 调整后了的大小
    在这里插入图片描述
  • 未调整的大小
    在这里插入图片描述
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值