ComponentOne True DBInput Pro 8.0
AlignHorizontal Property (TDBMask)

 

Reference> TDBMask Control> TDBMask Control Properties> AlignHorizontal Property (TDBMask)

AlignHorizontal Property (TDBMask)

The AlignHorizontal property determines where the text should be aligned horizontally in the specified area.The text displayed in the control can be aligned horizontally by setting this property. It will be displayed within the area prescribed by the margin related properties. Absolute text positioning can be adjusted by using the margin related properties together with this property.

Syntax

object.AlignHorizontal= value

Read/Write at run time and design time.

Values

Design Time

Run Time

0 - Left (Default)

dbiCaptAlignHLeft

1 - Right

dbiCaptAlignHRight

2 - Center

dbiCaptAlignHCenter

3 - Justify

dbiCaptAlignHJustify

Remarks

The text will be aligned within the space specified by the Size property or the width of the control, depending on the setting of the Position property.

The settings of this property will not take effect in the drop-down edit window. The text in the edit window will be aligned to the left.

The text will not wrap when it exceeds the size of the displaying area.

In the previous version, this property was named Alignment, and was used for both horizontal and vertical setting. But now, these settings are available through different properties - AlignHorizontal and AlignVertical.

See Also

Size Property (Caption)

WordWrap Property (Caption)

Position Property (Caption)

AlignVertical Property (TDBMask)

 

 


Copyright (c) GrapeCity, inc. All rights reserved.

Product Support Forum  |  Documentation Feedback