Class ZipCodeObject
Represents a zip code object.
Implements
Inherited Members
Namespace: FastReport
Assembly: FastReport.Base.dll
Syntax
public class ZipCodeObject : ReportComponentBase, IFRSerializable
Remarks
This object is mainly used in Russia to print postal index on envelopes. It complies with the GOST R 51506-99.
Constructors
ZipCodeObject()
Initializes a new instance of the ZipCodeObject with the default settings.
Declaration
public ZipCodeObject()
Properties
DataColumn
Gets or sets a data column name bound to this control.
Declaration
public string DataColumn { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Remarks
Value must be in the form "Datasource.Column".
Expression
Gets or sets an expression that contains the zip code.
Declaration
public string Expression { get; set; }
Property Value
Type | Description |
---|---|
System.String |
SegmentCount
Gets or sets the number of segments in zipcode.
Declaration
public int SegmentCount { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
SegmentHeight
Gets or sets the height of a single zipcode segment, in pixels.
Declaration
public float SegmentHeight { get; set; }
Property Value
Type | Description |
---|---|
System.Single |
SegmentWidth
Gets or sets the width of a single zipcode segment, in pixels.
Declaration
public float SegmentWidth { get; set; }
Property Value
Type | Description |
---|---|
System.Single |
ShowGrid
Gets or sets a value indicating whether the segment grid should be drawn.
Declaration
public bool ShowGrid { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
ShowMarkers
Gets or sets a value indicating whether the reference markers should be drawn.
Declaration
public bool ShowMarkers { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
Remarks
Reference markers are used by postal service to automatically read the zipcode.
Spacing
Gets or sets the spacing between origins of segments, in pixels.
Declaration
public float Spacing { get; set; }
Property Value
Type | Description |
---|---|
System.Single |
Text
Gets or sets the zip code.
Declaration
public string Text { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Methods
Assign(Base)
Declaration
public override void Assign(Base source)
Parameters
Type | Name | Description |
---|---|---|
Base | source |
Overrides
Draw(FRPaintEventArgs)
Declaration
public override void Draw(FRPaintEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
FRPaintEventArgs | e |
Overrides
GetData()
Declaration
public override void GetData()
Overrides
GetExpressions()
Declaration
public override string[] GetExpressions()
Returns
Type | Description |
---|---|
System.String[] |
Overrides
Serialize(FRWriter)
Declaration
public override void Serialize(FRWriter writer)
Parameters
Type | Name | Description |
---|---|---|
FRWriter | writer |