Class ButtonBaseControl
Implements base behavior of button controls.
Inheritance
Inherited Members
Namespace: FastReport.Dialog
Assembly: FastReport.dll
Syntax
public class ButtonBaseControl : DataFilterBaseControl, IComponent, IDisposable, IFRSerializable, IHasEditor
Properties
AutoFill
This property is not relevant to this class.
Declaration
[Browsable(false)]
public bool AutoFill { 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 virtual bool AutoSize { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
Image
Gets or sets the image that is displayed on a button control. Wraps the System.Windows.Forms.ButtonBase.Image property.
Declaration
public Image Image { get; set; }
Property Value
Type | Description |
---|---|
System.Drawing.Image |
ImageAlign
Gets or sets the alignment of the image on the button control. Wraps the System.Windows.Forms.ButtonBase.ImageAlign property.
Declaration
public ContentAlignment ImageAlign { get; set; }
Property Value
Type | Description |
---|---|
System.Drawing.ContentAlignment |
TextAlign
Gets or sets the alignment of the text on the button control. Wraps the System.Windows.Forms.ButtonBase.TextAlign property.
Declaration
public virtual ContentAlignment TextAlign { get; set; }
Property Value
Type | Description |
---|---|
System.Drawing.ContentAlignment |
TextImageRelation
Gets or sets the position of text and image relative to each other. Wraps the System.Windows.Forms.ButtonBase.TextImageRelation property.
Declaration
public TextImageRelation TextImageRelation { get; set; }
Property Value
Type | Description |
---|---|
System.Windows.Forms.TextImageRelation |
Methods
GetValue()
Returns value entered in the control.
Declaration
protected override object GetValue()
Returns
Type | Description |
---|---|
System.Object | The value of type supported by this control. |
Overrides
Remarks
This method must return a value entered by the user. For example, TextBox control must return its Text property value. If this control supports multi-selection, return selected values in an array, for example string[] array for CheckedListBox.
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).