The TextItem type exposes the following members.

Constructors

  NameDescription
Public methodTextItem()()()()
Initializes a new instance of the TextItem class.
Public methodTextItem(Double, Double, Double, Double, String)
Initializes a new instance of the TextItem class with the specified location, size and text.

Methods

  NameDescription
Public methodClone
Creates a copy of the current TextItem.
(Overrides Item..::..Clone()()()().)
Public methodConvertToUnit (Overrides Item..::..ConvertToUnit(UnitType).)
Public methodGetAutoSize
Gets the size of this TextItem that fits its content.
Public methodUpdateFrom
Updates this TextItem object with the properties of the specified TextItem object.
(Overrides Item..::..UpdateFrom(Item).)

Properties

  NameDescription
Public propertyBackColor
Gets or sets the background color of the text. Default value is White
Public propertyBorderColor
Gets or sets the color of the border of the rectangle container. Default value is Black
Public propertyBorderThickness
Gets or sets the thickness for each side of the rectangle container. Default value is 0 (zero)
Public propertyCacheItemId
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.)
Public propertyComments
Gets or sets the comments associated to this item. Default is an empty string.
(Inherited from Item.)
Public propertyCornerRadius
Gets or sets the radii of a rectangle's corners. Default value is 0 (zero)
Public propertyCounterStep
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)
Public propertyCounterUseLeadingZeros
Gets or sets whether leading zeros are printed or suppressed when using counters. Default value is false
Public propertyCultureName
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.
Public propertyDataField
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.)
Public propertyDataFieldFormatString
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.)
Public propertyDpi
Gets or sets the item resolution, in dots per inch.
(Inherited from Item.)
Public propertyFont
Gets the Font object for the text. Default value is Arial, 8pt
Public propertyForeColor
Gets or sets the foreground color of the text. Default value is Black
Public propertyHeight
Gets or sets the height of the text item. Default value is 0.5
Public propertyLocked
Gets or sets whether this item cannot be inadvertently moved nor resized in the visual editor surface. Default is false.
(Inherited from Item.)
Public propertyMask
Gets or sets the input Mask for the text. Default value is an empty string
Public propertyMaskIncrement
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
Public propertyName
Gets or sets the programmatic identifier or name assigned to the item. Default value is an empty string
(Inherited from Item.)
Public propertyPrintAsGraphic
Gets or sets whether the item's output is forced to be printed as a graphic. Default is false.
(Inherited from Item.)
Public propertyRightToLeft
Gets or sets whether the text should draw right-to-left for RTL languages. Default value is false
Public propertyRotationAngle
Gets or sets the rotation angle to apply on this item. It is measured clockwise from the x-axis. Default value is 0 (zero)
Public propertySizing
Gets or sets the text sizing. Default value is None
Public propertyTag
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.)
Public propertyText
Gets or sets the text. Default value is an empty string
Public propertyTextAlignment
Gets or sets the alignment of the text. Default value is Left
Public propertyTextPadding
Gets or sets the amount of space between the container's border and the text content. Default value is 0 (zero)
Public propertyUnitType
Gets or sets the Unit of Measurement for the item.
(Inherited from Item.)
Public propertyUseCache
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.)
Public propertyWidth
Gets or sets the width of the text item. Default value is 1
Public propertyX
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.)
Public propertyY
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

  NameDescription
Public eventPropertyChanged
Occurs when a property value changes.
(Inherited from Item.)

See Also