GemBox.Spreadsheet
  • Overview
  • Examples
  • Free version
  • Support
  • Pricelist

    Show / Hide Table of Contents

    Button Class

    Namespace:
    GemBox.Spreadsheet.Drawing
    Assembly:
    GemBox.Spreadsheet.dll

    Represents a Button Form Control.

    • C#
    • VB.NET
    public class Button : ExcelFormControl
    Public Class Button
        Inherits ExcelFormControl
    Inheritance:
    System.Object
    ExcelDrawing
    ExcelFormControl
    Button

    Properties

    FormControlType

    Gets the Button value.

    • C#
    • VB.NET
    public override FormControlType FormControlType { get; }
    Public Overrides ReadOnly Property FormControlType As FormControlType
    Property Value
    FormControlType

    The Button value.

    Overrides
    ExcelFormControl.FormControlType

    HorizontalAlignment

    Gets or sets the horizontal alignment of the text in this button.

    • C#
    • VB.NET
    public HorizontalAlignment HorizontalAlignment { get; set; }
    Public Property HorizontalAlignment As HorizontalAlignment
    Property Value
    HorizontalAlignment

    The horizontal alignment of the text in this button.

    Text

    Gets the text content and formatting associated with this Button.

    • C#
    • VB.NET
    public TextBox Text { get; }
    Public ReadOnly Property Text As TextBox
    Property Value
    TextBox

    The text content and formatting associated with this Button.

    VerticalAlignment

    Gets or sets the vertical alignment of the text in this button.

    • C#
    • VB.NET
    public VerticalAlignment VerticalAlignment { get; set; }
    Public Property VerticalAlignment As VerticalAlignment
    Property Value
    VerticalAlignment

    The vertical alignment of the text in this button.

    Inherited Properties

    Hyperlink

    Gets or sets the hyperlink on this drawing (picture, chart, etc.).

    (Inherited from ExcelDrawing)

    MacroName

    Gets the name of the assigned vba macro to this button.

    (Inherited from ExcelFormControl)

    Metadata

    Gets the metadata (non-visual properties) of this ExcelDrawing instance.

    (Inherited from ExcelDrawing)

    Position

    Gets the position of this drawing (picture, chart, etc.) in the worksheet.

    (Inherited from ExcelDrawing)

    Print

    Gets or sets whether current form control is printable.

    (Inherited from ExcelFormControl)

    ThreeDShading

    Gets or sets whether 3D effect should be enabled on the current form control.

    (Inherited from ExcelFormControl)

    Worksheet

    Gets the parent worksheet.

    (Inherited from ExcelDrawing)

    ZIndex

    Gets the z-order position of the picture. -1 if the picture is not contained in proper collection.

    (Inherited from ExcelDrawing)

    Inherited Methods

    BringForward()

    Moves the form control one position forward in the drawings.

    (Inherited from ExcelFormControl)

    BringToFront()

    Brings the form control to the front of the drawings.

    (Inherited from ExcelFormControl)

    Format()

    Formats this drawing (picture, chart, etc.) to its default size so it can be exported to PDF, XPS, image or be printed.

    (Inherited from ExcelDrawing)

    Format(System.Double, System.Double, LengthUnit)

    Formats this drawing (picture, chart, etc.) to specified size so it can be exported to PDF, XPS, image or be printed.

    (Inherited from ExcelDrawing)

    MoveZIndex(System.Int32)

    Moves the form control forward or backward in the drawings with the given relative index.

    (Inherited from ExcelFormControl)

    SendBackward()

    Moves the form control one position backward in the drawings.

    (Inherited from ExcelFormControl)

    SendToBack()

    Sends the form control to the back of the drawings.

    (Inherited from ExcelFormControl)

    SetMacro(VbaModule, System.String)

    Assigns the given macro to this button.

    (Inherited from ExcelFormControl)

    Back to top

    Facebook • Twitter • LinkedIn

    © GemBox Ltd. — All rights reserved.