### TextBoxControl

This control inserts a text box into your report. You can use this text box to send text strings or expressions to your reports. The user can also type into this text box to edit the string.

Properties

The following properties are available for this control.

Left - This determines the position of the control from the left side of the canvas.

Top - This determines the position of the control from the top side of the canvas.

HorizontalContent - This sets the alignment of the content with respect to the left and right boundaries of the control. Left aligns the content horizontally to the left edge of the control; Center aligns the content to the center of the control's left and right edges; Right aligns the content to the right edge of the control; and Stretch stretches the content so that it reaches both the left and right edges of the control.

VerticalContent - This sets the alignment of the content with respect to the top and bottom boundaries of the control. Top aligns the content vertically to the top edge of the control; Center aligns the content to the center of the control's top and bottom edges; Bottom aligns the content to the bottom edge of the control; and Stretch stretches the content so that it reaches both the top and bottom edges of the control.

TextWrapping - This determines whether or not the text wraps to the next line when it reaches the control's boundary. NoWarp: No wrapping takes place. Wrap: Wrapping takes place when it reaches the control's boundary. WrapWithOverflow: Wrapping occurs if the text overflows the controls width. However, a line of text may overflow the control's width if the line breaking algorithm cannot determine a break opportunity, such as a very long word.

Text - This determines the string of text to display or the expression to use.

Name - This provides the control with a unique name. If you have more than one control of the same type on the canvas, the software will append a number to the name of the control to make it unique. You can change this to whatever name you want as long as it remains unique from other controls.

Width - This sets the width of the control. If you click the Auto icon , the width expands or shrinks to match the width used by the canvas.

Height - This sets the height of the control. If you click the Auto icon , the height expands or shrinks to match the height used by the canvas.

BorderThickness - This sets the thickness of the control's border. You will see a set of four numbers (1.00,1.00,1.00,1.00). Each number of 1.00 represents a side of the border. So the first 1.00 represents the left side, the second represents the top side, the third represents the right side, and the fourth represents the bottom side. The larger the numbers are, the thicker the border is drawn. For example, setting these to 5.00,5.00,5.00,5.00 will draw a border around the control with a thickness of 5 pixels. Setting these to 0.00,0.00,0.00,0.00 will remove the border completely.

Background - This determines the control's background color. To change the color simply select a new color from the list or click the Brush icon to the right to define a custom color.

Foreground - This determines the control's foreground (or text) color. To change the color simply select a new color from the list or click the Brush icon to the right to define a custom color.

FontFamily - This determines the typeface applied to the text used by the control.

FontSize - This determines the size of the text.

FontStyle - This determines the style of font (italics, normal, oblique).

FontWeight - This determines how bold the text is.