Skip to main content
All docs
V25.1
  • FindControlItemsCore.AddButton(String, String, EventHandler, Nullable<Color>, FontStyle, Image) Method

    Adds a button with the specified settings.

    Namespace: DevExpress.XtraLayout.Custom

    Assembly: DevExpress.XtraLayout.v25.1.dll

    NuGet Package: DevExpress.Win.Navigation

    Declaration

    public CustomConstraintsSimpleButton AddButton(
        string name,
        string text,
        EventHandler handler,
        Color? backColor,
        FontStyle fontStyleDelta,
        Image image
    )

    Parameters

    Name Type Description
    name String

    The button’s name.

    text String

    Text displayed in the button.

    handler EventHandler

    The event handler invoked when a user clicks the button.

    backColor Nullable<Color>

    The button’s background color.

    fontStyleDelta FontStyle

    The font style applied to button text.

    image Image

    The image displayed in the button.

    Returns

    Type Description
    DevExpress.XtraLayout.Custom.CustomConstraintsSimpleButton

    A SimpleButton descendant that allows you to set up the created button.

    See Also