The TextItem type exposes the following members.
Constructors
Name | Description | |
---|---|---|
TextItem()()()() |
Initializes a new instance of the TextItem class.
| |
TextItem(Double, Double, Double, Double, String) |
Initializes a new instance of the TextItem class with the specified location, size and text.
|
Methods
Name | Description | |
---|---|---|
Clone |
Creates a copy of the current TextItem.
(Overrides Item..::..Clone()()()().) | |
ConvertToUnit | (Overrides Item..::..ConvertToUnit(UnitType).) | |
GetAutoSize |
Gets the size of this TextItem that fits its content.
| |
UpdateFrom | (Overrides Item..::..UpdateFrom(Item).) |
Properties
Name | Description | |
---|---|---|
BackColor |
Gets or sets the background color of the text. Default value is White
| |
BorderColor |
Gets or sets the color of the border of the rectangle container. Default value is Black
| |
BorderThickness |
Gets or sets the thickness for each side of the rectangle container. Default value is 0 (zero)
| |
CacheItemId |
Gets or sets the ID which will be assigned to the item in the cache. It must be a unique ID value for each item. The ID must be 1 to 8 alphanumeric [A-Z][0-9] characters long. If it's empty, then a random ID will be assigned automatically at runtime. Default value is an empty string
(Inherited from Item.) | |
Comments |
Gets or sets the comments associated to this item. Default is an empty string.
(Inherited from Item.) | |
CornerRadius |
Gets or sets the radii of a rectangle's corners. Default value is 0 (zero)
| |
CounterStep |
Gets or sets the step for the counter. The counter will increase (positive) or decrease (negative) by this number on every printed label. Default value is 0 (zero)
| |
CounterUseLeadingZeros |
Gets or sets whether leading zeros are printed or suppressed when using counters. Default value is false
| |
CultureName |
Gets or sets the Culture Name for text formatting. Default is en-US. Other sample values: de-DE, es-ES, etc. Any value supported by .NET CultureInfo class.
| |
DataField |
Gets or sets the name of the field from the data source that contains the values to bind to this item. Default value is an empty string
(Inherited from Item.) | |
DataFieldFormatString |
Gets or sets the string that specifies the display format for the value of the data field. Default value is an empty string
(Inherited from Item.) | |
Dpi |
Gets or sets the item resolution, in dots per inch.
(Inherited from Item.) | |
Font |
Gets the Font object for the text. Default value is Arial, 8pt
| |
ForeColor |
Gets or sets the foreground color of the text. Default value is Black
| |
Height |
Gets or sets the height of the text item. Default value is 0.5
| |
Locked |
Gets or sets whether this item cannot be inadvertently moved nor resized in the visual editor surface. Default is false.
(Inherited from Item.) | |
Mask |
Gets or sets the input Mask for the text. Default value is an empty string
| |
MaskIncrement |
Gets or sets the mask increment. The increment is the value to be added to the text on each label to be printed. Default value is an empty string
| |
Name |
Gets or sets the programmatic identifier or name assigned to the item. Default value is an empty string
(Inherited from Item.) | |
PrintAsGraphic |
Gets or sets whether the item's output is forced to be printed as a graphic. Default is false.
(Inherited from Item.) | |
RightToLeft |
Gets or sets whether the text should draw right-to-left for RTL languages. Default value is false
| |
RotationAngle |
Gets or sets the rotation angle to apply on this item. It is measured clockwise from the x-axis. Default value is 0 (zero)
| |
Sizing |
Gets or sets the text sizing. Default value is None
| |
Tag |
Gets or sets an arbitrary string value that can be used to store custom information about this item. Default is an empty string.
(Inherited from Item.) | |
Text |
Gets or sets the text. Default value is an empty string
| |
TextAlignment |
Gets or sets the alignment of the text. Default value is Left
| |
TextPadding |
Gets or sets the amount of space between the container's border and the text content. Default value is 0 (zero)
| |
UnitType |
Gets or sets the Unit of Measurement for the item.
(Inherited from Item.) | |
UseCache |
Gets or sets whether the item should be cached in the printer's memory. An item cannot be cached if it's bound to some data source field through the DataField property. Default value is false
(Inherited from Item.) | |
Width |
Gets or sets the width of the text item. Default value is 1
| |
X |
Gets or sets the x-coordinate of the upper-left corner of the item relative to the upper-left corner of its container. Default value is 0 (zero)
(Inherited from Item.) | |
Y |
Gets or sets the y-coordinate of the upper-left corner of the item relative to the upper-left corner of its container. Default value is 0 (zero)
(Inherited from Item.) |
Events
Name | Description | |
---|---|---|
PropertyChanged |
Occurs when a property value changes.
(Inherited from Item.) |