PropertyGrid.LargeButtons 属性

定义

获取或设置一个值,用以指示按钮显示为标准按钮还是大按钮。

public:
 property bool LargeButtons { bool get(); void set(bool value); };
public bool LargeButtons { get; set; }
member this.LargeButtons : bool with get, set
Public Property LargeButtons As Boolean

属性值

Boolean

如果控件上的按钮显示为大按钮,则为 true;否则为 false。 默认值为 false

注解

可以使用此属性来增强辅助功能。 大按钮为 32 x 32 像素,而不是标准 16 x 16 像素。 当app.config文件包含以下条目时,会根据系统 DPI 设置调整大按钮和小按钮的大小:

<appSettings>  
  <add key="EnableWindowsFormsHighDpiAutoResizing" value="true" />  
</appSettings>  

适用于