[]
        
(Showing Draft Content)

GrapeCity.Documents.Excel.Forms.IButton

IButton Interface

Represents a button form control on a worksheet.

Use this interface to work with button controls that are added through a worksheet's control collection. An IButton supports button-specific settings such as default, cancel, dismiss, and help button behavior, and also inherits common control features from IControl<T> and text content members from IContentControl.

Namespace: GrapeCity.Documents.Excel.Forms
Assembly: DS.Documents.Excel.dll
Syntax
public interface IButton : IControl<IButton>, IContentControl, IControl
Public Interface IButton
    Inherits IControl(Of IButton), IContentControl, IControl
Examples
IButton button = worksheet.Controls.AddButton(50, 20, 120, 24);
button.Text = "Submit";
button.DefaultButton = true;
button.HorizontalTextAlignment = HorizontalAlignment.Center;

Properties

Name Description
CancelButton

Gets or sets whether the button is the cancel button.

Use this property to determine whether the button is configured as a cancel button.

Not supported by the *.ssjson format.

DefaultButton

Gets or sets whether the button is the default button.

Not supported by the *.ssjson format.

DismissButton

Gets or sets whether the button is the dismiss button.

Not supported by the *.ssjson format.

HelpButton

Gets or sets whether the button is the help button.

Not supported by the *.ssjson format.

HorizontalTextAlignment

Gets or sets the horizontal text alignment of the button.

Not all values are supported by the *.ssjson format.

Orientation

Gets or sets the text orientation.

Use this property to determine how the button text is displayed, such as upward, downward, vertical, horizontal, or automatic.

Not all values are supported by the *.ssjson format.

VerticalTextAlignment

Gets or sets the vertical alignment.

Returns the vertical alignment applied to the button text.

Not all values are supported by the *.ssjson format.