Class ButtonControl
Represents a Windows button control.
Wraps the
Inheritance
System.Object
ButtonControl
Implements
Inherited Members
FastReport.ComponentBase.Draw(FastReport.Utils.FRPaintEventArgs)
Namespace: FastReport.Dialog
Assembly: FastReport.dll
Syntax
public class ButtonControl : ButtonBaseControl, IFRSerializable
Constructors
ButtonControl()
Initializes a new instance of the ButtonControl class with default settings.
Declaration
public ButtonControl()
Properties
Button
Gets an internal Button.
Declaration
public Button Button { get; }
Property Value
| Type | Description |
|---|---|
| Button |
DialogResult
Gets or sets a value that is returned to the parent form when the button is clicked.
Wraps the
Declaration
public DialogResult DialogResult { get; set; }
Property Value
| Type | Description |
|---|---|
| DialogResult |
Methods
Serialize(FRWriter)
Serializes the object.
Declaration
public override void Serialize(FRWriter writer)
Parameters
| Type | Name | Description |
|---|---|---|
| FRWriter | writer | Writer object. |
Overrides
Remarks
Do not call this method directly. You should override it if you are developing a new component for FastReport.
This method is called when the object needs to save the state. It may happen when:
- saving the report to the file or stream;
- saving the report to the designer's undo buffer;
- assigning the object to another object using the Assign(Base) or AssignAll(Base) methods;
- saving the object to the designer's clipboard;
- saving the object to the preview (when run a report).