Class ButtonControl
Represents a Windows button control. Wraps the System.Windows.Forms.Button control.
Inheritance
Inherited Members
Namespace: FastReport.Dialog
Assembly: FastReport.dll
Syntax
public class ButtonControl : ButtonBaseControl, IComponent, IDisposable, IFRSerializable, IHasEditor
Constructors
ButtonControl()
Initializes a new instance of the ButtonControl class with default settings.
Declaration
public ButtonControl()
Properties
AutoFilter
This property is not relevant to this class.
Declaration
[Browsable(false)]
public bool AutoFilter { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
AutoSize
Gets or sets a value that indicates whether the control resizes based on its contents. Wraps the System.Windows.Forms.ButtonBase.AutoSize property.
Declaration
public override bool AutoSize { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
Overrides
Button
Gets an internal Button.
Declaration
[Browsable(false)]
public Button Button { get; }
Property Value
Type | Description |
---|---|
System.Windows.Forms.Button |
DataColumn
This property is not relevant to this class.
Declaration
[Browsable(false)]
public string DataColumn { get; set; }
Property Value
Type | Description |
---|---|
System.String |
DialogResult
Gets or sets a value that is returned to the parent form when the button is clicked. Wraps the System.Windows.Forms.Button.DialogResult property.
Declaration
public DialogResult DialogResult { get; set; }
Property Value
Type | Description |
---|---|
System.Windows.Forms.DialogResult |
FilterOperation
This property is not relevant to this class.
Declaration
[Browsable(false)]
public FilterOperation FilterOperation { get; set; }
Property Value
Type | Description |
---|---|
FilterOperation |
ReportParameter
This property is not relevant to this class.
Declaration
public string ReportParameter { get; set; }
Property Value
Type | Description |
---|---|
System.String |
TextAlign
Gets or sets the alignment of the text on the button control. Wraps the System.Windows.Forms.ButtonBase.TextAlign property.
Declaration
public override ContentAlignment TextAlign { get; set; }
Property Value
Type | Description |
---|---|
System.Drawing.ContentAlignment |
Overrides
Methods
GetSelectionPoints()
Gets the object's selection points.
Declaration
protected override SelectionPoint[] GetSelectionPoints()
Returns
Type | Description |
---|---|
SelectionPoint[] | Array of SelectionPoint objects. |
Overrides
Remarks
Selection point is a small square displayed at the object's sides when object is selected in the designer. You can drag this square by the mouse to change the object's size. For example, the TextObject has eight selection points to change its width and height by the mouse.
If you are developing a new component for FastReport, you may override this method if your object has non-standard set of selection points. For example, if an object has something like "AutoSize" property, it would be good to disable all selection points if that property is true, to disable resizing of the object by the mouse.
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 methods;
- saving the object to the designer's clipboard;
- saving the object to the preview (when run a report).