Class PanelControl
Used to group collections of controls. Wraps the System.Windows.Forms.Panel control.
Inheritance
Inherited Members
Namespace: FastReport.Dialog
Assembly: FastReport.dll
Syntax
public class PanelControl : ParentControl, IDisposable, IFRSerializable, IHasEditor, IParent
Constructors
PanelControl()
Initializes a new instance of the PanelControl class with default settings.
Declaration
public PanelControl()
Properties
BorderStyle
Indicates the border style for the control. Wraps the System.Windows.Forms.Panel.BorderStyle property.
Declaration
public BorderStyle BorderStyle { get; set; }
Property Value
Type | Description |
---|---|
System.Windows.Forms.BorderStyle |
Panel
Gets an internal Panel.
Declaration
[Browsable(false)]
public Panel Panel { get; }
Property Value
Type | Description |
---|---|
System.Windows.Forms.Panel |
Text
This property is not relevant to this class.
Declaration
[Browsable(false)]
public override string Text { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Overrides
Methods
Draw(FRPaintEventArgs)
Draws the object.
Declaration
public override void Draw(FRPaintEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
FRPaintEventArgs | e | Paint event args. |
Overrides
Remarks
This method is widely used in the FastReport. It is called each time when the object needs to draw or print itself.
In order to draw the object correctly, you should multiply the object's bounds by the scale parameter.
cache parameter is used to optimize the drawing speed. It holds all items such as pens, fonts, brushes, string formats that was used before. If the item with requested parameters exists in the cache, it will be returned (instead of create new item and then dispose it).
Serialize(FRWriter)
Declaration
public override void Serialize(FRWriter writer)
Parameters
Type | Name | Description |
---|---|---|
FRWriter | writer |