Xceed Grid for WinForms v4.3 Documentation
Xceed.Editors.v2.6 Assembly / Xceed.Editors Namespace / WinButton Class / FlatStyle Property


In This Topic
    FlatStyle Property (WinButton)
    In This Topic
    Gets or sets the button's flat style appearance.
    Syntax
    'Declaration
     
    <DescriptionAttribute("The button's flat style appearance.")>
    <CategoryAttribute("Appearance")>
    <DefaultValueAttribute(Mono.Cecil.CustomAttributeArgument)>
    Public Property FlatStyle As FlatStyle
    'Usage
     
    Dim instance As WinButton
    Dim value As FlatStyle
     
    instance.FlatStyle = value
     
    value = instance.FlatStyle
    [Description("The button's flat style appearance.")]
    [Category("Appearance")]
    [DefaultValue(Mono.Cecil.CustomAttributeArgument)]
    public FlatStyle FlatStyle {get; set;}

    Property Value

    A FlatStyle value representing the button's flat style appearance.
    Remarks

    If the FlatStyle property is set to FlatStyle.Popup, button will initially appear flat until the mouse pointer moves over it. When the mouse pointer moves over the button, it appears as a standard button until the mouse pointer is moved off of it again.

    If the FlatStyle.System is used, the appearance of the button is determined by the operating system. If supported, users can change the appearance of the button by adjusting the appearance settings of their operating system.

    Requirements

    Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also