Class Style
Represents a style.
Implements
Inherited Members
Namespace: FastReport
Assembly: FastReport.Base.dll
Syntax
public class Style : StyleBase, IFRSerializable
Remarks
Style class holds border, fill, text fill and font settings. It can be applied to any report object of ReportComponentBase type.
The Report object holds list of styles in its Styles property. Each style has unique name. To apply a style to the report component, set its Style property to the style name.
Constructors
Style()
Initializes a new instance of the Style class with default settings.
Declaration
public Style()
Properties
Name
Gets or sets a name of the style.
Declaration
public string Name { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Remarks
The name must be unique.
Methods
Assign(StyleBase)
Assigns values from another source.
Declaration
public override void Assign(StyleBase source)
Parameters
Type | Name | Description |
---|---|---|
StyleBase | source | Source to assign from. |
Overrides
Clone()
Creates exact copy of this Style.
Declaration
public Style Clone()
Returns
Type | Description |
---|---|
Style | Copy of this style. |
Serialize(FRWriter)
Serializes the style.
Declaration
public override void Serialize(FRWriter writer)
Parameters
Type | Name | Description |
---|---|---|
FRWriter | writer | Writer object. |
Overrides
Remarks
This method is for internal use only.