WinForms

Code Examples Upgrade Guide User Guide Demos Support Forums Download
  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class OfficeButton

    Show / Hide Table of Contents

    Class OfficeButton

    ToolStripButton with HelpText below Text that displayed in Bold style.

    Inheritance
    System.Object
    OfficeButton
    Namespace: Syncfusion.Windows.Forms.Tools
    Assembly: Syncfusion.Tools.Windows.dll
    Syntax
    public class OfficeButton : ToolStripButton

    Constructors

    OfficeButton()

    The constructor of the OfficeButton.

    Declaration
    public OfficeButton()

    Properties

    DisplayStyle

    Gets or sets whether text and images are displayed on a System.Windows.Forms.ToolStripItem.

    Declaration
    public override ToolStripItemDisplayStyle DisplayStyle { get; set; }
    Property Value
    Type Description
    System.Windows.Forms.ToolStripItemDisplayStyle

    One of the System.Windows.Forms.ToolStripItemDisplayStyle values. The default is System.Windows.Forms.ToolStripItemDisplayStyle.ImageAndText .

    HelpText

    Gets or sets additional text displayed in Bold style.

    Declaration
    public string HelpText { get; set; }
    Property Value
    Type Description
    System.String

    Methods

    GetPreferredSize(Size)

    Retrieves the size of a rectangular area into which a control can be fit.

    Declaration
    public override Size GetPreferredSize(Size constrainingSize)
    Parameters
    Type Name Description
    System.Drawing.Size constrainingSize

    The custom-sized area for a control.

    Returns
    Type Description
    System.Drawing.Size

    A System.Drawing.Size ordered pair, representing the width and height of a rectangle.

    OnBoundsChanged()

    Declaration
    protected override void OnBoundsChanged()

    OnFontChanged(EventArgs)

    Declaration
    protected override void OnFontChanged(EventArgs e)
    Parameters
    Type Name Description
    System.EventArgs e

    OnLayout(LayoutEventArgs)

    Declaration
    protected override void OnLayout(LayoutEventArgs e)
    Parameters
    Type Name Description
    System.Windows.Forms.LayoutEventArgs e

    OnPaint(PaintEventArgs)

    Declaration
    protected override void OnPaint(PaintEventArgs e)
    Parameters
    Type Name Description
    System.Windows.Forms.PaintEventArgs e

    OnParentRightToLeftChanged(EventArgs)

    Declaration
    protected override void OnParentRightToLeftChanged(EventArgs e)
    Parameters
    Type Name Description
    System.EventArgs e

    OnRightToLeftChanged(EventArgs)

    Declaration
    protected override void OnRightToLeftChanged(EventArgs e)
    Parameters
    Type Name Description
    System.EventArgs e
    Back to top Generated by DocFX
    Copyright © 2001 - 2023 Syncfusion Inc. All Rights Reserved